Function at 0x40e150
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4156ca
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x1b4]
push 0x6a
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
call fcn.0040d474
mov dword [ebp - 0x1ac], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1ac]
push eax
call fcn.0040d49a
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x40e1c8
lea eax, [ebp + 8]
push eax
call fcn.0040df53
pop ecx
jmp 0x40e4c1
mov esi, esp
mov ecx, dword [ebp - 0x18]
call dword [sym.imp.MSVCP120.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
cmp esi, esp
call fcn.00413f7e
test eax, eax
je 0x40e232
mov esi, esp
mov ecx, dword [ebp - 0x18]
call dword [sym.imp.MSVCP120.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
cmp esi, esp
call fcn.00413f7e
mov esi, eax
mov edi, esp
mov ecx, dword [ebp - 0x18]
call dword [sym.imp.MSVCP120.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const]
cmp edi, esp
call fcn.00413f7e
cmp esi, eax
jae 0x40e232
lea eax, [ebp + 8]
push eax
call fcn.0040eb52
pop ecx
mov bl, al
mov esi, esp
mov ecx, dword [ebp - 0x18]
call dword [sym.imp.MSVCP120.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
cmp esi, esp
call fcn.00413f7e
mov byte [eax], bl
mov eax, dword [ebp + 8]
jmp 0x40e4c1
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x50], 0
jne 0x40e245
call fcn.0040d474
jmp 0x40e4c1
mov ecx, dword [ebp - 0x18]
call fcn.0040c487
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x40], 0
jne 0x40e29e
mov eax, dword [ebp - 0x18]
push dword [eax + 0x50]
lea eax, [ebp + 8]
push eax
call fcn.0040eb52
pop ecx
movzx eax, al
push eax
call fcn.00403eb8
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x40e283
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1b4], eax
jmp 0x40e28e
call fcn.0040d474
mov dword [ebp - 0x1b4], eax
mov eax, dword [ebp - 0x1b4]
jmp 0x40e4c1
mov dword [ebp - 0x24], 8
lea eax, [ebp + 8]
push eax
call fcn.0040eb52
pop ecx
mov byte [ebp - 0x2d], al
push 0
push 8
lea ecx, [ebp - 0x68]
call fcn.00404f0a
and dword [ebp - 4], 0
mov esi, esp
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x68]
call fcn.0040d08f
mov ecx, eax
call fcn.00405c79
mov edi, eax
lea ecx, [ebp - 0x68]
call fcn.0040d955
add edi, eax
push edi
lea eax, [ebp - 0x194]
push eax
lea ecx, [ebp - 0x68]
call fcn.0040d08f
mov ecx, eax
call fcn.00405c79
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x2d]
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_::out_int___char_const___char_const___char_const____char___char___char___const]
cmp esi, esp
call fcn.00413f7e
mov dword [ebp - 0x1b4], eax
cmp dword [ebp - 0x1b4], 0
jl 0x40e491
cmp dword [ebp - 0x1b4], 1
jle 0x40e356
cmp dword [ebp - 0x1b4], 3
je 0x40e444
jmp 0x40e491
lea eax, [ebp - 0x188]
push eax
lea ecx, [ebp - 0x68]
call fcn.0040d08f
mov ecx, eax
call fcn.00405c79
mov ecx, dword [ebp - 0x48]
sub ecx, eax
mov dword [ebp - 0x74], ecx
je 0x40e3d1
mov esi, esp
mov eax, dword [ebp - 0x18]
push dword [eax + 0x50]
push dword [ebp - 0x74]
push 1
lea eax, [ebp - 0x17c]
push eax
lea ecx, [ebp - 0x68]
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 - 0x74], eax
je 0x40e3d1
call fcn.0040d474
mov dword [ebp - 0x170], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.004057d1
mov eax, dword [ebp - 0x170]
jmp 0x40e4c1
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x45], 1
lea eax, [ebp - 0x2d]
cmp dword [ebp - 0x3c], eax
je 0x40e400
mov eax, dword [ebp + 8]
mov dword [ebp - 0x164], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.004057d1
mov eax, dword [ebp - 0x164]
jmp 0x40e4c1
cmp dword [ebp - 0x74], 0
jbe 0x40e408
jmp 0x40e442
lea ecx, [ebp - 0x68]
call fcn.0040d955
cmp eax, 0x20
jae 0x40e423
push 0
push 8
lea ecx, [ebp - 0x68]
call fcn.0040c912
jmp 0x40e442
call fcn.0040d474
mov dword [ebp - 0x158], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.004057d1
mov eax, dword [ebp - 0x158]
jmp 0x40e4c1
jmp 0x40e4b0
mov eax, dword [ebp - 0x18]
push dword [eax + 0x50]
push dword [ebp - 0x2d]
call fcn.00403eb8
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x40e466
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1b4], eax
jmp 0x40e471
call fcn.0040d474
mov dword [ebp - 0x1b4], eax
mov eax, dword [ebp - 0x1b4]
mov dword [ebp - 0x14c], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.004057d1
mov eax, dword [ebp - 0x14c]
jmp 0x40e4c1
call fcn.0040d474
mov dword [ebp - 0x140], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.004057d1
mov eax, dword [ebp - 0x140]
jmp 0x40e4c1
jmp 0x40e2c2
push edx
mov ecx, ebp
push eax
lea edx, [0x40e500]
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, 0x1b4
cmp ebp, esp
call fcn.00413f7e
mov esp, ebp
pop ebp
ret 4