Function at 0x432482
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x432498
xor al, al
jmp 0x4327e9
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43249e
sub eax, edx
je 0x432491
cmp dword [ebx + 0x344], edi
je 0x432491
push 0x4590f4
push dword [ebp + 8]
call fcn.0043ccfd
pop ecx
pop ecx
mov dword [ebp - 4], eax
cmp eax, edi
je 0x432491
lea esi, [ebx + 0x368]
cmp dword [esi], edi
jne 0x4324e1
push 0x454bbf
xor eax, eax
mov edi, ebx
call fcn.004329ce
mov dword [esi], eax
mov esi, dword [esi]
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4324e8
push dword [ebp - 4]
sub eax, ecx
mov edi, eax
push edi
push 1
push esi
call fcn.0043e7df
add esp, 0x10
cmp eax, edi
je 0x432515
push dword [ebp - 4]
call fcn.0043d47e
xor al, al
jmp 0x4327e8
mov eax, 0x456a00
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43251d
mov edi, dword [ebp - 4]
sub eax, edx
push edi
mov esi, eax
push esi
push 1
push 0x456a00
call fcn.0043e7df
add esp, 0x10
cmp eax, esi
je 0x432543
push edi
jmp 0x432509
mov eax, dword [ebx + 0x340]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
shl eax, 2
push eax
call fcn.0043b7b3
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x432491
mov ecx, dword [ebx + 0x340]
mov ecx, dword [ecx]
xor eax, eax
cmp dword [ecx + 0xc], eax
jbe 0x43263b
mov ecx, dword [ebx + 0x340]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 8]
mov ecx, dword [ecx + eax*4]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x10]
mov dword [edx + eax*4], ecx
inc eax
mov dword [ebp + 8], eax
cmp dword [ebp - 0xc], eax
jbe 0x4325dc
test ecx, ecx
je 0x432627
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4325a5
sub eax, esi
push edi
mov esi, eax
push esi
push 1
push ecx
call fcn.0043e7df
add esp, 0x10
push edi
cmp eax, esi
jne 0x432509
push 1
push 1
push 0x456a00
call fcn.0043e7df
add esp, 0x10
cmp eax, 1
jmp 0x43261a
test ecx, ecx
je 0x432627
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4325e5
sub eax, esi
push edi
mov esi, eax
push esi
push 1
push ecx
call fcn.0043e7df
add esp, 0x10
push edi
cmp eax, esi
jne 0x432509
push 2
push 1
push 0x456a04
call fcn.0043e7df
add esp, 0x10
cmp eax, 2
push edi
jne 0x432509
call fcn.0043e482
pop ecx
mov ecx, dword [ebx + 0x340]
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
cmp eax, dword [ecx + 0xc]
jb 0x432579
xor eax, eax
cmp dword [ebx + 0x344], eax
jbe 0x4327d7
mov ecx, dword [ebx + 0x340]
mov ecx, dword [ecx + eax*4]
mov edi, dword [ecx]
inc eax
cmp eax, dword [ebx + 0x120]
mov dword [ebp - 0x14], edi
setb byte [ebp + 0xb]
mov dword [ebp - 0x20], eax
test edi, edi
je 0x4326b6
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43266e
push dword [ebp - 4]
sub eax, edx
mov esi, eax
push esi
push 1
push edi
call fcn.0043e7df
add esp, 0x10
push dword [ebp - 4]
cmp eax, esi
jne 0x432509
push 1
push 1
push 0x456a00
call fcn.0043e7df
add esp, 0x10
push dword [ebp - 4]
cmp eax, 1
jne 0x432509
call fcn.0043e482
pop ecx
xor eax, eax
cmp dword [ebp - 0xc], eax
jbe 0x4327a8
lea ecx, [eax + 1]
mov dword [ebp - 0x1c], ecx
cmp ecx, dword [ebp - 0xc]
jae 0x4326d5
mov dword [ebp - 8], 0x456a00
jmp 0x4326e9
cmp byte [ebp + 0xb], 0
mov dword [ebp - 8], 0x454bbf
jne 0x4326e9
mov dword [ebp - 8], 0x456a04
mov ecx, dword [ebp - 0x10]
mov esi, dword [ecx + eax*4]
push 0
push esi
push edi
mov eax, ebx
call fcn.004302de
test eax, eax
je 0x43279c
push 0
push esi
push edi
mov eax, ebx
call fcn.004302de
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x432710
sub eax, ecx
mov edi, eax
mov eax, dword [ebp - 8]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x432721
push dword [ebp - 4]
sub eax, ecx
push edi
push 1
push ecx
push 0
push esi
push dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, ebx
call fcn.004302de
pop ecx
push eax
call fcn.0043e7df
add esp, 0x10
cmp eax, edi
jne 0x432506
mov esi, dword [ebp - 8]
test esi, esi
je 0x432790
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43275f
sub eax, edx
je 0x432790
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x43276f
push dword [ebp - 4]
sub eax, ecx
push eax
push 1
push esi
call fcn.0043e7df
add esp, 0x10
cmp eax, dword [ebp - 0x18]
jne 0x432506
push dword [ebp - 4]
call fcn.0043e482
mov edi, dword [ebp - 0x14]
pop ecx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0xc]
jb 0x4326c1
push dword [ebp - 4]
push 2
push 1
push 0x456a04
call fcn.0043e7df
add esp, 0x10
cmp eax, 2
jne 0x432506
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebx + 0x344]
jb 0x432649
mov edi, dword [ebp - 4]
push edi
call fcn.0043d47e
pop ecx
push dword [ebp - 0x10]
call fcn.0043c0d7
mov al, 1
pop ecx
pop edi
pop esi
leave
ret 4