Function at 0x40e160
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4157ba
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.0040d484
mov dword [ebp - 0x1ac], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1ac]
push eax
call fcn.0040d4aa
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x40e1d8
lea eax, [ebp + 8]
push eax
call fcn.0040df63
pop ecx
jmp 0x40e4d1
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.00414070
test eax, eax
je 0x40e242
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.00414070
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.00414070
cmp esi, eax
jae 0x40e242
lea eax, [ebp + 8]
push eax
call fcn.0040eb62
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.00414070
mov byte [eax], bl
mov eax, dword [ebp + 8]
jmp 0x40e4d1
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x50], 0
jne 0x40e255
call fcn.0040d484
jmp 0x40e4d1
mov ecx, dword [ebp - 0x18]
call fcn.0040c497
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x40], 0
jne 0x40e2ae
mov eax, dword [ebp - 0x18]
push dword [eax + 0x50]
lea eax, [ebp + 8]
push eax
call fcn.0040eb62
pop ecx
movzx eax, al
push eax
call fcn.00403eed
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x40e293
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1b4], eax
jmp 0x40e29e
call fcn.0040d484
mov dword [ebp - 0x1b4], eax
mov eax, dword [ebp - 0x1b4]
jmp 0x40e4d1
mov dword [ebp - 0x24], 8
lea eax, [ebp + 8]
push eax
call fcn.0040eb62
pop ecx
mov byte [ebp - 0x2d], al
push 0
push 8
lea ecx, [ebp - 0x68]
call fcn.00404f3f
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.0040d09f
mov ecx, eax
call fcn.00405c79
mov edi, eax
lea ecx, [ebp - 0x68]
call fcn.0040d965
add edi, eax
push edi
lea eax, [ebp - 0x194]
push eax
lea ecx, [ebp - 0x68]
call fcn.0040d09f
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.00414070
mov dword [ebp - 0x1b4], eax
cmp dword [ebp - 0x1b4], 0
jl 0x40e4a1
cmp dword [ebp - 0x1b4], 1
jle 0x40e366
cmp dword [ebp - 0x1b4], 3
je 0x40e454
jmp 0x40e4a1
lea eax, [ebp - 0x188]
push eax
lea ecx, [ebp - 0x68]
call fcn.0040d09f
mov ecx, eax
call fcn.00405c79
mov ecx, dword [ebp - 0x48]
sub ecx, eax
mov dword [ebp - 0x74], ecx
je 0x40e3e1
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.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 - 0x74], eax
je 0x40e3e1
call fcn.0040d484
mov dword [ebp - 0x170], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.004057d1
mov eax, dword [ebp - 0x170]
jmp 0x40e4d1
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x45], 1
lea eax, [ebp - 0x2d]
cmp dword [ebp - 0x3c], eax
je 0x40e410
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 0x40e4d1
cmp dword [ebp - 0x74], 0
jbe 0x40e418
jmp 0x40e452
lea ecx, [ebp - 0x68]
call fcn.0040d965
cmp eax, 0x20
jae 0x40e433
push 0
push 8
lea ecx, [ebp - 0x68]
call fcn.0040c922
jmp 0x40e452
call fcn.0040d484
mov dword [ebp - 0x158], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.004057d1
mov eax, dword [ebp - 0x158]
jmp 0x40e4d1
jmp 0x40e4c0
mov eax, dword [ebp - 0x18]
push dword [eax + 0x50]
push dword [ebp - 0x2d]
call fcn.00403eed
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x40e476
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1b4], eax
jmp 0x40e481
call fcn.0040d484
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 0x40e4d1
call fcn.0040d484
mov dword [ebp - 0x140], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.004057d1
mov eax, dword [ebp - 0x140]
jmp 0x40e4d1
jmp 0x40e2d2
push edx
mov ecx, ebp
push eax
lea edx, [0x40e510]
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, 0x1b4
cmp ebp, esp
call fcn.00414070
mov esp, ebp
pop ebp
ret 4