Function at 0x100256d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push esi
mov dword [ebp - 0x10], ecx
movzx eax, word [ebp + 8]
push eax
call fcn.1001f7d0
movzx ecx, ax
push ecx
call fcn.1001f7e0
add esp, 8
movzx edx, al
test edx, edx
je 0x10025709
movzx eax, word [ebp + 8]
push eax
call fcn.10025470
add esp, 4
jmp 0x100258b5
mov ecx, dword [ebp - 0x10]
call dword [sym.imp.MSVCP140.dll_protected:_wchar_t____thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::pptr_void_const]
test eax, eax
je 0x10025758
mov ecx, dword [ebp - 0x10]
call dword [sym.imp.MSVCP140.dll_protected:_wchar_t____thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::pptr_void_const]
mov esi, eax
mov ecx, dword [ebp - 0x10]
call dword [sym.imp.MSVCP140.dll_protected:_wchar_t____thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::epptr_void_const]
cmp esi, eax
jae 0x10025758
movzx ecx, word [ebp + 8]
push ecx
call fcn.10025dd0
add esp, 4
mov word [ebp - 6], ax
mov ecx, dword [ebp - 0x10]
call dword [sym.imp.MSVCP140.dll_protected:_wchar_t____thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::_Pninc_void_]
mov dx, word [ebp - 6]
mov word [eax], dx
mov ax, word [ebp + 8]
jmp 0x100258b5
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x4c], 0
jne 0x1002576b
call fcn.1001f7d0
jmp 0x100258b5
mov ecx, dword [ebp - 0x10]
call fcn.10024570
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x38], 0
jne 0x100257ca
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x4c]
mov dword [ebp - 0x1c], eax
movzx ecx, word [ebp + 8]
push ecx
call fcn.10025dd0
add esp, 4
mov word [ebp - 8], ax
mov edx, dword [ebp - 0x1c]
push edx
movzx eax, word [ebp - 8]
push eax
call fcn.100225e0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x100257b8
mov dx, word [ebp + 8]
mov word [ebp - 2], dx
jmp 0x100257c1
call fcn.1001f7d0
mov word [ebp - 2], ax
mov ax, word [ebp - 2]
jmp 0x100258b5
mov dword [ebp - 0x2c], 0x20
movzx eax, word [ebp + 8]
push eax
call fcn.10025dd0
add esp, 4
mov word [ebp - 0xc], ax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x20], edx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xa]
push ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0x40
push eax
mov ecx, dword [ebp - 0x20]
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet___wchar_t_const___wchar_t_const___wchar_t_const____char___char___char___const]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x1002582d
cmp dword [ebp - 0x14], 1
je 0x1002582d
cmp dword [ebp - 0x14], 3
je 0x1002587c
jmp 0x100258b0
mov ecx, dword [ebp - 0x24]
lea edx, [ebp - 0x50]
sub ecx, edx
mov dword [ebp - 0x18], ecx
je 0x10025860
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push 1
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x18], eax
je 0x10025860
call fcn.1001f7d0
jmp 0x100258b5
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x3e], 1
lea edx, [ebp - 0xc]
cmp dword [ebp - 0x28], edx
je 0x10025875
mov ax, word [ebp + 8]
jmp 0x100258b5
call fcn.1001f7d0
jmp 0x100258b5
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x4c]
push ecx
movzx edx, word [ebp - 0xc]
push edx
call fcn.100225e0
add esp, 8
movzx eax, al
test eax, eax
je 0x100258a1
mov cx, word [ebp + 8]
mov word [ebp - 4], cx
jmp 0x100258aa
call fcn.1001f7d0
mov word [ebp - 4], ax
mov ax, word [ebp - 4]
jmp 0x100258b5
call fcn.1001f7d0
pop esi
mov esp, ebp
pop ebp
ret 4