Function at 0x10026790
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
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, 0x102712af
call fcn.10172e30
mov eax, dword [ebp + 8]
push eax
call fcn.100263c0
push eax
call fcn.10026420
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x100267dd
mov eax, dword [ebp + 8]
push eax
call fcn.100265b0
add esp, 4
jmp 0x100269ad
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 0x1002682d
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 0x1002682d
mov eax, dword [ebp + 8]
push eax
call fcn.100277d0
add esp, 4
mov byte [ebp - 0x81], 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 - 0x81]
mov byte [eax], cl
mov eax, dword [ebp + 8]
jmp 0x100269ad
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
jne 0x10026840
call fcn.100263c0
jmp 0x100269ad
mov ecx, dword [ebp - 8]
call fcn.10025f30
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
jne 0x100268ae
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x4c]
mov dword [ebp - 0x84], ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100277d0
add esp, 4
mov byte [ebp - 0x85], al
mov eax, dword [ebp - 0x84]
push eax
movzx ecx, byte [ebp - 0x85]
push ecx
call fcn.10023dd0
add esp, 8
movzx edx, al
test edx, edx
je 0x10026898
mov eax, dword [ebp + 8]
mov dword [ebp - 0x8c], eax
jmp 0x100268a3
call fcn.100263c0
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
jmp 0x100269ad
mov dword [ebp - 0xc], 0x20
mov eax, dword [ebp + 8]
push eax
call fcn.100277d0
add esp, 4
mov byte [ebp - 0x32], al
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x84], 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 - 0x84]
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 - 0x88], eax
cmp dword [ebp - 0x88], 0
je 0x10026921
cmp dword [ebp - 0x88], 1
je 0x10026921
cmp dword [ebp - 0x88], 3
je 0x1002696f
jmp 0x100269a8
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x30]
sub eax, ecx
mov dword [ebp - 0x40], eax
je 0x10026954
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 0x10026954
call fcn.100263c0
jmp 0x100269ad
mov eax, dword [ebp - 8]
mov byte [eax + 0x3d], 1
lea eax, [ebp - 0x32]
cmp dword [ebp - 0x38], eax
je 0x10026968
mov eax, dword [ebp + 8]
jmp 0x100269ad
call fcn.100263c0
jmp 0x100269ad
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x4c]
push ecx
movzx edx, byte [ebp - 0x32]
push edx
call fcn.10023dd0
add esp, 8
movzx eax, al
test eax, eax
je 0x10026995
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x84], ecx
jmp 0x100269a0
call fcn.100263c0
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
jmp 0x100269ad
call fcn.100263c0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10172e70
mov esp, ebp
pop ebp
ret 4