Function at 0x407a70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413578
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x41a034]
xor eax, ebp
mov dword [ebp - 0x20], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x64], ecx
call fcn.00410470
mov word [ebp - 0x42], ax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x42]
push ecx
call fcn.004101f0
add esp, 8
movzx edx, al
test edx, edx
je 0x407acf
lea eax, [ebp + 8]
push eax
call fcn.00410430
add esp, 4
jmp 0x407d86
mov ecx, dword [ebp - 0x64]
call dword [sym.imp.MSVCP100.dll_protected:_wchar_t____thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::pptr_void_const]
test eax, eax
je 0x407b1a
mov ecx, dword [ebp - 0x64]
call dword [sym.imp.MSVCP100.dll_protected:_wchar_t____thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::pptr_void_const]
mov esi, eax
mov ecx, dword [ebp - 0x64]
call dword [sym.imp.MSVCP100.dll_protected:_wchar_t____thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::epptr_void_const]
cmp esi, eax
jae 0x407b1a
lea ecx, [ebp + 8]
push ecx
call fcn.00410420
add esp, 4
mov si, ax
mov ecx, dword [ebp - 0x64]
call dword [sym.imp.MSVCP100.dll_protected:_wchar_t____thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::_Pninc_void_]
mov word [eax], si
mov ax, word [ebp + 8]
jmp 0x407d86
mov edx, dword [ebp - 0x64]
cmp dword [edx + 0x54], 0
jne 0x407b2d
call fcn.00410470
jmp 0x407d86
mov ecx, dword [ebp - 0x64]
call fcn.0040a120
mov eax, dword [ebp - 0x64]
cmp dword [eax + 0x44], 0
jne 0x407b85
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + 0x54]
push edx
lea eax, [ebp + 8]
push eax
call fcn.00410420
add esp, 4
movzx ecx, ax
push ecx
call fcn.00403060
add esp, 8
movzx edx, al
test edx, edx
je 0x407b6e
mov ax, word [ebp + 8]
mov word [ebp - 0x66], ax
jmp 0x407b77
call fcn.00410470
mov word [ebp - 0x66], ax
mov ax, word [ebp - 0x66]
jmp 0x407d86
mov dword [ebp - 0x10], 8
lea ecx, [ebp + 8]
push ecx
call fcn.00410420
add esp, 4
mov word [ebp - 0x18], ax
push 0
push 8
lea ecx, [ebp - 0x3c]
call fcn.004103a0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00409330
mov ecx, eax
call fcn.004091b0
mov esi, eax
lea ecx, [ebp - 0x3c]
call fcn.00411040
add esi, eax
push esi
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00409330
mov ecx, eax
call fcn.004091b0
push eax
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x16]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x64]
add edx, 0x4c
push edx
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 0x44]
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_wchar_t__char__int_::out_int___wchar_t_const___wchar_t_const___wchar_t_const____char___char___char___const]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
jl 0x407d54
cmp dword [ebp - 0x6c], 1
jle 0x407c28
cmp dword [ebp - 0x6c], 3
je 0x407d09
jmp 0x407d54
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00409330
mov ecx, eax
call fcn.004091b0
mov edx, dword [ebp - 0x1c]
sub edx, eax
mov dword [ebp - 0x40], edx
je 0x407c95
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 0x40]
push edx
push 1
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00409330
mov ecx, eax
call fcn.004091b0
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x40], eax
je 0x407c95
call fcn.00410470
mov word [ebp - 0x56], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00410870
mov ax, word [ebp - 0x56]
jmp 0x407d86
mov ecx, dword [ebp - 0x64]
mov byte [ecx + 0x4a], 1
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
cmp edx, eax
je 0x407cc6
mov cx, word [ebp + 8]
mov word [ebp - 0x58], cx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00410870
mov ax, word [ebp - 0x58]
jmp 0x407d86
cmp dword [ebp - 0x40], 0
jbe 0x407cce
jmp 0x407d07
lea ecx, [ebp - 0x3c]
call fcn.00411040
cmp eax, 0x20
jae 0x407ce9
push 0
push 8
lea ecx, [ebp - 0x3c]
call fcn.00410250
jmp 0x407d07
call fcn.00410470
mov word [ebp - 0x5a], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00410870
mov ax, word [ebp - 0x5a]
jmp 0x407d86
jmp 0x407d72
mov edx, dword [ebp - 0x64]
mov eax, dword [edx + 0x54]
push eax
movzx ecx, word [ebp - 0x18]
push ecx
call fcn.00403060
add esp, 8
movzx edx, al
test edx, edx
je 0x407d2e
mov ax, word [ebp + 8]
mov word [ebp - 0x6e], ax
jmp 0x407d37
call fcn.00410470
mov word [ebp - 0x6e], ax
mov cx, word [ebp - 0x6e]
mov word [ebp - 0x5c], cx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00410870
mov ax, word [ebp - 0x5c]
jmp 0x407d86
call fcn.00410470
mov word [ebp - 0x5e], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00410870
mov ax, word [ebp - 0x5e]
jmp 0x407d86
jmp 0x407baf
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.004122f0
mov esp, ebp
pop ebp
ret 4