Function at 0x410f80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x4320e8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x94], 0xffffffff
mov eax, dword [ebp - 0x94]
cmp eax, dword [ebp + 8]
jne 0x410fb5
mov dword [ebp - 0x50], 1
jmp 0x410fbc
mov dword [ebp - 0x50], 0
mov cl, byte [ebp - 0x50]
mov byte [ebp - 0x31], cl
movzx edx, byte [ebp - 0x31]
test edx, edx
je 0x411012
mov dword [ebp - 0x64], 0xffffffff
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x64]
je 0x410fe1
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x58], ecx
jmp 0x411004
mov dword [ebp - 0x68], 0xffffffff
cmp dword [ebp - 0x68], 0
jne 0x410ff7
mov dword [ebp - 0x54], 1
jmp 0x410ffe
mov dword [ebp - 0x54], 0
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
jmp 0x41121c
mov ecx, dword [ebp - 0x2c]
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
test eax, eax
je 0x411059
mov ecx, dword [ebp - 0x2c]
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
mov esi, eax
mov ecx, dword [ebp - 0x2c]
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const]
cmp esi, eax
jae 0x411059
mov cl, byte [ebp - 0x39]
mov byte [ebp - 0x2e], cl
mov dl, byte [ebp + 8]
mov byte [ebp - 0x2e], dl
mov ecx, dword [ebp - 0x2c]
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
mov cl, byte [ebp - 0x2e]
mov byte [eax], cl
mov eax, dword [ebp + 8]
jmp 0x41121c
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x4c], 0
jne 0x411071
mov dword [ebp - 0x70], 0xffffffff
mov eax, dword [ebp - 0x70]
jmp 0x41121c
mov ecx, dword [ebp - 0x2c]
call fcn.00410900
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
jne 0x4110e6
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x4c]
mov dword [ebp - 0x74], edx
mov al, byte [ebp - 0x3a]
mov byte [ebp - 0x2d], al
mov cl, byte [ebp + 8]
mov byte [ebp - 0x2d], cl
mov edx, dword [ebp - 0x74]
push edx
movsx eax, byte [ebp - 0x2d]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
cmp eax, 0xffffffff
je 0x4110b7
mov dword [ebp - 0x5c], 1
jmp 0x4110be
mov dword [ebp - 0x5c], 0
movzx ecx, byte [ebp - 0x5c]
test ecx, ecx
je 0x4110ce
mov edx, dword [ebp + 8]
mov dword [ebp - 0x40], edx
jmp 0x4110de
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x40], 0xffffffff
mov eax, dword [ebp - 0x40]
jmp 0x41121c
mov dword [ebp - 0x9c], 0x20
mov cl, byte [ebp + 8]
mov byte [ebp - 0x30], cl
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x38]
mov dword [ebp - 0x78], eax
lea ecx, [ebp - 0x7c]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x84]
push ecx
lea edx, [ebp - 0x2f]
push edx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x40
push ecx
mov ecx, dword [ebp - 0x78]
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x411144
cmp dword [ebp - 0x44], 1
je 0x411144
cmp dword [ebp - 0x44], 3
je 0x4111ab
jmp 0x41120c
mov edx, dword [ebp - 0x7c]
lea eax, [ebp - 0x28]
sub edx, eax
mov dword [ebp - 0x48], edx
je 0x41117f
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x4c]
push edx
mov eax, dword [ebp - 0x48]
push eax
push 1
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x48], eax
je 0x41117f
mov dword [ebp - 0x80], 0xffffffff
mov eax, dword [ebp - 0x80]
jmp 0x41121c
mov edx, dword [ebp - 0x2c]
mov byte [edx + 0x3d], 1
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x84], eax
je 0x411199
mov eax, dword [ebp + 8]
jmp 0x41121c
mov dword [ebp - 0x88], 0xffffffff
mov eax, dword [ebp - 0x88]
jmp 0x41121c
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x4c]
mov dword [ebp - 0x8c], edx
mov al, byte [ebp - 0x30]
mov byte [ebp - 0x38], al
mov ecx, dword [ebp - 0x8c]
push ecx
movsx edx, byte [ebp - 0x38]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
cmp eax, 0xffffffff
je 0x4111e0
mov dword [ebp - 0x60], 1
jmp 0x4111e7
mov dword [ebp - 0x60], 0
movzx eax, byte [ebp - 0x60]
test eax, eax
je 0x4111f7
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x4c], ecx
jmp 0x411207
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x4c], 0xffffffff
mov eax, dword [ebp - 0x4c]
jmp 0x41121c
mov dword [ebp - 0x90], 0xffffffff
mov eax, dword [ebp - 0x90]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422e4c
mov esp, ebp
pop ebp
ret 4