Function at 0x438620
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e05fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
call fcn.004360c0
xor ebx, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
mov eax, dword [esi + 0x220]
test eax, eax
je 0x438689
mov ecx, dword [esi + 0x224]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jae 0x438689
mov edx, eax
mov edi, dword [edx + ebx*4]
test edi, edi
je 0x438686
lea ecx, [edi + 0x21c]
call fcn.004120d0
push edi
call fcn.004ace19
add esp, 4
inc ebx
jmp 0x438650
mov ecx, dword [esi + 0x224]
mov edx, dword [esi + 0x220]
cmp ecx, ecx
mov eax, ecx
je 0x4386a9
mov edi, dword [eax]
add eax, 4
mov dword [edx], edi
add edx, 4
cmp eax, ecx
jne 0x43869b
mov eax, dword [esi + 0x224]
mov dword [esi + 0x224], edx
mov edx, dword [esi + 8]
mov dword [ebp - 0x20], eax
xor eax, eax
test edx, edx
jle 0x4386db
mov ebx, dword [esi + 4]
mov edi, dword [ebp - 0x18]
mov ecx, ebx
cmp dword [ecx], edi
jne 0x4386d3
cmp byte [ecx + 8], 0
je 0x4386ec
inc eax
add ecx, 0xc
cmp eax, edx
jl 0x4386c9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ecx + 4]
dec edx
cmp eax, edx
je 0x438702
lea ecx, [eax + eax*2 + 3]
mov edx, dword [ebx + ecx*4 + 4]
lea eax, [ebx + ecx*4]
mov dword [ebp - 0x1c], edx
test edi, edi
jle 0x4386db
mov eax, dword [esi + 0x23c]
mov dword [ebp - 4], 0
test eax, eax
je 0x4386db
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
jne 0x43873c
push 2
push 0
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [esi + 0x23c]
push eax
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov ecx, dword [esi + 0x23c]
push 0
push edi
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [esi + 0x23c]
push edx
call dword [sym.imp.MSVCRT.dll_ftell]
push 0x228
mov ebx, eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 0x14
mov dword [ebp - 0x20], edi
test edi, edi
mov byte [ebp - 4], 1
je 0x438785
lea ecx, [edi + 0x21c]
call fcn.00412080
mov dword [ebp - 0x18], edi
jmp 0x43878f
mov dword [ebp - 0x18], 0
mov edi, dword [ebp - 0x18]
mov byte [ebp - 4], 0
cmp ebx, dword [ebp - 0x1c]
jge 0x43882e
test edi, edi
je 0x4386db
mov edx, dword [ebp - 0x18]
mov ecx, 0x8a
xor eax, eax
rep stosd dword es:[edi], eax
mov byte [ebp - 0x11], al
mov eax, dword [esi + 0x23c]
lea ecx, [ebp - 0x11]
push eax
push ecx
push edx
mov ecx, esi
call fcn.004368b0
cmp eax, 0xffffffff
je 0x43882b
mov eax, dword [esi + 0x23c]
mov byte [ebp - 0x11], 1
push eax
call dword [sym.imp.MSVCRT.dll_ftell]
mov ecx, dword [esi + 0x23c]
push 0
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push ecx
mov edi, eax
call ebx
mov edx, dword [esi + 0x23c]
lea eax, [ebp - 0x11]
push edx
push 1
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
mov ecx, dword [esi + 0x23c]
push 0
push edi
push ecx
call ebx
mov edx, dword [esi + 0x23c]
push edx
call dword [sym.imp.MSVCRT.dll_ftell]
mov edi, dword [ebp - 0x18]
add esp, 0x30
mov ebx, eax
jmp 0x438793
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x4386db
lea ecx, [edi + 0x21c]
call fcn.004120d0
push edi
call fcn.004ace19
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret