Function at 0x403bf2
Capabilities:
Write file on windows

Disassembly:
push ebp
sub esp, 0x210
lea ebp, [esp - 4]
mov eax, dword [0x40e170]
xor eax, ebp
mov dword [ebp + 0x210], eax
push 0x248
mov eax, 0x40b65e
call fcn.0040aeb2
mov esi, dword [ebp + 0x21c]
push 0x200
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp]
call fcn.00403b73
xor ebx, ebx
mov dword [ebp - 4], ebx
push esi
lea ecx, [ebp]
call fcn.00405a4b
xor esi, esi
inc esi
mov dword [ebp - 4], esi
lea ecx, [ebp]
call fcn.0040379f
mov eax, dword [ebp + 8]
test al, 0x10
je 0x403c62
push esi
push dword [ebp + 4]
lea ecx, [ebp]
call fcn.004086e6
mov eax, dword [ebp + 8]
not eax
mov ecx, eax
and ecx, esi
xor eax, eax
shl eax, cl
mov edx, dword [ebp + 0xc]
add edx, eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
jmp 0x403d10
call fcn.0040379f
mov eax, dword [ebp + 8]
test al, 0x10
je 0x403c97
push esi
push dword [ebp + 4]
lea ecx, [ebp]
call fcn.004086e6
mov eax, dword [ebp + 8]
not eax
mov ecx, eax
and ecx, esi
xor eax, eax
shl eax, cl
mov edx, dword [ebp + 0xc]
add eax, edx
sub eax, dword [ebp - 0x18]
sar eax, cl
test eax, eax
je 0x403cd6
lea esi, [ebp - 0x18]
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x14]
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [ebp - 0x18]
sub ecx, eax
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x30]
call fcn.004037c0
cmp ax, 0xd
je 0x403d03
push 0x4012c0
push ebx
lea ecx, [ebp - 0x44]
call fcn.004039a1
mov byte [ebp - 4], 2
push eax
push 1
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp]
call fcn.00406010
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.00403a0f
mov ecx, dword [ebp - 0x14]
xor esi, esi
inc esi
mov eax, esi
shl eax, cl
add dword [ebp - 0x18], eax
push 0xa
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp]
call fcn.004060d4
test eax, eax
lea ecx, [ebp]
jne 0x403c7c
call fcn.00405e02
mov edi, dword [ebp + 0xc]
lea ecx, [ebp]
call fcn.00403a37
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x24c], 0x200
mov byte [ebp - 4], 3
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x1c]
push edi
push ebx
push eax
call fcn.00408977
mov esi, eax
cmp esi, 0x1fffff00
jle 0x403d87
push ebx
push ebx
push 1
push 0xc0000095
call dword [sym.imp.KERNEL32.dll_RaiseException]
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x254]
call fcn.0040391b
push ebx
push ebx
push esi
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
push edi
push ebx
push dword [ebp - 0x20]
call fcn.00408977
cmp eax, ebx
mov dword [ebp - 0x20], eax
jne 0x403dc5
cmp dword [ebp - 0x1c], ebx
jle 0x403dc5
push ebx
push ebx
push 1
push 0x459
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov edi, dword [ebp - 0x24]
push 0xfffffffffffffff5
mov byte [edi + esi], bl
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp eax, ebx
je 0x403de7
push ebx
lea ecx, [ebp - 0x34]
push ecx
push dword [ebp - 0x20]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x254], ebx
je 0x403e05
push dword [ebp - 0x254]
call fcn.00405453
pop ecx
mov dword [ebp - 0x254], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.00403a87
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x210]
xor ecx, ebp
call fcn.0040ae65
add ebp, 0x214
leave
ret 4