Function at 0x10026750
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x10247340]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ecx, 0x102712ae
call fcn.101722b0
call fcn.10026370
mov dword [ebp - 0x84], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x84]
push ecx
call fcn.100263d0
add esp, 8
movzx edx, al
test edx, edx
je 0x100267a9
lea eax, [ebp + 8]
push eax
call fcn.10026560
add esp, 4
jmp 0x10026979
mov ecx, dword [ebp - 8]
call dword [sym.imp.MSVCP140D.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
test eax, eax
je 0x100267f9
mov ecx, dword [ebp - 8]
call dword [sym.imp.MSVCP140D.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.MSVCP140D.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const]
cmp esi, eax
jae 0x100267f9
lea eax, [ebp + 8]
push eax
call fcn.10027700
add esp, 4
mov byte [ebp - 0x85], al
mov ecx, dword [ebp - 8]
call dword [sym.imp.MSVCP140D.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
mov cl, byte [ebp - 0x85]
mov byte [eax], cl
mov eax, dword [ebp + 8]
jmp 0x10026979
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
jne 0x1002680c
call fcn.10026370
jmp 0x10026979
mov ecx, dword [ebp - 8]
call fcn.10025ee0
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
jne 0x1002687a
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x4c]
mov dword [ebp - 0x88], ecx
lea edx, [ebp + 8]
push edx
call fcn.10027700
add esp, 4
mov byte [ebp - 0x89], al
mov eax, dword [ebp - 0x88]
push eax
movzx ecx, byte [ebp - 0x89]
push ecx
call fcn.10023c10
add esp, 8
movzx edx, al
test edx, edx
je 0x10026864
mov eax, dword [ebp + 8]
mov dword [ebp - 0x90], eax
jmp 0x1002686f
call fcn.10026370
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
jmp 0x10026979
mov dword [ebp - 0xc], 0x20
lea eax, [ebp + 8]
push eax
call fcn.10027700
add esp, 4
mov byte [ebp - 0x32], al
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x88], ecx
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x31]
push eax
lea ecx, [ebp - 0x32]
push ecx
mov edx, dword [ebp - 8]
add edx, 0x40
push edx
mov ecx, dword [ebp - 0x88]
call dword [sym.imp.MSVCP140D.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 - 0x8c], eax
cmp dword [ebp - 0x8c], 0
je 0x100268ed
cmp dword [ebp - 0x8c], 1
je 0x100268ed
cmp dword [ebp - 0x8c], 3
je 0x1002693b
jmp 0x10026974
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x30]
sub eax, ecx
mov dword [ebp - 0x40], eax
je 0x10026920
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
push 1
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ucrtbased.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x40], eax
je 0x10026920
call fcn.10026370
jmp 0x10026979
mov eax, dword [ebp - 8]
mov byte [eax + 0x3d], 1
lea eax, [ebp - 0x32]
cmp dword [ebp - 0x38], eax
je 0x10026934
mov eax, dword [ebp + 8]
jmp 0x10026979
call fcn.10026370
jmp 0x10026979
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x4c]
push ecx
movzx edx, byte [ebp - 0x32]
push edx
call fcn.10023c10
add esp, 8
movzx eax, al
test eax, eax
je 0x10026961
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x88], ecx
jmp 0x1002696c
call fcn.10026370
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
jmp 0x10026979
call fcn.10026370
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101722f0
mov esp, ebp
pop ebp
ret 4