Function at 0x43b630
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb6e9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
call fcn.00438ee0
xor ecx, ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
lea edi, [esi + 0x21c]
mov eax, dword [edi + 4]
test eax, eax
je 0x43b6a6
mov edx, dword [edi + 8]
sub edx, eax
sar edx, 2
cmp ecx, edx
jae 0x43b6a6
mov eax, dword [esi + 0x220]
mov ebx, dword [eax + ecx*4]
test ebx, ebx
je 0x43b6a0
lea ecx, [ebx + 0x21c]
call fcn.004142e0
push ebx
call fcn.004b7a35
mov ecx, dword [ebp - 0x1c]
add esp, 4
inc ecx
mov dword [ebp - 0x1c], ecx
jmp 0x43b669
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
push ecx
push eax
push eax
call fcn.0043bc60
add esp, 0xc
mov ebx, eax
mov eax, dword [edi + 8]
mov ecx, edi
push eax
push ebx
call fcn.00473200
mov dword [edi + 8], ebx
mov ecx, dword [esi + 8]
xor eax, eax
test ecx, ecx
jle 0x43b6eb
mov ebx, dword [esi + 4]
mov edx, ebx
mov edi, dword [ebp - 0x20]
cmp dword [edx], edi
jne 0x43b6e3
cmp byte [edx + 8], 0
je 0x43b6fc
inc eax
add edx, 0xc
cmp eax, ecx
jl 0x43b6d6
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 [edx + 4]
dec ecx
cmp eax, ecx
je 0x43b712
lea ecx, [eax + eax*2 + 3]
mov edx, dword [ebx + ecx*4 + 4]
lea eax, [ebx + ecx*4]
mov dword [ebp - 0x18], edx
xor ebx, ebx
cmp edi, ebx
jle 0x43b6eb
mov eax, dword [esi + 0x23c]
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x43b6eb
cmp dword [ebp - 0x18], ebx
jne 0x43b747
push 2
push ebx
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 - 0x18], eax
mov ecx, dword [esi + 0x23c]
push ebx
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 dword [ebp - 0x1c], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 0x14
mov dword [ebp - 0x20], edi
cmp edi, ebx
mov byte [ebp - 4], 1
je 0x43b7cd
lea ebx, [edi + 0x21c]
mov ecx, ebx
call fcn.00414290
xor eax, eax
push 0x54ea08
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
call fcn.00414300
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
mov byte [ebp - 4], 3
call fcn.00414420
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004142e0
xor ebx, ebx
jmp 0x43b7cf
xor edi, edi
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
cmp eax, ecx
jge 0x43b8a4
cmp edi, ebx
je 0x43b6eb
push 0x54ea08
lea ecx, [ebp - 0x2c]
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
call fcn.00414300
lea edx, [ebp - 0x2c]
lea ecx, [edi + 0x21c]
push edx
mov byte [ebp - 4], 4
call fcn.00414420
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.004142e0
mov eax, dword [esi + 0x23c]
lea ecx, [ebp - 0x11]
push eax
push ecx
push edi
mov ecx, esi
mov byte [ebp - 0x11], 0
call fcn.00439700
cmp eax, 0xffffffff
je 0x43b8a4
mov edx, dword [esi + 0x23c]
mov byte [ebp - 0x11], 1
push edx
call dword [sym.imp.MSVCRT.dll_ftell]
mov ecx, dword [esi + 0x23c]
mov ebx, eax
mov eax, dword [ebp - 0x1c]
push 0
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
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 ebx
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [esi + 0x23c]
push edx
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 0x30
mov dword [ebp - 0x1c], eax
xor ebx, ebx
jmp 0x43b7d3
cmp edi, ebx
je 0x43b6eb
lea ecx, [edi + 0x21c]
call fcn.004142e0
push edi
call fcn.004b7a35
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