Function at 0x410fb0
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 0x410fe5
mov dword [ebp - 0x50], 1
jmp 0x410fec
mov dword [ebp - 0x50], 0
mov cl, byte [ebp - 0x50]
mov byte [ebp - 0x31], cl
movzx edx, byte [ebp - 0x31]
test edx, edx
je 0x411042
mov dword [ebp - 0x64], 0xffffffff
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x64]
je 0x411011
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x58], ecx
jmp 0x411034
mov dword [ebp - 0x68], 0xffffffff
cmp dword [ebp - 0x68], 0
jne 0x411027
mov dword [ebp - 0x54], 1
jmp 0x41102e
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 0x41124c
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 0x411089
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 0x411089
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 0x41124c
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x4c], 0
jne 0x4110a1
mov dword [ebp - 0x70], 0xffffffff
mov eax, dword [ebp - 0x70]
jmp 0x41124c
mov ecx, dword [ebp - 0x2c]
call fcn.00410930
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
jne 0x411116
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 0x4110e7
mov dword [ebp - 0x5c], 1
jmp 0x4110ee
mov dword [ebp - 0x5c], 0
movzx ecx, byte [ebp - 0x5c]
test ecx, ecx
je 0x4110fe
mov edx, dword [ebp + 8]
mov dword [ebp - 0x40], edx
jmp 0x41110e
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x40], 0xffffffff
mov eax, dword [ebp - 0x40]
jmp 0x41124c
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 0x411174
cmp dword [ebp - 0x44], 1
je 0x411174
cmp dword [ebp - 0x44], 3
je 0x4111db
jmp 0x41123c
mov edx, dword [ebp - 0x7c]
lea eax, [ebp - 0x28]
sub edx, eax
mov dword [ebp - 0x48], edx
je 0x4111af
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 0x4111af
mov dword [ebp - 0x80], 0xffffffff
mov eax, dword [ebp - 0x80]
jmp 0x41124c
mov edx, dword [ebp - 0x2c]
mov byte [edx + 0x3d], 1
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x84], eax
je 0x4111c9
mov eax, dword [ebp + 8]
jmp 0x41124c
mov dword [ebp - 0x88], 0xffffffff
mov eax, dword [ebp - 0x88]
jmp 0x41124c
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 0x411210
mov dword [ebp - 0x60], 1
jmp 0x411217
mov dword [ebp - 0x60], 0
movzx eax, byte [ebp - 0x60]
test eax, eax
je 0x411227
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x4c], ecx
jmp 0x411237
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x4c], 0xffffffff
mov eax, dword [ebp - 0x4c]
jmp 0x41124c
mov dword [ebp - 0x90], 0xffffffff
mov eax, dword [ebp - 0x90]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422e9a
mov esp, ebp
pop ebp
ret 4