Guest User

Untitled

a guest
Dec 12th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .text:0041C97A                                         ; ---------------------------------------------------------------------------
  2. .text:0041C97B 90 90 90 90 90                                          align 10h
  3. .text:0041C980
  4. .text:0041C980                                         ; =============== S U B R O U T I N E =======================================
  5. .text:0041C980
  6. .text:0041C980
  7. .text:0041C980                                         CL_Record_f     proc near               ; DATA XREF: CL_Init+51Do
  8. .text:0041C980
  9. .text:0041C980                                         arg_0           = dword ptr  4
  10. .text:0041C980                                         msg             = byte ptr  8
  11. .text:0041C980                                         arg_C           = dword ptr  10h
  12. .text:0041C980                                         lpBuffer        = dword ptr  14h
  13. .text:0041C980                                         arg_18          = dword ptr  1Ch
  14. .text:0041C980                                         a1              = byte ptr  28h
  15. .text:0041C980                                         dest            = byte ptr  128h
  16. .text:0041C980                                         data            = byte ptr  33Ch
  17. .text:0041C980
  18. .text:0041C980 000 B8 3C C3 00 00                                      mov     eax, 0C33Ch     ; bytes
  19. .text:0041C985 000 E8 36 89 11 00                                      call    AllocStack
  20. .text:0041C98A 000 A1 08 CC B3 00                                      mov     eax, Cmd_Argc
  21. .text:0041C98F 000 56                                                  push    esi
  22. .text:0041C990 004 BE 02 00 00 00                                      mov     esi, 2
  23. .text:0041C995 004 3B C6                                               cmp     eax, esi
  24. .text:0041C997 004 7E 15                                               jle     short loc_41C9AE
  25. .text:0041C999 004 68 C8 41 56 00                                      push    offset aRecordDemoname ; "record <demoname>\n"
  26. .text:0041C99E 008 E8 DD A6 01 00                                      call    Com_Printf
  27. .text:0041C9A3 008 83 C4 04                                            add     esp, 4
  28. .text:0041C9A6 004 5E                                                  pop     esi
  29. .text:0041C9A7 000 81 C4 3C C3 00 00                                   add     esp, 0C33Ch
  30. .text:0041C9AD -C33C C3                                                retn
  31. .text:0041C9AE                                         ; ---------------------------------------------------------------------------
  32. .text:0041C9AE
  33. .text:0041C9AE                                         loc_41C9AE:                             ; CODE XREF: CL_Record_f+17j
  34. .text:0041C9AE 004 A1 68 4B 95 00                                      mov     eax, dword ptr unk_954B68
  35. .text:0041C9B3 004 85 C0                                               test    eax, eax
  36. .text:0041C9B5 004 74 22                                               jz      short loc_41C9D9
  37. .text:0041C9B7 004 A1 64 4B 95 00                                      mov     eax, dword ptr unk_954B64
  38. .text:0041C9BC 004 85 C0                                               test    eax, eax
  39. .text:0041C9BE 004 0F 85 5F 04 00 00                                   jnz     loc_41CE23
  40. .text:0041C9C4 004 68 B4 41 56 00                                      push    offset aAlreadyRecordi ; "Already recording.\n"
  41. .text:0041C9C9 008 E8 B2 A6 01 00                                      call    Com_Printf
  42. .text:0041C9CE 008 83 C4 04                                            add     esp, 4
  43. .text:0041C9D1 004 5E                                                  pop     esi
  44. .text:0041C9D2 000 81 C4 3C C3 00 00                                   add     esp, 0C33Ch
  45. .text:0041C9D8 -C33C C3                                                retn
  46. .text:0041C9D9                                         ; ---------------------------------------------------------------------------
  47. .text:0041C9D9
  48. .text:0041C9D9                                         loc_41C9D9:                             ; CODE XREF: CL_Record_f+35j
  49. .text:0041C9D9 004 83 3D 00 F1 8A 00 08                                cmp     cls_state, 8
  50. .text:0041C9E0 004 74 15                                               jz      short loc_41C9F7
  51. .text:0041C9E2 004 68 90 41 56 00                                      push    offset aYouMustBeInALe ; "You must be in a level to record.\n"
  52. .text:0041C9E7 008 E8 94 A6 01 00                                      call    Com_Printf
  53. .text:0041C9EC 008 83 C4 04                                            add     esp, 4
  54. .text:0041C9EF 004 5E                                                  pop     esi
  55. .text:0041C9F0 000 81 C4 3C C3 00 00                                   add     esp, 0C33Ch
  56. .text:0041C9F6 -C33C C3                                                retn
  57. .text:0041C9F7                                         ; ---------------------------------------------------------------------------
  58. .text:0041C9F7
  59. .text:0041C9F7                                         loc_41C9F7:                             ; CODE XREF: CL_Record_f+60j
  60. .text:0041C9F7 004 53                                                  push    ebx
  61. .text:0041C9F8 008 57                                                  push    edi
  62. .text:0041C9F9 00C BF 78 41 56 00                                      mov     edi, offset aG_synchronousc ; "g_synchronousClients"
  63. .text:0041C9FE 00C E8 AD C9 01 00                                      call    Cvar_FindVar
  64. .text:0041CA03 00C 85 C0                                               test    eax, eax
  65. .text:0041CA05 00C 74 18                                               jz      short loc_41CA1F
  66. .text:0041CA07 00C 8B 40 1C                                            mov     eax, [eax+1Ch]
  67. .text:0041CA0A 00C 89 44 24 10                                         mov     [esp+0Ch+arg_0], eax
  68. .text:0041CA0E 00C D9 44 24 10                                         fld     [esp+0Ch+arg_0]
  69. .text:0041CA12 00C D8 1D AC 5F 56 00                                   fcomp   ds:SrcStr
  70. .text:0041CA18 00C DF E0                                               fnstsw  ax
  71. .text:0041CA1A 00C F6 C4 44                                            test    ah, 44h
  72. .text:0041CA1D 00C 7A 17                                               jp      short loc_41CA36
  73. .text:0041CA1F
  74. .text:0041CA1F                                         loc_41CA1F:                             ; CODE XREF: CL_Record_f+85j
  75. .text:0041CA1F 00C 68 38 41 56 00                                      push    offset aTheServerMustH ; "The server must have 'g_synchronousClie"...
  76. .text:0041CA24 010 E8 57 A6 01 00                                      call    Com_Printf
  77. .text:0041CA29 010 83 C4 04                                            add     esp, 4
  78. .text:0041CA2C 00C 5F                                                  pop     edi
  79. .text:0041CA2D 008 5B                                                  pop     ebx
  80. .text:0041CA2E 004 5E                                                  pop     esi
  81. .text:0041CA2F 000 81 C4 3C C3 00 00                                   add     esp, 0C33Ch
  82. .text:0041CA35 -C33C C3                                                retn
  83. .text:0041CA36                                         ; ---------------------------------------------------------------------------
  84. .text:0041CA36
  85. .text:0041CA36                                         loc_41CA36:                             ; CODE XREF: CL_Record_f+9Dj
  86. .text:0041CA36 00C 39 35 08 CC B3 00                                   cmp     Cmd_Argc, esi
  87. .text:0041CA3C 00C 75 36                                               jnz     short loc_41CA74
  88. .text:0041CA3E 00C B8 01 00 00 00                                      mov     eax, 1
  89. .text:0041CA43 00C E8 F8 9F 01 00                                      call    sub_436A40
  90. .text:0041CA48 00C BF 40 00 00 00                                      mov     edi, 40h
  91. .text:0041CA4D 00C 8B D8                                               mov     ebx, eax
  92. .text:0041CA4F 00C BE 00 6A 88 00                                      mov     esi, offset src
  93. .text:0041CA54 00C E8 17 7C 02 00                                      call    Q_strncpyz_
  94. .text:0041CA59 00C 6A 1A                                               push    1Ah
  95. .text:0041CA5B 010 56                                                  push    esi
  96. .text:0041CA5C 014 68 28 41 56 00                                      push    offset aDemosS_dm_D ; "demos/%s.dm_%d"
  97. .text:0041CA61 018 BF 00 01 00 00                                      mov     edi, 100h
  98. .text:0041CA66 018 8D 5C 24 40                                         lea     ebx, [esp+18h+a1]
  99. .text:0041CA6A 018 E8 71 7E 02 00                                      call    Com_sprintf
  100. .text:0041CA6F 018 83 C4 0C                                            add     esp, 0Ch
  101. .text:0041CA72 00C EB 52                                               jmp     short loc_41CAC6
  102. .text:0041CA74                                         ; ---------------------------------------------------------------------------
  103. .text:0041CA74
  104. .text:0041CA74                                         loc_41CA74:                             ; CODE XREF: CL_Record_f+BCj
  105. .text:0041CA74 00C 33 F6                                               xor     esi, esi
  106. .text:0041CA76 00C EB 08                                               jmp     short loc_41CA80
  107. .text:0041CA76                                         ; ---------------------------------------------------------------------------
  108. .text:0041CA78 00C 8D                                                  db  8Dh ; ì
  109. .text:0041CA79 00C A4                                                  db 0A4h ; ñ
  110. .text:0041CA7A 00C 24                                                  db  24h ; $
  111. .text:0041CA7B 00C 00                                                  db    0
  112. .text:0041CA7C 00C 00                                                  db    0
  113. .text:0041CA7D 00C 00                                                  db    0
  114. .text:0041CA7E 00C 00                                                  db    0
  115. .text:0041CA7F 00C 90                                                  db  90h ; É
  116. .text:0041CA80                                         ; ---------------------------------------------------------------------------
  117. .text:0041CA80
  118. .text:0041CA80                                         loc_41CA80:                             ; CODE XREF: CL_Record_f+F6j
  119. .text:0041CA80                                                                                 ; CL_Record_f+144j
  120. .text:0041CA80 00C B8 00 6A 88 00                                      mov     eax, offset src
  121. .text:0041CA85 00C 8B CE                                               mov     ecx, esi
  122. .text:0041CA87 00C E8 64 FE FF FF                                      call    sub_41C8F0
  123. .text:0041CA8C 00C 6A 1A                                               push    1Ah
  124. .text:0041CA8E 010 68 00 6A 88 00                                      push    offset src
  125. .text:0041CA93 014 68 28 41 56 00                                      push    offset aDemosS_dm_D ; "demos/%s.dm_%d"
  126. .text:0041CA98 018 BF 00 01 00 00                                      mov     edi, 100h
  127. .text:0041CA9D 018 8D 5C 24 40                                         lea     ebx, [esp+18h+a1]
  128. .text:0041CAA1 018 E8 3A 7E 02 00                                      call    Com_sprintf
  129. .text:0041CAA6 018 8D 4C 24 40                                         lea     ecx, [esp+18h+a1]
  130. .text:0041CAAA 018 51                                                  push    ecx             ; filename
  131. .text:0041CAAB 01C 33 FF                                               xor     edi, edi        ; buffer
  132. .text:0041CAAD 01C E8 BE F9 01 00                                      call    FS_ReadFile
  133. .text:0041CAB2 01C 83 C4 10                                            add     esp, 10h
  134. .text:0041CAB5 00C 85 C0                                               test    eax, eax
  135. .text:0041CAB7 00C 89 44 24 0C                                         mov     [esp+0Ch], eax
  136. .text:0041CABB 00C 7E 09                                               jle     short loc_41CAC6
  137. .text:0041CABD 00C 46                                                  inc     esi
  138. .text:0041CABE 00C 81 FE 0F 27 00 00                                   cmp     esi, 270Fh
  139. .text:0041CAC4 00C 7E BA                                               jle     short loc_41CA80
  140. .text:0041CAC6
  141. .text:0041CAC6                                         loc_41CAC6:                             ; CODE XREF: CL_Record_f+F2j
  142. .text:0041CAC6                                                                                 ; CL_Record_f+13Bj
  143. .text:0041CAC6 00C 8D 54 24 34                                         lea     edx, [esp+0Ch+a1]
  144. .text:0041CACA 00C 52                                                  push    edx
  145. .text:0041CACB 010 68 14 41 56 00                                      push    offset aRecordingToS_ ; "recording to %s.\n"
  146. .text:0041CAD0 014 E8 AB A5 01 00                                      call    Com_Printf
  147. .text:0041CAD5 014 83 C4 08                                            add     esp, 8
  148. .text:0041CAD8 00C 8D 5C 24 34                                         lea     ebx, [esp+0Ch+a1] ; a1
  149. .text:0041CADC 00C E8 6F E7 01 00                                      call    FS_FOpenFileWrite
  150. .text:0041CAE1 00C 85 C0                                               test    eax, eax
  151. .text:0041CAE3 00C A3 78 4B 95 00                                      mov     dword ptr unk_954B78, eax
  152. .text:0041CAE8 00C 75 17                                               jnz     short loc_41CB01
  153. .text:0041CAEA 00C 68 FC 40 56 00                                      push    offset aErrorCouldnTOp ; "ERROR: couldn't open.\n"
  154. .text:0041CAEF 010 E8 8C A5 01 00                                      call    Com_Printf
  155. .text:0041CAF4 010 83 C4 04                                            add     esp, 4
  156. .text:0041CAF7 00C 5F                                                  pop     edi
  157. .text:0041CAF8 008 5B                                                  pop     ebx
  158. .text:0041CAF9 004 5E                                                  pop     esi
  159. .text:0041CAFA 000 81 C4 3C C3 00 00                                   add     esp, 0C33Ch
  160. .text:0041CB00 -C33C C3                                                retn
  161. .text:0041CB01                                         ; ---------------------------------------------------------------------------
  162. .text:0041CB01
  163. .text:0041CB01                                         loc_41CB01:                             ; CODE XREF: CL_Record_f+168j
  164. .text:0041CB01 00C BE 01 00 00 00                                      mov     esi, 1
  165. .text:0041CB06 00C BF EC 40 56 00                                      mov     edi, offset aUi_recordspdem ; "ui_recordSPDemo"
  166. .text:0041CB0B 00C 89 35 68 4B 95 00                                   mov     dword ptr unk_954B68, esi
  167. .text:0041CB11 00C E8 9A C8 01 00                                      call    Cvar_FindVar
  168. .text:0041CB16 00C 85 C0                                               test    eax, eax
  169. .text:0041CB18 00C 74 1E                                               jz      short loc_41CB38
  170. .text:0041CB1A 00C 8B 40 1C                                            mov     eax, [eax+1Ch]
  171. .text:0041CB1D 00C 89 44 24 10                                         mov     [esp+0Ch+arg_0], eax
  172. .text:0041CB21 00C D9 44 24 10                                         fld     [esp+0Ch+arg_0]
  173. .text:0041CB25 00C 89 35 64 4B 95 00                                   mov     dword ptr unk_954B64, esi
  174. .text:0041CB2B 00C D8 1D AC 5F 56 00                                   fcomp   ds:SrcStr
  175. .text:0041CB31 00C DF E0                                               fnstsw  ax
  176. .text:0041CB33 00C F6 C4 44                                            test    ah, 44h
  177. .text:0041CB36 00C 7A 0A                                               jp      short loc_41CB42
  178. .text:0041CB38
  179. .text:0041CB38                                         loc_41CB38:                             ; CODE XREF: CL_Record_f+198j
  180. .text:0041CB38 00C C7 05 64 4B 95 00 00 00 00 00                       mov     dword ptr unk_954B64, 0
  181. .text:0041CB42
  182. .text:0041CB42                                         loc_41CB42:                             ; CODE XREF: CL_Record_f+1B6j
  183. .text:0041CB42 00C 6A 3F                                               push    3Fh             ; destsize
  184. .text:0041CB44 010 68 00 6A 88 00                                      push    offset src      ; src
  185. .text:0041CB49 014 68 24 4B 95 00                                      push    offset dest     ; dest
  186. .text:0041CB4E 018 E8 6D D8 10 00                                      call    Q_strncpyz
  187. .text:0041CB53 018 8D 8C 24 54 03 00 00                                lea     ecx, [esp+18h+data]
  188. .text:0041CB5A 018 89 35 70 4B 95 00                                   mov     dword ptr unk_954B70, esi
  189. .text:0041CB60 018 68 00 C0 00 00                                      push    0C000h          ; length
  190. .text:0041CB65 01C 51                                                  push    ecx             ; data
  191. .text:0041CB66 020 8D 74 24 28                                         lea     esi, [esp+20h+msg] ; msg
  192. .text:0041CB6A 020 C6 05 63 4B 95 00 00                                mov     byte ptr unk_954B63, 0
  193. .text:0041CB71 020 E8 9A 37 02 00                                      call    MSG_Init
  194. .text:0041CB76 020 A1 F8 44 91 00                                      mov     eax, dword ptr unk_9144F8
  195. .text:0041CB7B 020 6A 20                                               push    20h
  196. .text:0041CB7D 024 8D 74 24 2C                                         lea     esi, [esp+24h+msg]
  197. .text:0041CB81 024 C7 44 24 34 00 00 00 00                             mov     [esp+24h+arg_C], 0
  198. .text:0041CB89 024 E8 32 38 02 00                                      call    MSG_WriteBits
  199. .text:0041CB8E 024 6A 08                                               push    8
  200. .text:0041CB90 028 B8 02 00 00 00                                      mov     eax, 2
  201. .text:0041CB95 028 8D 74 24 30                                         lea     esi, [esp+28h+msg]
  202. .text:0041CB99 028 E8 22 38 02 00                                      call    MSG_WriteBits
  203. .text:0041CB9E 028 A1 04 45 93 00                                      mov     eax, dword ptr unk_934504
  204. .text:0041CBA3 028 6A 20                                               push    20h
  205. .text:0041CBA5 02C 8D 74 24 34                                         lea     esi, [esp+2Ch+msg]
  206. .text:0041CBA9 02C E8 12 38 02 00                                      call    MSG_WriteBits
  207. .text:0041CBAE 02C 83 C4 20                                            add     esp, 20h
  208. .text:0041CBB1 00C 33 FF                                               xor     edi, edi
  209. .text:0041CBB3
  210. .text:0041CBB3                                         loc_41CBB3:                             ; CODE XREF: CL_Record_f+276j
  211. .text:0041CBB3 00C 8B 1C BD 54 7D 97 00                                mov     ebx, dword_977D54[edi*4]
  212. .text:0041CBBA 00C 85 DB                                               test    ebx, ebx
  213. .text:0041CBBC 00C 74 31                                               jz      short loc_41CBEF
  214. .text:0041CBBE 00C 6A 08                                               push    8
  215. .text:0041CBC0 010 B8 03 00 00 00                                      mov     eax, 3
  216. .text:0041CBC5 010 8D 74 24 18                                         lea     esi, [esp+10h+msg]
  217. .text:0041CBC9 010 8D 9B E4 97 97 00                                   lea     ebx, dword_9797E4[ebx]
  218. .text:0041CBCF 010 E8 EC 37 02 00                                      call    MSG_WriteBits
  219. .text:0041CBD4 010 6A 10                                               push    10h
  220. .text:0041CBD6 014 8B C7                                               mov     eax, edi
  221. .text:0041CBD8 014 8D 74 24 1C                                         lea     esi, [esp+14h+msg]
  222. .text:0041CBDC 014 E8 DF 37 02 00                                      call    MSG_WriteBits
  223. .text:0041CBE1 014 83 C4 08                                            add     esp, 8
  224. .text:0041CBE4 00C 8B D3                                               mov     edx, ebx
  225. .text:0041CBE6 00C 8D 4C 24 14                                         lea     ecx, [esp+0Ch+msg]
  226. .text:0041CBEA 00C E8 21 3C 02 00                                      call    MSG_WriteString
  227. .text:0041CBEF
  228. .text:0041CBEF                                         loc_41CBEF:                             ; CODE XREF: CL_Record_f+23Cj
  229. .text:0041CBEF 00C 47                                                  inc     edi
  230. .text:0041CBF0 00C 81 FF A4 06 00 00                                   cmp     edi, 6A4h
  231. .text:0041CBF6 00C 7C BB                                               jl      short loc_41CBB3
  232. .text:0041CBF8 00C 68 14 02 00 00                                      push    214h            ; count
  233. .text:0041CBFD 010 8D 94 24 38 01 00 00                                lea     edx, [esp+10h+dest]
  234. .text:0041CC04 010 6A 00                                               push    0               ; val
  235. .text:0041CC06 014 52                                                  push    edx             ; dest
  236. .text:0041CC07 018 E8 54 C5 01 00                                      call    Com_Memset
  237. .text:0041CC0C 018 83 C4 0C                                            add     esp, 0Ch
  238. .text:0041CC0F 00C BF 98 6C 99 00                                      mov     edi, offset cl_entityBaselines
  239. .text:0041CC14
  240. .text:0041CC14                                         loc_41CC14:                             ; CODE XREF: CL_Record_f+2CBj
  241. .text:0041CC14 00C 83 3F 00                                            cmp     dword ptr [edi], 0
  242. .text:0041CC17 00C 74 26                                               jz      short loc_41CC3F
  243. .text:0041CC19 00C 6A 08                                               push    8
  244. .text:0041CC1B 010 B8 04 00 00 00                                      mov     eax, 4
  245. .text:0041CC20 010 8D 74 24 18                                         lea     esi, [esp+10h+msg]
  246. .text:0041CC24 010 E8 97 37 02 00                                      call    MSG_WriteBits
  247. .text:0041CC29 010 8D 84 24 38 01 00 00                                lea     eax, [esp+10h+dest]
  248. .text:0041CC30 010 6A 01                                               push    1
  249. .text:0041CC32 014 50                                                  push    eax
  250. .text:0041CC33 018 8D 44 24 20                                         lea     eax, [esp+18h+msg]
  251. .text:0041CC37 018 E8 24 44 02 00                                      call    MSG_WriteDeltaEntity
  252. .text:0041CC3C 018 83 C4 0C                                            add     esp, 0Ch
  253. .text:0041CC3F
  254. .text:0041CC3F                                         loc_41CC3F:                             ; CODE XREF: CL_Record_f+297j
  255. .text:0041CC3F 00C 81 C7 14 02 00 00                                   add     edi, 214h
  256. .text:0041CC45 00C 81 FF 98 BC A1 00                                   cmp     edi, offset stru_A1BC98
  257. .text:0041CC4B 00C 7C C7                                               jl      short loc_41CC14
  258. .text:0041CC4D 00C 6A 08                                               push    8
  259. .text:0041CC4F 010 B8 0A 00 00 00                                      mov     eax, 0Ah
  260. .text:0041CC54 010 8D 74 24 18                                         lea     esi, [esp+10h+msg]
  261. .text:0041CC58 010 E8 63 37 02 00                                      call    MSG_WriteBits
  262. .text:0041CC5D 010 A1 C8 40 91 00                                      mov     eax, dword ptr unk_9140C8
  263. .text:0041CC62 010 6A 20                                               push    20h
  264. .text:0041CC64 014 8D 74 24 1C                                         lea     esi, [esp+14h+msg]
  265. .text:0041CC68 014 E8 53 37 02 00                                      call    MSG_WriteBits
  266. .text:0041CC6D 014 A1 F4 44 91 00                                      mov     eax, dword ptr checksumFeed
  267. .text:0041CC72 014 6A 20                                               push    20h
  268. .text:0041CC74 018 8D 74 24 20                                         lea     esi, [esp+18h+msg]
  269. .text:0041CC78 018 E8 43 37 02 00                                      call    MSG_WriteBits
  270. .text:0041CC7D 018 A1 C8 CB 96 00                                      mov     eax, dword_96CBC8
  271. .text:0041CC82 018 83 C4 0C                                            add     esp, 0Ch
  272. .text:0041CC85 00C 85 C0                                               test    eax, eax
  273. .text:0041CC87 00C 8D 74 24 14                                         lea     esi, [esp+0Ch+msg]
  274. .text:0041CC8B 00C 6A 10                                               push    10h
  275. .text:0041CC8D 010 0F 84 22 01 00 00                                   jz      loc_41CDB5
  276. .text:0041CC93 010 0F B7 C0                                            movzx   eax, ax
  277. .text:0041CC96 010 E8 25 37 02 00                                      call    MSG_WriteBits
  278. .text:0041CC9B 010 6A 01                                               push    1
  279. .text:0041CC9D 014 33 C0                                               xor     eax, eax
  280. .text:0041CC9F 014 8D 74 24 1C                                         lea     esi, [esp+14h+msg]
  281. .text:0041CCA3 014 E8 18 37 02 00                                      call    MSG_WriteBits
  282. .text:0041CCA8 014 A1 C8 CB 96 00                                      mov     eax, dword_96CBC8
  283. .text:0041CCAD 014 83 C4 08                                            add     esp, 8
  284. .text:0041CCB0 00C 33 FF                                               xor     edi, edi
  285. .text:0041CCB2 00C 85 C0                                               test    eax, eax
  286. .text:0041CCB4 00C 8B D8                                               mov     ebx, eax
  287. .text:0041CCB6 00C 7E 22                                               jle     short loc_41CCDA
  288. .text:0041CCB8 00C EB 06                                               jmp     short loc_41CCC0
  289. .text:0041CCB8                                         ; ---------------------------------------------------------------------------
  290. .text:0041CCBA 00C 8D                                                  db  8Dh ; ì
  291. .text:0041CCBB 00C 9B                                                  db  9Bh ; ¢
  292. .text:0041CCBC 00C 00                                                  db    0
  293. .text:0041CCBD 00C 00                                                  db    0
  294. .text:0041CCBE 00C 00                                                  db    0
  295. .text:0041CCBF 00C 00                                                  db    0
  296. .text:0041CCC0                                         ; ---------------------------------------------------------------------------
  297. .text:0041CCC0
  298. .text:0041CCC0                                         loc_41CCC0:                             ; CODE XREF: CL_Record_f+338j
  299. .text:0041CCC0                                                                                 ; CL_Record_f+358j
  300. .text:0041CCC0 00C 0F B6 87 CC CB 96 00                                movzx   eax, byte_96CBCC[edi]
  301. .text:0041CCC7 00C 6A 08                                               push    8
  302. .text:0041CCC9 010 8D 74 24 18                                         lea     esi, [esp+10h+msg]
  303. .text:0041CCCD 010 E8 EE 36 02 00                                      call    MSG_WriteBits
  304. .text:0041CCD2 010 83 C4 04                                            add     esp, 4
  305. .text:0041CCD5 00C 47                                                  inc     edi
  306. .text:0041CCD6 00C 3B FB                                               cmp     edi, ebx
  307. .text:0041CCD8 00C 7C E6                                               jl      short loc_41CCC0
  308. .text:0041CCDA
  309. .text:0041CCDA                                         loc_41CCDA:                             ; CODE XREF: CL_Record_f+336j
  310. .text:0041CCDA 00C 0F B7 05 C8 CB 96 00                                movzx   eax, word ptr dword_96CBC8
  311. .text:0041CCE1 00C 6A 10                                               push    10h
  312. .text:0041CCE3 010 8D 74 24 18                                         lea     esi, [esp+10h+msg]
  313. .text:0041CCE7 010 E8 D4 36 02 00                                      call    MSG_WriteBits
  314. .text:0041CCEC 010 6A 01                                               push    1
  315. .text:0041CCEE 014 33 C0                                               xor     eax, eax
  316. .text:0041CCF0 014 8D 74 24 1C                                         lea     esi, [esp+14h+msg]
  317. .text:0041CCF4 014 E8 C7 36 02 00                                      call    MSG_WriteBits
  318. .text:0041CCF9 014 A1 C8 CB 96 00                                      mov     eax, dword_96CBC8
  319. .text:0041CCFE 014 83 C4 08                                            add     esp, 8
  320. .text:0041CD01 00C 33 FF                                               xor     edi, edi
  321. .text:0041CD03 00C 85 C0                                               test    eax, eax
  322. .text:0041CD05 00C 8B D8                                               mov     ebx, eax
  323. .text:0041CD07 00C 7E 21                                               jle     short loc_41CD2A
  324. .text:0041CD09 00C 8D A4 24 00 00 00 00                                lea     esp, [esp+0]
  325. .text:0041CD10
  326. .text:0041CD10                                         loc_41CD10:                             ; CODE XREF: CL_Record_f+3A8j
  327. .text:0041CD10 00C 0F B6 87 4C 0A 97 00                                movzx   eax, byte_970A4C[edi]
  328. .text:0041CD17 00C 6A 08                                               push    8
  329. .text:0041CD19 010 8D 74 24 18                                         lea     esi, [esp+10h+msg]
  330. .text:0041CD1D 010 E8 9E 36 02 00                                      call    MSG_WriteBits
  331. .text:0041CD22 010 83 C4 04                                            add     esp, 4
  332. .text:0041CD25 00C 47                                                  inc     edi
  333. .text:0041CD26 00C 3B FB                                               cmp     edi, ebx
  334. .text:0041CD28 00C 7C E6                                               jl      short loc_41CD10
  335. .text:0041CD2A
  336. .text:0041CD2A                                         loc_41CD2A:                             ; CODE XREF: CL_Record_f+387j
  337. .text:0041CD2A 00C A1 C4 CB 96 00                                      mov     eax, dword_96CBC4
  338. .text:0041CD2F 00C 6A 20                                               push    20h
  339. .text:0041CD31 010 8D 74 24 18                                         lea     esi, [esp+10h+msg]
  340. .text:0041CD35 010 E8 86 36 02 00                                      call    MSG_WriteBits
  341. .text:0041CD3A 010 0F B7 05 CC 70 97 00                                movzx   eax, word ptr dword_9770CC
  342. .text:0041CD41 010 6A 10                                               push    10h
  343. .text:0041CD43 014 8D 74 24 1C                                         lea     esi, [esp+14h+msg]
  344. .text:0041CD47 014 E8 74 36 02 00                                      call    MSG_WriteBits
  345. .text:0041CD4C 014 A1 CC 70 97 00                                      mov     eax, dword_9770CC
  346. .text:0041CD51 014 83 C4 08                                            add     esp, 8
  347. .text:0041CD54 00C 33 DB                                               xor     ebx, ebx
  348. .text:0041CD56 00C 85 C0                                               test    eax, eax
  349. .text:0041CD58 00C 7E 65                                               jle     short loc_41CDBF
  350. .text:0041CD5A 00C BF D0 48 97 00                                      mov     edi, offset unk_9748D0
  351. .text:0041CD5F 00C 90                                                  nop
  352. .text:0041CD60
  353. .text:0041CD60                                         loc_41CD60:                             ; CODE XREF: CL_Record_f+431j
  354. .text:0041CD60 00C 0F B6 47 FC                                         movzx   eax, byte ptr [edi-4]
  355. .text:0041CD64 00C 6A 08                                               push    8
  356. .text:0041CD66 010 8D 74 24 18                                         lea     esi, [esp+10h+msg]
  357. .text:0041CD6A 010 E8 51 36 02 00                                      call    MSG_WriteBits
  358. .text:0041CD6F 010 0F B6 07                                            movzx   eax, byte ptr [edi]
  359. .text:0041CD72 010 6A 08                                               push    8
  360. .text:0041CD74 014 8D 74 24 1C                                         lea     esi, [esp+14h+msg]
  361. .text:0041CD78 014 E8 43 36 02 00                                      call    MSG_WriteBits
  362. .text:0041CD7D 014 6A 20                                               push    20h
  363. .text:0041CD7F 018 D9 47 04                                            fld     dword ptr [edi+4]
  364. .text:0041CD82 018 E8 FD C7 11 00                                      call    FloatToIntRound
  365. .text:0041CD87 018 8D 74 24 20                                         lea     esi, [esp+18h+msg]
  366. .text:0041CD8B 018 E8 30 36 02 00                                      call    MSG_WriteBits
  367. .text:0041CD90 018 D9 47 08                                            fld     dword ptr [edi+8]
  368. .text:0041CD93 018 6A 20                                               push    20h
  369. .text:0041CD95 01C E8 EA C7 11 00                                      call    FloatToIntRound
  370. .text:0041CD9A 01C 8D 74 24 24                                         lea     esi, [esp+1Ch+msg]
  371. .text:0041CD9E 01C E8 1D 36 02 00                                      call    MSG_WriteBits
  372. .text:0041CDA3 01C A1 CC 70 97 00                                      mov     eax, dword_9770CC
  373. .text:0041CDA8 01C 83 C4 10                                            add     esp, 10h
  374. .text:0041CDAB 00C 43                                                  inc     ebx
  375. .text:0041CDAC 00C 83 C7 14                                            add     edi, 14h
  376. .text:0041CDAF 00C 3B D8                                               cmp     ebx, eax
  377. .text:0041CDB1 00C 7C AD                                               jl      short loc_41CD60
  378. .text:0041CDB3 00C EB 0A                                               jmp     short loc_41CDBF
  379. .text:0041CDB5                                         ; ---------------------------------------------------------------------------
  380. .text:0041CDB5
  381. .text:0041CDB5                                         loc_41CDB5:                             ; CODE XREF: CL_Record_f+30Dj
  382. .text:0041CDB5 010 33 C0                                               xor     eax, eax
  383. .text:0041CDB7 010 E8 04 36 02 00                                      call    MSG_WriteBits
  384. .text:0041CDBC 010 83 C4 04                                            add     esp, 4
  385. .text:0041CDBF
  386. .text:0041CDBF                                         loc_41CDBF:                             ; CODE XREF: CL_Record_f+3D8j
  387. .text:0041CDBF                                                                                 ; CL_Record_f+433j
  388. .text:0041CDBF 00C 6A 08                                               push    8
  389. .text:0041CDC1 010 B8 0A 00 00 00                                      mov     eax, 0Ah
  390. .text:0041CDC6 010 8D 74 24 18                                         lea     esi, [esp+10h+msg]
  391. .text:0041CDCA 010 E8 F1 35 02 00                                      call    MSG_WriteBits
  392. .text:0041CDCF 010 8B 15 78 4B 95 00                                   mov     edx, dword ptr unk_954B78
  393. .text:0041CDD5 010 8B 0D 00 45 93 00                                   mov     ecx, dword ptr unk_934500
  394. .text:0041CDDB 010 52                                                  push    edx             ; int
  395. .text:0041CDDC 014 8D 44 24 14                                         lea     eax, [esp+14h]
  396. .text:0041CDE0 014 49                                                  dec     ecx
  397. .text:0041CDE1 014 6A 04                                               push    4               ; int
  398. .text:0041CDE3 018 50                                                  push    eax             ; lpBuffer
  399. .text:0041CDE4 01C 89 4C 24 1C                                         mov     [esp+1Ch], ecx
  400. .text:0041CDE8 01C E8 53 F3 01 00                                      call    FS_Write
  401. .text:0041CDED 01C 8B 15 78 4B 95 00                                   mov     edx, dword ptr unk_954B78
  402. .text:0041CDF3 01C 8B 4C 24 38                                         mov     ecx, [esp+1Ch+arg_18]
  403. .text:0041CDF7 01C 52                                                  push    edx             ; int
  404. .text:0041CDF8 020 8D 44 24 20                                         lea     eax, [esp+20h]
  405. .text:0041CDFC 020 6A 04                                               push    4               ; int
  406. .text:0041CDFE 024 50                                                  push    eax             ; lpBuffer
  407. .text:0041CDFF 028 89 4C 24 28                                         mov     [esp+28h], ecx
  408. .text:0041CE03 028 E8 38 F3 01 00                                      call    FS_Write
  409. .text:0041CE08 028 8B 0D 78 4B 95 00                                   mov     ecx, dword ptr unk_954B78
  410. .text:0041CE0E 028 8B 54 24 44                                         mov     edx, [esp+28h+arg_18]
  411. .text:0041CE12 028 8B 44 24 3C                                         mov     eax, [esp+28h+lpBuffer]
  412. .text:0041CE16 028 51                                                  push    ecx             ; int
  413. .text:0041CE17 02C 52                                                  push    edx             ; int
  414. .text:0041CE18 030 50                                                  push    eax             ; lpBuffer
  415. .text:0041CE19 034 E8 22 F3 01 00                                      call    FS_Write
  416. .text:0041CE1E 034 83 C4 28                                            add     esp, 28h
  417. .text:0041CE21 00C 5F                                                  pop     edi
  418. .text:0041CE22 008 5B                                                  pop     ebx
  419. .text:0041CE23
  420. .text:0041CE23                                         loc_41CE23:                             ; CODE XREF: CL_Record_f+3Ej
  421. .text:0041CE23 004 5E                                                  pop     esi
  422. .text:0041CE24 000 81 C4 3C C3 00 00                                   add     esp, 0C33Ch
  423. .text:0041CE2A -C33C C3                                                retn
  424. .text:0041CE2A                                         CL_Record_f     endp ; sp-analysis failed
  425. .text:0041CE2A
  426. .text:0041CE2A                                         ; ---------------------------------------------------------------------------
Add Comment
Please, Sign In to add comment