Function at 0x100076c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push esi
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.10007440
push eax
call fcn.10007450
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x100076f4
mov edx, dword [ebp + 8]
push edx
call fcn.100075d0
add esp, 4
jmp 0x1000788c
mov ecx, dword [ebp - 8]
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 0x1000773e
mov ecx, dword [ebp - 8]
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 - 8]
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 0x1000773e
mov eax, dword [ebp + 8]
push eax
call fcn.10007d70
add esp, 4
mov byte [ebp - 1], al
mov ecx, dword [ebp - 8]
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
mov cl, byte [ebp - 1]
mov byte [eax], cl
mov eax, dword [ebp + 8]
jmp 0x1000788c
mov edx, dword [ebp - 8]
cmp dword [edx + 0x4c], 0
jne 0x10007751
call fcn.10007440
jmp 0x1000788c
mov ecx, dword [ebp - 8]
call fcn.10007130
nop
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
jne 0x100077ab
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp + 8]
push eax
call fcn.10007d70
add esp, 4
mov byte [ebp - 2], al
mov ecx, dword [ebp - 0x1c]
push ecx
movzx edx, byte [ebp - 2]
push edx
call fcn.10006140
add esp, 8
movzx eax, al
test eax, eax
je 0x1000779b
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
jmp 0x100077a3
call fcn.10007440
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
jmp 0x1000788c
mov dword [ebp - 0x2c], 0x20
mov edx, dword [ebp + 8]
push edx
call fcn.10007d70
add esp, 4
mov byte [ebp - 4], al
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x20], ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 3]
push eax
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
add edx, 0x40
push edx
mov ecx, dword [ebp - 0x20]
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 - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10007809
cmp dword [ebp - 0xc], 1
je 0x10007809
cmp dword [ebp - 0xc], 3
je 0x10007857
jmp 0x10007887
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x50]
sub eax, ecx
mov dword [ebp - 0x10], eax
je 0x1000783c
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 1
lea edx, [ebp - 0x50]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x10], eax
je 0x1000783c
call fcn.10007440
jmp 0x1000788c
mov eax, dword [ebp - 8]
mov byte [eax + 0x3d], 1
lea ecx, [ebp - 4]
cmp dword [ebp - 0x28], ecx
je 0x10007850
mov eax, dword [ebp + 8]
jmp 0x1000788c
call fcn.10007440
jmp 0x1000788c
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
movzx ecx, byte [ebp - 4]
push ecx
call fcn.10006140
add esp, 8
movzx edx, al
test edx, edx
je 0x1000787a
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
jmp 0x10007882
call fcn.10007440
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
jmp 0x1000788c
call fcn.10007440
pop esi
mov esp, ebp
pop ebp
ret 4