Function at 0x40b9cf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415761
mov eax, dword fs:[0]
push eax
sub esp, 0x190
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x19c]
push 0x64
pop ecx
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x41f01c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x40], 0
je 0x40ba26
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax + 0x45]
test eax, eax
jne 0x40ba32
mov al, 1
jmp 0x40bc1a
mov dword [ebp - 0x24], 8
call fcn.0040d484
mov esi, esp
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x18]
call dword [eax + 0xc]
cmp esi, esp
call fcn.00414070
mov dword [ebp - 0x194], eax
call fcn.0040d484
mov dword [ebp - 0x188], eax
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x188]
push eax
call fcn.0040d4aa
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x40ba87
xor al, al
jmp 0x40bc1a
push 0
push 8
lea ecx, [ebp - 0x50]
call fcn.00404f3f
and dword [ebp - 4], 0
mov esi, esp
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x17c]
push eax
lea ecx, [ebp - 0x50]
call fcn.0040d09f
mov ecx, eax
call fcn.00405c79
mov edi, eax
lea ecx, [ebp - 0x50]
call fcn.0040d965
add edi, eax
push edi
lea eax, [ebp - 0x170]
push eax
lea ecx, [ebp - 0x50]
call fcn.0040d09f
mov ecx, eax
call fcn.00405c79
push eax
mov eax, dword [ebp - 0x18]
add eax, 0x48
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x40]
call dword [sym.imp.MSVCP120.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
cmp esi, esp
call fcn.00414070
mov dword [ebp - 0x19c], eax
cmp dword [ebp - 0x19c], 0
je 0x40bb1b
cmp dword [ebp - 0x19c], 1
je 0x40bb22
cmp dword [ebp - 0x19c], 3
je 0x40bbd3
jmp 0x40bbee
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x45], 0
lea eax, [ebp - 0x164]
push eax
lea ecx, [ebp - 0x50]
call fcn.0040d09f
mov ecx, eax
call fcn.00405c79
mov ecx, dword [ebp - 0x30]
sub ecx, eax
mov dword [ebp - 0x5c], ecx
je 0x40bb99
mov esi, esp
mov eax, dword [ebp - 0x18]
push dword [eax + 0x50]
push dword [ebp - 0x5c]
push 1
lea eax, [ebp - 0x158]
push eax
lea ecx, [ebp - 0x50]
call fcn.0040d09f
mov ecx, eax
call fcn.00405c79
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x10
cmp esi, esp
call fcn.00414070
cmp dword [ebp - 0x5c], eax
je 0x40bb99
mov byte [ebp - 0x149], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.004057d1
mov al, byte [ebp - 0x149]
jmp 0x40bc1a
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax + 0x45]
test eax, eax
jne 0x40bbbf
mov byte [ebp - 0x13d], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.004057d1
mov al, byte [ebp - 0x13d]
jmp 0x40bc1a
cmp dword [ebp - 0x5c], 0
jne 0x40bbd1
push 0
push 8
lea ecx, [ebp - 0x50]
call fcn.0040c922
jmp 0x40bc09
mov byte [ebp - 0x131], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.004057d1
mov al, byte [ebp - 0x131]
jmp 0x40bc1a
mov byte [ebp - 0x125], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.004057d1
mov al, byte [ebp - 0x125]
jmp 0x40bc1a
jmp 0x40ba97
push edx
mov ecx, ebp
push eax
lea edx, [0x40bc57]
call fcn.00414018
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414093
add esp, 0x19c
cmp ebp, esp
call fcn.00414070
mov esp, ebp
pop ebp
ret