Function at 0x408fc0
Capabilities:
Write file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
mov eax, 0x8004c
call fcn.00409390
mov dword [ebp - 0x80058], ecx
call fcn.00401320
mov dword [0x413030], 0xffffffff
sub esp, 8
mov eax, dword [ebp - 0x80058]
push dword [eax + 4]
mov edx, dword [ebp - 0x80058]
push dword [edx]
call fcn.00408eee
add esp, 0x10
test eax, eax
jne 0x409027
mov eax, dword [0x40f034]
mov ecx, dword [ebp - 0x80058]
mov edx, dword [ecx]
mov ecx, edx
sub ecx, eax
mov eax, ecx
cmp eax, 1
je 0x409049
mov edx, dword [ebp - 0x80058]
mov eax, dword [edx + 4]
mov eax, dword [eax]
sub esp, 0xc
push eax
call fcn.00408df5
add esp, 0x10
mov dword [ebp - 0x80054], eax
jmp 0x409213
mov eax, dword [0x40f034]
shl eax, 2
mov ecx, dword [ebp - 0x80058]
add eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [0x413010], eax
mov eax, dword [0x413030]
test eax, eax
js 0x409074
mov eax, dword [0x413030]
cmp eax, 0x63
jle 0x40907e
mov dword [0x413030], 0x14
mov eax, dword [0x413024]
test eax, eax
je 0x40909b
call fcn.00402f7e
mov dword [ebp - 0x80054], 0
jmp 0x409213
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov eax, dword [0x41301c]
test eax, eax
je 0x4090cd
mov eax, dword [0x41301c]
sub esp, 0xc
push eax
call fcn.00407420
add esp, 0x10
mov dword [ebp - 0x20], eax
sub esp, 4
push 0x40010
push 0
lea eax, [ebp - 0x40038]
push eax
call sub.msvcrt.dll_memset
add esp, 0x10
mov edx, dword [0x413010]
push dword [ebp - 0x20]
lea eax, [ebp - 0x28]
push eax
push edx
lea eax, [ebp - 0x40038]
push eax
call fcn.00407655
add esp, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x409130
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push 0x13
push 1
push str.Cannot_read_trace._n
call sub.msvcrt.dll_fwrite
add esp, 0x10
sub esp, 0xc
push 1
call sub.msvcrt.dll_exit
mov eax, dword [0x413014]
test eax, eax
je 0x409193
mov edx, dword [0x413014]
push dword [ebp - 0x20]
lea eax, [ebp - 0x40040]
push eax
push edx
lea eax, [ebp - 0x80050]
push eax
call fcn.00407655
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x40040]
mov ebx, dword [ebp - 0x4003c]
sub esp, 8
push edx
push eax
push dword [ebp - 0x1c]
push ebx
push ecx
push dword [ebp - 0x18]
call fcn.00408406
add esp, 0x20
sub esp, 0xc
push dword [ebp - 0x18]
call fcn.00401e0a
add esp, 0x10
jmp 0x4091fb
sub esp, 0xc
push dword [ebp - 0x1c]
call fcn.00407f49
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 8]
mov eax, dword [ebp - 0x1c]
mov esi, dword [eax + 0xc]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x10]
push dword [ebp - 0x20]
push ebx
push esi
push ecx
push edx
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x40038]
push eax
call fcn.00407fab
add esp, 0x20
mov eax, dword [0x413018]
test eax, eax
je 0x4091ed
sub esp, 0xc
push dword [ebp - 0x1c]
call fcn.004041bf
add esp, 0x10
sub esp, 0xc
push dword [ebp - 0x14]
call sub.msvcrt.dll_free
add esp, 0x10
sub esp, 0xc
push dword [ebp - 0x1c]
call fcn.00401e0a
add esp, 0x10
mov dword [ebp - 0x80054], 0
mov eax, dword [ebp - 0x80054]
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret