Function at 0x40b9bf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415671
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 0x40ba16
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax + 0x45]
test eax, eax
jne 0x40ba22
mov al, 1
jmp 0x40bc0a
mov dword [ebp - 0x24], 8
call fcn.0040d474
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.00413f7e
mov dword [ebp - 0x194], eax
call fcn.0040d474
mov dword [ebp - 0x188], eax
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x188]
push eax
call fcn.0040d49a
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x40ba77
xor al, al
jmp 0x40bc0a
push 0
push 8
lea ecx, [ebp - 0x50]
call fcn.00404f0a
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.0040d08f
mov ecx, eax
call fcn.00405c79
mov edi, eax
lea ecx, [ebp - 0x50]
call fcn.0040d955
add edi, eax
push edi
lea eax, [ebp - 0x170]
push eax
lea ecx, [ebp - 0x50]
call fcn.0040d08f
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.00413f7e
mov dword [ebp - 0x19c], eax
cmp dword [ebp - 0x19c], 0
je 0x40bb0b
cmp dword [ebp - 0x19c], 1
je 0x40bb12
cmp dword [ebp - 0x19c], 3
je 0x40bbc3
jmp 0x40bbde
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x45], 0
lea eax, [ebp - 0x164]
push eax
lea ecx, [ebp - 0x50]
call fcn.0040d08f
mov ecx, eax
call fcn.00405c79
mov ecx, dword [ebp - 0x30]
sub ecx, eax
mov dword [ebp - 0x5c], ecx
je 0x40bb89
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.0040d08f
mov ecx, eax
call fcn.00405c79
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x10
cmp esi, esp
call fcn.00413f7e
cmp dword [ebp - 0x5c], eax
je 0x40bb89
mov byte [ebp - 0x149], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.004057d1
mov al, byte [ebp - 0x149]
jmp 0x40bc0a
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax + 0x45]
test eax, eax
jne 0x40bbaf
mov byte [ebp - 0x13d], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.004057d1
mov al, byte [ebp - 0x13d]
jmp 0x40bc0a
cmp dword [ebp - 0x5c], 0
jne 0x40bbc1
push 0
push 8
lea ecx, [ebp - 0x50]
call fcn.0040c912
jmp 0x40bbf9
mov byte [ebp - 0x131], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.004057d1
mov al, byte [ebp - 0x131]
jmp 0x40bc0a
mov byte [ebp - 0x125], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.004057d1
mov al, byte [ebp - 0x125]
jmp 0x40bc0a
jmp 0x40ba87
push edx
mov ecx, ebp
push eax
lea edx, [0x40bc47]
call fcn.00413f26
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.00413fa1
add esp, 0x19c
cmp ebp, esp
call fcn.00413f7e
mov esp, ebp
pop ebp
ret