Function at 0x410710
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x430100]
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 0x410745
mov dword [ebp - 0x50], 1
jmp 0x41074c
mov dword [ebp - 0x50], 0
mov cl, byte [ebp - 0x50]
mov byte [ebp - 0x31], cl
movzx edx, byte [ebp - 0x31]
test edx, edx
je 0x4107a2
mov dword [ebp - 0x64], 0xffffffff
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x64]
je 0x410771
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x58], ecx
jmp 0x410794
mov dword [ebp - 0x68], 0xffffffff
cmp dword [ebp - 0x68], 0
jne 0x410787
mov dword [ebp - 0x54], 1
jmp 0x41078e
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 0x4109ac
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 0x4107e9
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 0x4107e9
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 0x4109ac
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x4c], 0
jne 0x410801
mov dword [ebp - 0x70], 0xffffffff
mov eax, dword [ebp - 0x70]
jmp 0x4109ac
mov ecx, dword [ebp - 0x2c]
call fcn.00410090
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
jne 0x410876
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 0x410847
mov dword [ebp - 0x5c], 1
jmp 0x41084e
mov dword [ebp - 0x5c], 0
movzx ecx, byte [ebp - 0x5c]
test ecx, ecx
je 0x41085e
mov edx, dword [ebp + 8]
mov dword [ebp - 0x40], edx
jmp 0x41086e
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x40], 0xffffffff
mov eax, dword [ebp - 0x40]
jmp 0x4109ac
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 0x4108d4
cmp dword [ebp - 0x44], 1
je 0x4108d4
cmp dword [ebp - 0x44], 3
je 0x41093b
jmp 0x41099c
mov edx, dword [ebp - 0x7c]
lea eax, [ebp - 0x28]
sub edx, eax
mov dword [ebp - 0x48], edx
je 0x41090f
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 0x41090f
mov dword [ebp - 0x80], 0xffffffff
mov eax, dword [ebp - 0x80]
jmp 0x4109ac
mov edx, dword [ebp - 0x2c]
mov byte [edx + 0x3d], 1
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x84], eax
je 0x410929
mov eax, dword [ebp + 8]
jmp 0x4109ac
mov dword [ebp - 0x88], 0xffffffff
mov eax, dword [ebp - 0x88]
jmp 0x4109ac
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 0x410970
mov dword [ebp - 0x60], 1
jmp 0x410977
mov dword [ebp - 0x60], 0
movzx eax, byte [ebp - 0x60]
test eax, eax
je 0x410987
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x4c], ecx
jmp 0x410997
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x4c], 0xffffffff
mov eax, dword [ebp - 0x4c]
jmp 0x4109ac
mov dword [ebp - 0x90], 0xffffffff
mov eax, dword [ebp - 0x90]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422610
mov esp, ebp
pop ebp
ret 4