Function at 0x436af0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0c8b
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.00434590
xor ebx, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
mov eax, dword [esi + 0x220]
test eax, eax
je 0x436b59
mov ecx, dword [esi + 0x224]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jae 0x436b59
mov edx, eax
mov edi, dword [edx + ebx*4]
test edi, edi
je 0x436b56
lea ecx, [edi + 0x21c]
call fcn.00412140
push edi
call fcn.004ad125
add esp, 4
inc ebx
jmp 0x436b20
mov ecx, dword [esi + 0x224]
mov edx, dword [esi + 0x220]
cmp ecx, ecx
mov eax, ecx
je 0x436b79
mov edi, dword [eax]
add eax, 4
mov dword [edx], edi
add edx, 4
cmp eax, ecx
jne 0x436b6b
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 0x436bab
mov ebx, dword [esi + 4]
mov edi, dword [ebp - 0x18]
mov ecx, ebx
cmp dword [ecx], edi
jne 0x436ba3
cmp byte [ecx + 8], 0
je 0x436bbc
inc eax
add ecx, 0xc
cmp eax, edx
jl 0x436b99
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 0x436bd2
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 0x436bab
mov eax, dword [esi + 0x23c]
mov dword [ebp - 4], 0
test eax, eax
je 0x436bab
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
jne 0x436c0c
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 0x436c55
lea ecx, [edi + 0x21c]
call fcn.004120f0
mov dword [ebp - 0x18], edi
jmp 0x436c5f
mov dword [ebp - 0x18], 0
mov edi, dword [ebp - 0x18]
mov byte [ebp - 4], 0
cmp ebx, dword [ebp - 0x1c]
jge 0x436cfe
test edi, edi
je 0x436bab
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.00434d80
cmp eax, 0xffffffff
je 0x436cfb
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 0x436c63
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x436bab
lea ecx, [edi + 0x21c]
call fcn.00412140
push edi
call fcn.004ad125
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