Function at 0x402ea0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, eax
call fcn.00402d80
xor esi, esi
mov dword [ebp - 4], eax
cmp eax, esi
jbe 0x40301e
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 0xc]
push 1
push 0x10
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.004027a0
lea ecx, [ebp - 0x10]
push ecx
mov ebx, eax
mov eax, dword [ebp + 0xc]
push 1
push 0x18
call fcn.004027a0
lea edx, [ebp - 0xc]
push edx
mov dword [ebp - 0x20], eax
push 1
push 0x10
mov eax, edi
call fcn.004027a0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 8]
push eax
push 1
push 0x18
mov eax, edi
call fcn.004027a0
add esp, 0x30
mov dword [ebp - 0x18], eax
cmp ebx, esi
je 0x402f25
push ebx
call fcn.00413e5b
add esp, 4
mov eax, dword [ebp - 0x20]
cmp eax, esi
je 0x402f35
push eax
call fcn.00413e5b
add esp, 4
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x402f45
push eax
call fcn.00413e5b
add esp, 4
mov eax, dword [ebp - 0x18]
cmp eax, esi
je 0x402f55
push eax
call fcn.00413e5b
add esp, 4
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00402950
add esp, 4
test eax, eax
je 0x402f75
mov esi, dword [eax]
inc esi
shl esi, 6
add esi, dword [eax + 4]
mov ebx, eax
call fcn.004028a0
push edi
xor ebx, ebx
call fcn.00402950
add esp, 4
test eax, eax
je 0x402f9a
mov ecx, dword [eax]
inc ecx
shl ecx, 6
add ecx, dword [eax + 4]
mov ebx, eax
mov dword [ebp - 0x20], ecx
call fcn.004028a0
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebp + 0xc]
sub esi, ebx
sub esi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
sub esi, dword [ebp - 0xc]
push 0x425550
add esi, dword [ebp - 0x10]
push edx
add esi, dword [ebp - 0x14]
add ebx, esi
mov dword [ebp - 4], ebx
call fcn.00412efb
mov esi, eax
add esp, 8
test esi, esi
je 0x402fee
push 2
push 0
push esi
call fcn.004135cd
push esi
call fcn.004134de
push esi
mov ebx, eax
call fcn.004136b6
add esp, 0x14
mov eax, ebx
cmp ebx, dword [ebp - 4]
jbe 0x402ff2
sub ebx, dword [ebp - 4]
jmp 0x402ff7
xor eax, eax
jmp 0x402ff5
mov ebx, dword [ebp - 4]
sub ebx, eax
cmp ebx, 0x80
jbe 0x4031ad
mov eax, dword [ebp + 8]
push 0
push edi
push eax
mov eax, edi
call fcn.004031c0
add esp, 0xc
test al, al
je 0x4031ad
xor esi, esi
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], esi
call section..text
mov dword [ebp - 4], eax
cmp eax, esi
je 0x4031ad
lea ecx, [ebp - 8]
mov eax, edi
call section..text
mov dword [ebp - 0x18], eax
cmp eax, esi
je 0x4031ad
lea ecx, [ebp - 0x10]
push ecx
push 1
push 0x10
mov eax, edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call fcn.004027a0
lea edx, [ebp - 0xc]
push edx
mov esi, eax
push 1
push 0x18
mov eax, edi
call fcn.004027a0
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402950
push 0x425558
push edi
mov dword [ebp - 0x20], eax
call fcn.00412efb
mov ebx, eax
add esp, 0x24
test ebx, ebx
je 0x40316b
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
push ebx
push eax
push 1
push ecx
call fcn.004132d0
mov edx, dword [ebp - 4]
push edx
call fcn.00413e5b
push ebx
call fcn.004136b6
add esp, 0x18
test esi, esi
je 0x4030d8
mov eax, dword [ebp - 0x10]
push eax
push esi
push 1
push 0x10
mov eax, edi
call fcn.00402850
push esi
call fcn.00413e5b
add esp, 0x14
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x4030f8
mov ecx, dword [ebp - 0xc]
push ecx
push esi
push 1
push 0x18
mov eax, edi
call fcn.00402850
push esi
call fcn.00413e5b
add esp, 0x14
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40310f
push edi
mov eax, ebx
call fcn.00402ad0
add esp, 4
call fcn.004028a0
push 0x425674
push edi
call fcn.00412efb
mov esi, eax
add esp, 8
test esi, esi
je 0x403162
mov edx, dword [ebp + 8]
mov eax, edx
lea edi, [eax + 1]
jmp 0x403130
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403130
push esi
sub eax, edi
push eax
push 1
push edx
call fcn.004132d0
mov edx, dword [ebp - 8]
mov edi, dword [ebp - 0x18]
push esi
push edx
push 1
push edi
call fcn.004132d0
push edi
call fcn.00413e5b
push esi
call fcn.004136b6
add esp, 0x28
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
call fcn.00413e5b
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00413e5b
add esp, 8
test esi, esi
je 0x40318d
push esi
call fcn.00413e5b
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40319d
push eax
call fcn.00413e5b
add esp, 4
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4031ad
push eax
call fcn.00413e5b
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret