Guest User

Untitled

a guest
Mar 28th, 2011
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.98 KB | None | 0 0
  1. ; ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ S U B R O U T I N E ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦
  2. .text:00548170
  3. .text:00548170 ; Attributes: bp-based frame
  4. .text:00548170
  5. .text:00548170 sub_548170 proc near ; DATA XREF: .data:00BB967Co
  6. .text:00548170
  7. .text:00548170 arg_0 = dword ptr 8
  8. .text:00548170
  9. .text:00548170 push ebp
  10. .text:00548171 mov ebp, esp
  11. .text:00548173 mov eax, dword_CD259C
  12. .text:00548178 test eax, eax
  13. .text:0054817A jnz short loc_54818C
  14. .text:0054817C mov eax, dword_D8B760
  15. .text:00548181 inc eax
  16. .text:00548182 mov dword_D8B760, eax
  17. .text:00548187 mov dword_CD259C, eax
  18. .text:0054818C
  19. .text:0054818C loc_54818C: ; CODE XREF: sub_548170+Aj
  20. .text:0054818C push esi
  21. .text:0054818D mov esi, [ebp+arg_0]
  22. .text:00548190 push edi
  23. .text:00548191 push eax
  24. .text:00548192 call sub_549850
  25. .text:00548197 push 2
  26. .text:00548199 push esi
  27. .text:0054819A mov edi, eax
  28. .text:0054819C call sub_4361A0
  29. .text:005481A1 add esp, 0Ch
  30. .text:005481A4 test eax, eax
  31. .text:005481A6 jz short loc_5481E4
  32. .text:005481A8 push ebx
  33. .text:005481A9 push 0
  34. .text:005481AB push 2
  35. .text:005481AD push esi
  36. .text:005481AE call sub_436320
  37. .text:005481B3 mov ebx, eax
  38. .text:005481B5 mov eax, [edi]
  39. .text:005481B7 mov edx, [eax+0D4h]
  40. .text:005481BD add esp, 0Ch
  41. .text:005481C0 push ebx
  42. .text:005481C1 mov ecx, edi
  43. .text:005481C3 call edx
  44. .text:005481C5 cmp dword ptr [edi+1F4h], 0
  45. .text:005481CC jnz short loc_5481DD
  46. .text:005481CE push ebx
  47. .text:005481CF push offset aInvalidModelFi ; "Invalid model file: %s"
  48. .text:005481D4 push esi
  49. .text:005481D5 call sub_96B3F0
  50. .text:005481DA add esp, 0Ch
  51. .text:005481DD
  52. .text:005481DD loc_5481DD: ; CODE XREF: sub_548170+5Cj
  53. .text:005481DD pop ebx
  54. .text:005481DE pop edi
  55. .text:005481DF xor eax, eax
  56. .text:005481E1 pop esi
  57. .text:005481E2 pop ebp
  58. .text:005481E3 retn
  59. .text:005481E4 ; ---------------------------------------------------------------------------
  60. .text:005481E4
  61. .text:005481E4 loc_5481E4: ; CODE XREF: sub_548170+36j
  62. .text:005481E4 mov eax, [edi]
  63. .text:005481E6 mov edx, [eax+4]
  64. .text:005481E9 mov ecx, edi
  65. .text:005481EB call edx
  66. .text:005481ED test eax, eax
  67. .text:005481EF jnz short loc_5481F6
  68. .text:005481F1 mov eax, offset aUnnamed ; "<unnamed>"
  69. .text:005481F6
  70. .text:005481F6 loc_5481F6: ; CODE XREF: sub_548170+7Fj
  71. .text:005481F6 push eax
  72. .text:005481F7 push offset aUsageSSetmodel ; "Usage: %s:SetModel(\"file\")"
  73. .text:005481FC push esi
  74. .text:005481FD call sub_96B3F0
  75. .text:00548202 add esp, 0Ch
  76. .text:00548205 pop edi
  77. .text:00548206 xor eax, eax
  78. .text:00548208 pop esi
  79. .text:00548209 pop ebp
  80. .text:0054820A retn
  81. .text:0054820A sub_548170 endp
Advertisement
Add Comment
Please, Sign In to add comment