Function at 0x402350
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x4234d0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
mov dword [ebp - 0x70], ecx
call fcn.00401cc0
mov dword [ebp - 0x38], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x38]
push ecx
call fcn.00401ca0
add esp, 8
movzx edx, al
test edx, edx
je 0x40239a
lea eax, [ebp + 8]
push eax
call fcn.00402620
add esp, 4
jmp 0x402603
mov ecx, dword [ebp - 0x70]
call fcn.00403900
test eax, eax
je 0x4023e1
mov ecx, dword [ebp - 0x70]
call fcn.00403900
mov esi, eax
mov ecx, dword [ebp - 0x70]
call fcn.004039c0
cmp esi, eax
jae 0x4023e1
lea ecx, [ebp + 8]
push ecx
call fcn.004021f0
add esp, 4
mov bl, al
mov ecx, dword [ebp - 0x70]
call fcn.00403ae0
mov byte [eax], bl
mov eax, dword [ebp + 8]
jmp 0x402603
mov edx, dword [ebp - 0x70]
cmp dword [edx + 0x4c], 0
jne 0x4023f9
call fcn.00401cc0
jmp 0x402603
mov eax, dword [ebp - 0x70]
cmp dword [eax + 0x3c], 0
jne 0x402445
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx + 0x4c]
push edx
lea eax, [ebp + 8]
push eax
call fcn.004021f0
add esp, 4
movzx ecx, al
push ecx
call fcn.00402650
add esp, 8
movzx edx, al
test edx, edx
je 0x402430
mov eax, dword [ebp + 8]
mov dword [ebp - 0x74], eax
jmp 0x402438
call fcn.00401cc0
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
jmp 0x402603
mov dword [ebp - 4], 8
lea ecx, [ebp + 8]
push ecx
call fcn.004021f0
add esp, 4
mov byte [ebp - 9], al
push 0
push 8
lea ecx, [ebp - 0x30]
call fcn.00403030
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x30]
call fcn.00403190
mov ecx, eax
call fcn.00404230
mov esi, eax
lea ecx, [ebp - 0x30]
call fcn.00402690
add esi, eax
push esi
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00403190
mov ecx, eax
call fcn.00404230
push eax
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 9]
push ecx
mov edx, dword [ebp - 0x70]
add edx, 0x44
push edx
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 0x3c]
call fcn.004041f0
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
jl 0x4025e1
cmp dword [ebp - 0x78], 1
jle 0x4024df
cmp dword [ebp - 0x78], 3
je 0x4025a3
jmp 0x4025e1
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00403190
mov ecx, eax
call fcn.00404230
mov edx, dword [ebp - 0x10]
sub edx, eax
mov dword [ebp - 0x34], edx
je 0x402542
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 1
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x30]
call fcn.00403190
mov ecx, eax
call fcn.00404230
push eax
call fcn.0040aa1e
add esp, 0x10
cmp dword [ebp - 0x34], eax
je 0x402542
call fcn.00401cc0
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x30]
call fcn.00402670
mov eax, dword [ebp - 0x5c]
jmp 0x402603
mov ecx, dword [ebp - 0x70]
mov byte [ecx + 0x41], 1
mov edx, dword [ebp - 8]
lea eax, [ebp - 9]
cmp edx, eax
je 0x402569
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x60], ecx
lea ecx, [ebp - 0x30]
call fcn.00402670
mov eax, dword [ebp - 0x60]
jmp 0x402603
cmp dword [ebp - 0x34], 0
jbe 0x402571
jmp 0x4025a1
lea ecx, [ebp - 0x30]
call fcn.00402690
cmp eax, 0x20
jae 0x40258c
push 0
push 8
lea ecx, [ebp - 0x30]
call fcn.00403070
jmp 0x4025a1
call fcn.00401cc0
mov dword [ebp - 0x64], eax
lea ecx, [ebp - 0x30]
call fcn.00402670
mov eax, dword [ebp - 0x64]
jmp 0x402603
jmp 0x4025f6
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 0x4c]
push eax
movzx ecx, byte [ebp - 9]
push ecx
call fcn.00402650
add esp, 8
movzx edx, al
test edx, edx
je 0x4025c6
mov eax, dword [ebp + 8]
mov dword [ebp - 0x7c], eax
jmp 0x4025ce
call fcn.00401cc0
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x68], ecx
lea ecx, [ebp - 0x30]
call fcn.00402670
mov eax, dword [ebp - 0x68]
jmp 0x402603
call fcn.00401cc0
mov dword [ebp - 0x6c], eax
lea ecx, [ebp - 0x30]
call fcn.00402670
mov eax, dword [ebp - 0x6c]
jmp 0x402603
jmp 0x402467
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00408d38
mov esp, ebp
pop ebp
ret 4