Function at 0x100259c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
mov dword [ebp - 8], ecx
call fcn.100199f0
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.10024820
add esp, 8
movzx edx, al
test edx, edx
je 0x100259fa
lea eax, [ebp + 8]
push eax
call fcn.100258c0
add esp, 4
jmp 0x10025b95
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 0x10025a44
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 0x10025a44
lea ecx, [ebp + 8]
push ecx
call fcn.10026d70
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 dl, byte [ebp - 1]
mov byte [eax], dl
mov eax, dword [ebp + 8]
jmp 0x10025b95
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
jne 0x10025a57
call fcn.100199f0
jmp 0x10025b95
mov ecx, dword [ebp - 8]
call fcn.100233f0
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x38], 0
jne 0x10025ab0
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
mov dword [ebp - 0x20], eax
lea ecx, [ebp + 8]
push ecx
call fcn.10026d70
add esp, 4
mov byte [ebp - 2], al
mov edx, dword [ebp - 0x20]
push edx
movzx eax, byte [ebp - 2]
push eax
call fcn.1001ac10
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x10025aa0
mov edx, dword [ebp + 8]
mov dword [ebp - 0x14], edx
jmp 0x10025aa8
call fcn.100199f0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
jmp 0x10025b95
mov dword [ebp - 0x30], 0x20
lea eax, [ebp + 8]
push eax
call fcn.10026d70
add esp, 4
mov byte [ebp - 4], al
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 3]
push ecx
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 8]
add eax, 0x40
push eax
mov ecx, dword [ebp - 0x24]
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
jl 0x10025b90
cmp dword [ebp - 0xc], 1
jle 0x10025b12
cmp dword [ebp - 0xc], 3
je 0x10025b60
jmp 0x10025b90
mov ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x54]
sub ecx, edx
mov dword [ebp - 0x10], ecx
je 0x10025b45
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 1
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x10], eax
je 0x10025b45
call fcn.100199f0
jmp 0x10025b95
mov ecx, dword [ebp - 8]
mov byte [ecx + 0x3d], 1
lea edx, [ebp - 4]
cmp dword [ebp - 0x2c], edx
je 0x10025b59
mov eax, dword [ebp + 8]
jmp 0x10025b95
call fcn.100199f0
jmp 0x10025b95
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x4c]
push ecx
movzx edx, byte [ebp - 4]
push edx
call fcn.1001ac10
add esp, 8
movzx eax, al
test eax, eax
je 0x10025b83
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
jmp 0x10025b8b
call fcn.100199f0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
jmp 0x10025b95
call fcn.100199f0
pop esi
mov esp, ebp
pop ebp
ret 4