Function at 0x437b50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e024b
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.004355f0
xor ebx, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
mov eax, dword [esi + 0x220]
test eax, eax
je 0x437bb9
mov ecx, dword [esi + 0x224]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jae 0x437bb9
mov edx, eax
mov edi, dword [edx + ebx*4]
test edi, edi
je 0x437bb6
lea ecx, [edi + 0x21c]
call fcn.00412770
push edi
call fcn.004acab9
add esp, 4
inc ebx
jmp 0x437b80
mov ecx, dword [esi + 0x224]
mov edx, dword [esi + 0x220]
cmp ecx, ecx
mov eax, ecx
je 0x437bd9
mov edi, dword [eax]
add eax, 4
mov dword [edx], edi
add edx, 4
cmp eax, ecx
jne 0x437bcb
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 0x437c0b
mov ebx, dword [esi + 4]
mov edi, dword [ebp - 0x18]
mov ecx, ebx
cmp dword [ecx], edi
jne 0x437c03
cmp byte [ecx + 8], 0
je 0x437c1c
inc eax
add ecx, 0xc
cmp eax, edx
jl 0x437bf9
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 0x437c32
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 0x437c0b
mov eax, dword [esi + 0x23c]
mov dword [ebp - 4], 0
test eax, eax
je 0x437c0b
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
jne 0x437c6c
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 0x437cb5
lea ecx, [edi + 0x21c]
call fcn.00412720
mov dword [ebp - 0x18], edi
jmp 0x437cbf
mov dword [ebp - 0x18], 0
mov edi, dword [ebp - 0x18]
mov byte [ebp - 4], 0
cmp ebx, dword [ebp - 0x1c]
jge 0x437d5e
test edi, edi
je 0x437c0b
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.00435de0
cmp eax, 0xffffffff
je 0x437d5b
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 0x437cc3
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x437c0b
lea ecx, [edi + 0x21c]
call fcn.00412770
push edi
call fcn.004acab9
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