Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .text:0041C97A ; ---------------------------------------------------------------------------
- .text:0041C97B 90 90 90 90 90 align 10h
- .text:0041C980
- .text:0041C980 ; =============== S U B R O U T I N E =======================================
- .text:0041C980
- .text:0041C980
- .text:0041C980 CL_Record_f proc near ; DATA XREF: CL_Init+51Do
- .text:0041C980
- .text:0041C980 arg_0 = dword ptr 4
- .text:0041C980 msg = byte ptr 8
- .text:0041C980 arg_C = dword ptr 10h
- .text:0041C980 lpBuffer = dword ptr 14h
- .text:0041C980 arg_18 = dword ptr 1Ch
- .text:0041C980 a1 = byte ptr 28h
- .text:0041C980 dest = byte ptr 128h
- .text:0041C980 data = byte ptr 33Ch
- .text:0041C980
- .text:0041C980 000 B8 3C C3 00 00 mov eax, 0C33Ch ; bytes
- .text:0041C985 000 E8 36 89 11 00 call AllocStack
- .text:0041C98A 000 A1 08 CC B3 00 mov eax, Cmd_Argc
- .text:0041C98F 000 56 push esi
- .text:0041C990 004 BE 02 00 00 00 mov esi, 2
- .text:0041C995 004 3B C6 cmp eax, esi
- .text:0041C997 004 7E 15 jle short loc_41C9AE
- .text:0041C999 004 68 C8 41 56 00 push offset aRecordDemoname ; "record <demoname>\n"
- .text:0041C99E 008 E8 DD A6 01 00 call Com_Printf
- .text:0041C9A3 008 83 C4 04 add esp, 4
- .text:0041C9A6 004 5E pop esi
- .text:0041C9A7 000 81 C4 3C C3 00 00 add esp, 0C33Ch
- .text:0041C9AD -C33C C3 retn
- .text:0041C9AE ; ---------------------------------------------------------------------------
- .text:0041C9AE
- .text:0041C9AE loc_41C9AE: ; CODE XREF: CL_Record_f+17j
- .text:0041C9AE 004 A1 68 4B 95 00 mov eax, dword ptr unk_954B68
- .text:0041C9B3 004 85 C0 test eax, eax
- .text:0041C9B5 004 74 22 jz short loc_41C9D9
- .text:0041C9B7 004 A1 64 4B 95 00 mov eax, dword ptr unk_954B64
- .text:0041C9BC 004 85 C0 test eax, eax
- .text:0041C9BE 004 0F 85 5F 04 00 00 jnz loc_41CE23
- .text:0041C9C4 004 68 B4 41 56 00 push offset aAlreadyRecordi ; "Already recording.\n"
- .text:0041C9C9 008 E8 B2 A6 01 00 call Com_Printf
- .text:0041C9CE 008 83 C4 04 add esp, 4
- .text:0041C9D1 004 5E pop esi
- .text:0041C9D2 000 81 C4 3C C3 00 00 add esp, 0C33Ch
- .text:0041C9D8 -C33C C3 retn
- .text:0041C9D9 ; ---------------------------------------------------------------------------
- .text:0041C9D9
- .text:0041C9D9 loc_41C9D9: ; CODE XREF: CL_Record_f+35j
- .text:0041C9D9 004 83 3D 00 F1 8A 00 08 cmp cls_state, 8
- .text:0041C9E0 004 74 15 jz short loc_41C9F7
- .text:0041C9E2 004 68 90 41 56 00 push offset aYouMustBeInALe ; "You must be in a level to record.\n"
- .text:0041C9E7 008 E8 94 A6 01 00 call Com_Printf
- .text:0041C9EC 008 83 C4 04 add esp, 4
- .text:0041C9EF 004 5E pop esi
- .text:0041C9F0 000 81 C4 3C C3 00 00 add esp, 0C33Ch
- .text:0041C9F6 -C33C C3 retn
- .text:0041C9F7 ; ---------------------------------------------------------------------------
- .text:0041C9F7
- .text:0041C9F7 loc_41C9F7: ; CODE XREF: CL_Record_f+60j
- .text:0041C9F7 004 53 push ebx
- .text:0041C9F8 008 57 push edi
- .text:0041C9F9 00C BF 78 41 56 00 mov edi, offset aG_synchronousc ; "g_synchronousClients"
- .text:0041C9FE 00C E8 AD C9 01 00 call Cvar_FindVar
- .text:0041CA03 00C 85 C0 test eax, eax
- .text:0041CA05 00C 74 18 jz short loc_41CA1F
- .text:0041CA07 00C 8B 40 1C mov eax, [eax+1Ch]
- .text:0041CA0A 00C 89 44 24 10 mov [esp+0Ch+arg_0], eax
- .text:0041CA0E 00C D9 44 24 10 fld [esp+0Ch+arg_0]
- .text:0041CA12 00C D8 1D AC 5F 56 00 fcomp ds:SrcStr
- .text:0041CA18 00C DF E0 fnstsw ax
- .text:0041CA1A 00C F6 C4 44 test ah, 44h
- .text:0041CA1D 00C 7A 17 jp short loc_41CA36
- .text:0041CA1F
- .text:0041CA1F loc_41CA1F: ; CODE XREF: CL_Record_f+85j
- .text:0041CA1F 00C 68 38 41 56 00 push offset aTheServerMustH ; "The server must have 'g_synchronousClie"...
- .text:0041CA24 010 E8 57 A6 01 00 call Com_Printf
- .text:0041CA29 010 83 C4 04 add esp, 4
- .text:0041CA2C 00C 5F pop edi
- .text:0041CA2D 008 5B pop ebx
- .text:0041CA2E 004 5E pop esi
- .text:0041CA2F 000 81 C4 3C C3 00 00 add esp, 0C33Ch
- .text:0041CA35 -C33C C3 retn
- .text:0041CA36 ; ---------------------------------------------------------------------------
- .text:0041CA36
- .text:0041CA36 loc_41CA36: ; CODE XREF: CL_Record_f+9Dj
- .text:0041CA36 00C 39 35 08 CC B3 00 cmp Cmd_Argc, esi
- .text:0041CA3C 00C 75 36 jnz short loc_41CA74
- .text:0041CA3E 00C B8 01 00 00 00 mov eax, 1
- .text:0041CA43 00C E8 F8 9F 01 00 call sub_436A40
- .text:0041CA48 00C BF 40 00 00 00 mov edi, 40h
- .text:0041CA4D 00C 8B D8 mov ebx, eax
- .text:0041CA4F 00C BE 00 6A 88 00 mov esi, offset src
- .text:0041CA54 00C E8 17 7C 02 00 call Q_strncpyz_
- .text:0041CA59 00C 6A 1A push 1Ah
- .text:0041CA5B 010 56 push esi
- .text:0041CA5C 014 68 28 41 56 00 push offset aDemosS_dm_D ; "demos/%s.dm_%d"
- .text:0041CA61 018 BF 00 01 00 00 mov edi, 100h
- .text:0041CA66 018 8D 5C 24 40 lea ebx, [esp+18h+a1]
- .text:0041CA6A 018 E8 71 7E 02 00 call Com_sprintf
- .text:0041CA6F 018 83 C4 0C add esp, 0Ch
- .text:0041CA72 00C EB 52 jmp short loc_41CAC6
- .text:0041CA74 ; ---------------------------------------------------------------------------
- .text:0041CA74
- .text:0041CA74 loc_41CA74: ; CODE XREF: CL_Record_f+BCj
- .text:0041CA74 00C 33 F6 xor esi, esi
- .text:0041CA76 00C EB 08 jmp short loc_41CA80
- .text:0041CA76 ; ---------------------------------------------------------------------------
- .text:0041CA78 00C 8D db 8Dh ; ì
- .text:0041CA79 00C A4 db 0A4h ; ñ
- .text:0041CA7A 00C 24 db 24h ; $
- .text:0041CA7B 00C 00 db 0
- .text:0041CA7C 00C 00 db 0
- .text:0041CA7D 00C 00 db 0
- .text:0041CA7E 00C 00 db 0
- .text:0041CA7F 00C 90 db 90h ; É
- .text:0041CA80 ; ---------------------------------------------------------------------------
- .text:0041CA80
- .text:0041CA80 loc_41CA80: ; CODE XREF: CL_Record_f+F6j
- .text:0041CA80 ; CL_Record_f+144j
- .text:0041CA80 00C B8 00 6A 88 00 mov eax, offset src
- .text:0041CA85 00C 8B CE mov ecx, esi
- .text:0041CA87 00C E8 64 FE FF FF call sub_41C8F0
- .text:0041CA8C 00C 6A 1A push 1Ah
- .text:0041CA8E 010 68 00 6A 88 00 push offset src
- .text:0041CA93 014 68 28 41 56 00 push offset aDemosS_dm_D ; "demos/%s.dm_%d"
- .text:0041CA98 018 BF 00 01 00 00 mov edi, 100h
- .text:0041CA9D 018 8D 5C 24 40 lea ebx, [esp+18h+a1]
- .text:0041CAA1 018 E8 3A 7E 02 00 call Com_sprintf
- .text:0041CAA6 018 8D 4C 24 40 lea ecx, [esp+18h+a1]
- .text:0041CAAA 018 51 push ecx ; filename
- .text:0041CAAB 01C 33 FF xor edi, edi ; buffer
- .text:0041CAAD 01C E8 BE F9 01 00 call FS_ReadFile
- .text:0041CAB2 01C 83 C4 10 add esp, 10h
- .text:0041CAB5 00C 85 C0 test eax, eax
- .text:0041CAB7 00C 89 44 24 0C mov [esp+0Ch], eax
- .text:0041CABB 00C 7E 09 jle short loc_41CAC6
- .text:0041CABD 00C 46 inc esi
- .text:0041CABE 00C 81 FE 0F 27 00 00 cmp esi, 270Fh
- .text:0041CAC4 00C 7E BA jle short loc_41CA80
- .text:0041CAC6
- .text:0041CAC6 loc_41CAC6: ; CODE XREF: CL_Record_f+F2j
- .text:0041CAC6 ; CL_Record_f+13Bj
- .text:0041CAC6 00C 8D 54 24 34 lea edx, [esp+0Ch+a1]
- .text:0041CACA 00C 52 push edx
- .text:0041CACB 010 68 14 41 56 00 push offset aRecordingToS_ ; "recording to %s.\n"
- .text:0041CAD0 014 E8 AB A5 01 00 call Com_Printf
- .text:0041CAD5 014 83 C4 08 add esp, 8
- .text:0041CAD8 00C 8D 5C 24 34 lea ebx, [esp+0Ch+a1] ; a1
- .text:0041CADC 00C E8 6F E7 01 00 call FS_FOpenFileWrite
- .text:0041CAE1 00C 85 C0 test eax, eax
- .text:0041CAE3 00C A3 78 4B 95 00 mov dword ptr unk_954B78, eax
- .text:0041CAE8 00C 75 17 jnz short loc_41CB01
- .text:0041CAEA 00C 68 FC 40 56 00 push offset aErrorCouldnTOp ; "ERROR: couldn't open.\n"
- .text:0041CAEF 010 E8 8C A5 01 00 call Com_Printf
- .text:0041CAF4 010 83 C4 04 add esp, 4
- .text:0041CAF7 00C 5F pop edi
- .text:0041CAF8 008 5B pop ebx
- .text:0041CAF9 004 5E pop esi
- .text:0041CAFA 000 81 C4 3C C3 00 00 add esp, 0C33Ch
- .text:0041CB00 -C33C C3 retn
- .text:0041CB01 ; ---------------------------------------------------------------------------
- .text:0041CB01
- .text:0041CB01 loc_41CB01: ; CODE XREF: CL_Record_f+168j
- .text:0041CB01 00C BE 01 00 00 00 mov esi, 1
- .text:0041CB06 00C BF EC 40 56 00 mov edi, offset aUi_recordspdem ; "ui_recordSPDemo"
- .text:0041CB0B 00C 89 35 68 4B 95 00 mov dword ptr unk_954B68, esi
- .text:0041CB11 00C E8 9A C8 01 00 call Cvar_FindVar
- .text:0041CB16 00C 85 C0 test eax, eax
- .text:0041CB18 00C 74 1E jz short loc_41CB38
- .text:0041CB1A 00C 8B 40 1C mov eax, [eax+1Ch]
- .text:0041CB1D 00C 89 44 24 10 mov [esp+0Ch+arg_0], eax
- .text:0041CB21 00C D9 44 24 10 fld [esp+0Ch+arg_0]
- .text:0041CB25 00C 89 35 64 4B 95 00 mov dword ptr unk_954B64, esi
- .text:0041CB2B 00C D8 1D AC 5F 56 00 fcomp ds:SrcStr
- .text:0041CB31 00C DF E0 fnstsw ax
- .text:0041CB33 00C F6 C4 44 test ah, 44h
- .text:0041CB36 00C 7A 0A jp short loc_41CB42
- .text:0041CB38
- .text:0041CB38 loc_41CB38: ; CODE XREF: CL_Record_f+198j
- .text:0041CB38 00C C7 05 64 4B 95 00 00 00 00 00 mov dword ptr unk_954B64, 0
- .text:0041CB42
- .text:0041CB42 loc_41CB42: ; CODE XREF: CL_Record_f+1B6j
- .text:0041CB42 00C 6A 3F push 3Fh ; destsize
- .text:0041CB44 010 68 00 6A 88 00 push offset src ; src
- .text:0041CB49 014 68 24 4B 95 00 push offset dest ; dest
- .text:0041CB4E 018 E8 6D D8 10 00 call Q_strncpyz
- .text:0041CB53 018 8D 8C 24 54 03 00 00 lea ecx, [esp+18h+data]
- .text:0041CB5A 018 89 35 70 4B 95 00 mov dword ptr unk_954B70, esi
- .text:0041CB60 018 68 00 C0 00 00 push 0C000h ; length
- .text:0041CB65 01C 51 push ecx ; data
- .text:0041CB66 020 8D 74 24 28 lea esi, [esp+20h+msg] ; msg
- .text:0041CB6A 020 C6 05 63 4B 95 00 00 mov byte ptr unk_954B63, 0
- .text:0041CB71 020 E8 9A 37 02 00 call MSG_Init
- .text:0041CB76 020 A1 F8 44 91 00 mov eax, dword ptr unk_9144F8
- .text:0041CB7B 020 6A 20 push 20h
- .text:0041CB7D 024 8D 74 24 2C lea esi, [esp+24h+msg]
- .text:0041CB81 024 C7 44 24 34 00 00 00 00 mov [esp+24h+arg_C], 0
- .text:0041CB89 024 E8 32 38 02 00 call MSG_WriteBits
- .text:0041CB8E 024 6A 08 push 8
- .text:0041CB90 028 B8 02 00 00 00 mov eax, 2
- .text:0041CB95 028 8D 74 24 30 lea esi, [esp+28h+msg]
- .text:0041CB99 028 E8 22 38 02 00 call MSG_WriteBits
- .text:0041CB9E 028 A1 04 45 93 00 mov eax, dword ptr unk_934504
- .text:0041CBA3 028 6A 20 push 20h
- .text:0041CBA5 02C 8D 74 24 34 lea esi, [esp+2Ch+msg]
- .text:0041CBA9 02C E8 12 38 02 00 call MSG_WriteBits
- .text:0041CBAE 02C 83 C4 20 add esp, 20h
- .text:0041CBB1 00C 33 FF xor edi, edi
- .text:0041CBB3
- .text:0041CBB3 loc_41CBB3: ; CODE XREF: CL_Record_f+276j
- .text:0041CBB3 00C 8B 1C BD 54 7D 97 00 mov ebx, dword_977D54[edi*4]
- .text:0041CBBA 00C 85 DB test ebx, ebx
- .text:0041CBBC 00C 74 31 jz short loc_41CBEF
- .text:0041CBBE 00C 6A 08 push 8
- .text:0041CBC0 010 B8 03 00 00 00 mov eax, 3
- .text:0041CBC5 010 8D 74 24 18 lea esi, [esp+10h+msg]
- .text:0041CBC9 010 8D 9B E4 97 97 00 lea ebx, dword_9797E4[ebx]
- .text:0041CBCF 010 E8 EC 37 02 00 call MSG_WriteBits
- .text:0041CBD4 010 6A 10 push 10h
- .text:0041CBD6 014 8B C7 mov eax, edi
- .text:0041CBD8 014 8D 74 24 1C lea esi, [esp+14h+msg]
- .text:0041CBDC 014 E8 DF 37 02 00 call MSG_WriteBits
- .text:0041CBE1 014 83 C4 08 add esp, 8
- .text:0041CBE4 00C 8B D3 mov edx, ebx
- .text:0041CBE6 00C 8D 4C 24 14 lea ecx, [esp+0Ch+msg]
- .text:0041CBEA 00C E8 21 3C 02 00 call MSG_WriteString
- .text:0041CBEF
- .text:0041CBEF loc_41CBEF: ; CODE XREF: CL_Record_f+23Cj
- .text:0041CBEF 00C 47 inc edi
- .text:0041CBF0 00C 81 FF A4 06 00 00 cmp edi, 6A4h
- .text:0041CBF6 00C 7C BB jl short loc_41CBB3
- .text:0041CBF8 00C 68 14 02 00 00 push 214h ; count
- .text:0041CBFD 010 8D 94 24 38 01 00 00 lea edx, [esp+10h+dest]
- .text:0041CC04 010 6A 00 push 0 ; val
- .text:0041CC06 014 52 push edx ; dest
- .text:0041CC07 018 E8 54 C5 01 00 call Com_Memset
- .text:0041CC0C 018 83 C4 0C add esp, 0Ch
- .text:0041CC0F 00C BF 98 6C 99 00 mov edi, offset cl_entityBaselines
- .text:0041CC14
- .text:0041CC14 loc_41CC14: ; CODE XREF: CL_Record_f+2CBj
- .text:0041CC14 00C 83 3F 00 cmp dword ptr [edi], 0
- .text:0041CC17 00C 74 26 jz short loc_41CC3F
- .text:0041CC19 00C 6A 08 push 8
- .text:0041CC1B 010 B8 04 00 00 00 mov eax, 4
- .text:0041CC20 010 8D 74 24 18 lea esi, [esp+10h+msg]
- .text:0041CC24 010 E8 97 37 02 00 call MSG_WriteBits
- .text:0041CC29 010 8D 84 24 38 01 00 00 lea eax, [esp+10h+dest]
- .text:0041CC30 010 6A 01 push 1
- .text:0041CC32 014 50 push eax
- .text:0041CC33 018 8D 44 24 20 lea eax, [esp+18h+msg]
- .text:0041CC37 018 E8 24 44 02 00 call MSG_WriteDeltaEntity
- .text:0041CC3C 018 83 C4 0C add esp, 0Ch
- .text:0041CC3F
- .text:0041CC3F loc_41CC3F: ; CODE XREF: CL_Record_f+297j
- .text:0041CC3F 00C 81 C7 14 02 00 00 add edi, 214h
- .text:0041CC45 00C 81 FF 98 BC A1 00 cmp edi, offset stru_A1BC98
- .text:0041CC4B 00C 7C C7 jl short loc_41CC14
- .text:0041CC4D 00C 6A 08 push 8
- .text:0041CC4F 010 B8 0A 00 00 00 mov eax, 0Ah
- .text:0041CC54 010 8D 74 24 18 lea esi, [esp+10h+msg]
- .text:0041CC58 010 E8 63 37 02 00 call MSG_WriteBits
- .text:0041CC5D 010 A1 C8 40 91 00 mov eax, dword ptr unk_9140C8
- .text:0041CC62 010 6A 20 push 20h
- .text:0041CC64 014 8D 74 24 1C lea esi, [esp+14h+msg]
- .text:0041CC68 014 E8 53 37 02 00 call MSG_WriteBits
- .text:0041CC6D 014 A1 F4 44 91 00 mov eax, dword ptr checksumFeed
- .text:0041CC72 014 6A 20 push 20h
- .text:0041CC74 018 8D 74 24 20 lea esi, [esp+18h+msg]
- .text:0041CC78 018 E8 43 37 02 00 call MSG_WriteBits
- .text:0041CC7D 018 A1 C8 CB 96 00 mov eax, dword_96CBC8
- .text:0041CC82 018 83 C4 0C add esp, 0Ch
- .text:0041CC85 00C 85 C0 test eax, eax
- .text:0041CC87 00C 8D 74 24 14 lea esi, [esp+0Ch+msg]
- .text:0041CC8B 00C 6A 10 push 10h
- .text:0041CC8D 010 0F 84 22 01 00 00 jz loc_41CDB5
- .text:0041CC93 010 0F B7 C0 movzx eax, ax
- .text:0041CC96 010 E8 25 37 02 00 call MSG_WriteBits
- .text:0041CC9B 010 6A 01 push 1
- .text:0041CC9D 014 33 C0 xor eax, eax
- .text:0041CC9F 014 8D 74 24 1C lea esi, [esp+14h+msg]
- .text:0041CCA3 014 E8 18 37 02 00 call MSG_WriteBits
- .text:0041CCA8 014 A1 C8 CB 96 00 mov eax, dword_96CBC8
- .text:0041CCAD 014 83 C4 08 add esp, 8
- .text:0041CCB0 00C 33 FF xor edi, edi
- .text:0041CCB2 00C 85 C0 test eax, eax
- .text:0041CCB4 00C 8B D8 mov ebx, eax
- .text:0041CCB6 00C 7E 22 jle short loc_41CCDA
- .text:0041CCB8 00C EB 06 jmp short loc_41CCC0
- .text:0041CCB8 ; ---------------------------------------------------------------------------
- .text:0041CCBA 00C 8D db 8Dh ; ì
- .text:0041CCBB 00C 9B db 9Bh ; ¢
- .text:0041CCBC 00C 00 db 0
- .text:0041CCBD 00C 00 db 0
- .text:0041CCBE 00C 00 db 0
- .text:0041CCBF 00C 00 db 0
- .text:0041CCC0 ; ---------------------------------------------------------------------------
- .text:0041CCC0
- .text:0041CCC0 loc_41CCC0: ; CODE XREF: CL_Record_f+338j
- .text:0041CCC0 ; CL_Record_f+358j
- .text:0041CCC0 00C 0F B6 87 CC CB 96 00 movzx eax, byte_96CBCC[edi]
- .text:0041CCC7 00C 6A 08 push 8
- .text:0041CCC9 010 8D 74 24 18 lea esi, [esp+10h+msg]
- .text:0041CCCD 010 E8 EE 36 02 00 call MSG_WriteBits
- .text:0041CCD2 010 83 C4 04 add esp, 4
- .text:0041CCD5 00C 47 inc edi
- .text:0041CCD6 00C 3B FB cmp edi, ebx
- .text:0041CCD8 00C 7C E6 jl short loc_41CCC0
- .text:0041CCDA
- .text:0041CCDA loc_41CCDA: ; CODE XREF: CL_Record_f+336j
- .text:0041CCDA 00C 0F B7 05 C8 CB 96 00 movzx eax, word ptr dword_96CBC8
- .text:0041CCE1 00C 6A 10 push 10h
- .text:0041CCE3 010 8D 74 24 18 lea esi, [esp+10h+msg]
- .text:0041CCE7 010 E8 D4 36 02 00 call MSG_WriteBits
- .text:0041CCEC 010 6A 01 push 1
- .text:0041CCEE 014 33 C0 xor eax, eax
- .text:0041CCF0 014 8D 74 24 1C lea esi, [esp+14h+msg]
- .text:0041CCF4 014 E8 C7 36 02 00 call MSG_WriteBits
- .text:0041CCF9 014 A1 C8 CB 96 00 mov eax, dword_96CBC8
- .text:0041CCFE 014 83 C4 08 add esp, 8
- .text:0041CD01 00C 33 FF xor edi, edi
- .text:0041CD03 00C 85 C0 test eax, eax
- .text:0041CD05 00C 8B D8 mov ebx, eax
- .text:0041CD07 00C 7E 21 jle short loc_41CD2A
- .text:0041CD09 00C 8D A4 24 00 00 00 00 lea esp, [esp+0]
- .text:0041CD10
- .text:0041CD10 loc_41CD10: ; CODE XREF: CL_Record_f+3A8j
- .text:0041CD10 00C 0F B6 87 4C 0A 97 00 movzx eax, byte_970A4C[edi]
- .text:0041CD17 00C 6A 08 push 8
- .text:0041CD19 010 8D 74 24 18 lea esi, [esp+10h+msg]
- .text:0041CD1D 010 E8 9E 36 02 00 call MSG_WriteBits
- .text:0041CD22 010 83 C4 04 add esp, 4
- .text:0041CD25 00C 47 inc edi
- .text:0041CD26 00C 3B FB cmp edi, ebx
- .text:0041CD28 00C 7C E6 jl short loc_41CD10
- .text:0041CD2A
- .text:0041CD2A loc_41CD2A: ; CODE XREF: CL_Record_f+387j
- .text:0041CD2A 00C A1 C4 CB 96 00 mov eax, dword_96CBC4
- .text:0041CD2F 00C 6A 20 push 20h
- .text:0041CD31 010 8D 74 24 18 lea esi, [esp+10h+msg]
- .text:0041CD35 010 E8 86 36 02 00 call MSG_WriteBits
- .text:0041CD3A 010 0F B7 05 CC 70 97 00 movzx eax, word ptr dword_9770CC
- .text:0041CD41 010 6A 10 push 10h
- .text:0041CD43 014 8D 74 24 1C lea esi, [esp+14h+msg]
- .text:0041CD47 014 E8 74 36 02 00 call MSG_WriteBits
- .text:0041CD4C 014 A1 CC 70 97 00 mov eax, dword_9770CC
- .text:0041CD51 014 83 C4 08 add esp, 8
- .text:0041CD54 00C 33 DB xor ebx, ebx
- .text:0041CD56 00C 85 C0 test eax, eax
- .text:0041CD58 00C 7E 65 jle short loc_41CDBF
- .text:0041CD5A 00C BF D0 48 97 00 mov edi, offset unk_9748D0
- .text:0041CD5F 00C 90 nop
- .text:0041CD60
- .text:0041CD60 loc_41CD60: ; CODE XREF: CL_Record_f+431j
- .text:0041CD60 00C 0F B6 47 FC movzx eax, byte ptr [edi-4]
- .text:0041CD64 00C 6A 08 push 8
- .text:0041CD66 010 8D 74 24 18 lea esi, [esp+10h+msg]
- .text:0041CD6A 010 E8 51 36 02 00 call MSG_WriteBits
- .text:0041CD6F 010 0F B6 07 movzx eax, byte ptr [edi]
- .text:0041CD72 010 6A 08 push 8
- .text:0041CD74 014 8D 74 24 1C lea esi, [esp+14h+msg]
- .text:0041CD78 014 E8 43 36 02 00 call MSG_WriteBits
- .text:0041CD7D 014 6A 20 push 20h
- .text:0041CD7F 018 D9 47 04 fld dword ptr [edi+4]
- .text:0041CD82 018 E8 FD C7 11 00 call FloatToIntRound
- .text:0041CD87 018 8D 74 24 20 lea esi, [esp+18h+msg]
- .text:0041CD8B 018 E8 30 36 02 00 call MSG_WriteBits
- .text:0041CD90 018 D9 47 08 fld dword ptr [edi+8]
- .text:0041CD93 018 6A 20 push 20h
- .text:0041CD95 01C E8 EA C7 11 00 call FloatToIntRound
- .text:0041CD9A 01C 8D 74 24 24 lea esi, [esp+1Ch+msg]
- .text:0041CD9E 01C E8 1D 36 02 00 call MSG_WriteBits
- .text:0041CDA3 01C A1 CC 70 97 00 mov eax, dword_9770CC
- .text:0041CDA8 01C 83 C4 10 add esp, 10h
- .text:0041CDAB 00C 43 inc ebx
- .text:0041CDAC 00C 83 C7 14 add edi, 14h
- .text:0041CDAF 00C 3B D8 cmp ebx, eax
- .text:0041CDB1 00C 7C AD jl short loc_41CD60
- .text:0041CDB3 00C EB 0A jmp short loc_41CDBF
- .text:0041CDB5 ; ---------------------------------------------------------------------------
- .text:0041CDB5
- .text:0041CDB5 loc_41CDB5: ; CODE XREF: CL_Record_f+30Dj
- .text:0041CDB5 010 33 C0 xor eax, eax
- .text:0041CDB7 010 E8 04 36 02 00 call MSG_WriteBits
- .text:0041CDBC 010 83 C4 04 add esp, 4
- .text:0041CDBF
- .text:0041CDBF loc_41CDBF: ; CODE XREF: CL_Record_f+3D8j
- .text:0041CDBF ; CL_Record_f+433j
- .text:0041CDBF 00C 6A 08 push 8
- .text:0041CDC1 010 B8 0A 00 00 00 mov eax, 0Ah
- .text:0041CDC6 010 8D 74 24 18 lea esi, [esp+10h+msg]
- .text:0041CDCA 010 E8 F1 35 02 00 call MSG_WriteBits
- .text:0041CDCF 010 8B 15 78 4B 95 00 mov edx, dword ptr unk_954B78
- .text:0041CDD5 010 8B 0D 00 45 93 00 mov ecx, dword ptr unk_934500
- .text:0041CDDB 010 52 push edx ; int
- .text:0041CDDC 014 8D 44 24 14 lea eax, [esp+14h]
- .text:0041CDE0 014 49 dec ecx
- .text:0041CDE1 014 6A 04 push 4 ; int
- .text:0041CDE3 018 50 push eax ; lpBuffer
- .text:0041CDE4 01C 89 4C 24 1C mov [esp+1Ch], ecx
- .text:0041CDE8 01C E8 53 F3 01 00 call FS_Write
- .text:0041CDED 01C 8B 15 78 4B 95 00 mov edx, dword ptr unk_954B78
- .text:0041CDF3 01C 8B 4C 24 38 mov ecx, [esp+1Ch+arg_18]
- .text:0041CDF7 01C 52 push edx ; int
- .text:0041CDF8 020 8D 44 24 20 lea eax, [esp+20h]
- .text:0041CDFC 020 6A 04 push 4 ; int
- .text:0041CDFE 024 50 push eax ; lpBuffer
- .text:0041CDFF 028 89 4C 24 28 mov [esp+28h], ecx
- .text:0041CE03 028 E8 38 F3 01 00 call FS_Write
- .text:0041CE08 028 8B 0D 78 4B 95 00 mov ecx, dword ptr unk_954B78
- .text:0041CE0E 028 8B 54 24 44 mov edx, [esp+28h+arg_18]
- .text:0041CE12 028 8B 44 24 3C mov eax, [esp+28h+lpBuffer]
- .text:0041CE16 028 51 push ecx ; int
- .text:0041CE17 02C 52 push edx ; int
- .text:0041CE18 030 50 push eax ; lpBuffer
- .text:0041CE19 034 E8 22 F3 01 00 call FS_Write
- .text:0041CE1E 034 83 C4 28 add esp, 28h
- .text:0041CE21 00C 5F pop edi
- .text:0041CE22 008 5B pop ebx
- .text:0041CE23
- .text:0041CE23 loc_41CE23: ; CODE XREF: CL_Record_f+3Ej
- .text:0041CE23 004 5E pop esi
- .text:0041CE24 000 81 C4 3C C3 00 00 add esp, 0C33Ch
- .text:0041CE2A -C33C C3 retn
- .text:0041CE2A CL_Record_f endp ; sp-analysis failed
- .text:0041CE2A
- .text:0041CE2A ; ---------------------------------------------------------------------------
Add Comment
Please, Sign In to add comment