Function at 0x40297d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
mov dword [ebp - 4], ecx
push dword [ebp + 8]
call fcn.004026c3
push eax
call fcn.004026cb
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x4029ad
push dword [ebp + 8]
call fcn.00402853
pop ecx
jmp 0x402b1f
mov ecx, dword [ebp - 4]
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 0x4029f0
mov ecx, dword [ebp - 4]
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 - 4]
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 0x4029f0
push dword [ebp + 8]
call fcn.00402f2b
pop ecx
mov bl, al
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
mov byte [eax], bl
mov eax, dword [ebp + 8]
jmp 0x402b1f
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4c], 0
jne 0x402a03
call fcn.004026c3
jmp 0x402b1f
mov ecx, dword [ebp - 4]
call fcn.00402464
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x402a4d
mov eax, dword [ebp - 4]
push dword [eax + 0x4c]
push dword [ebp + 8]
call fcn.00402f2b
pop ecx
movzx eax, al
push eax
call fcn.00401485
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x402a3d
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
jmp 0x402a45
call fcn.004026c3
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
jmp 0x402b1f
mov dword [ebp - 0x24], 0x20
push dword [ebp + 8]
call fcn.00402f2b
pop ecx
mov byte [ebp - 8], al
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 7]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
add eax, 0x40
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x38]
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 0x402aa2
cmp dword [ebp - 0xc], 1
je 0x402aa2
cmp dword [ebp - 0xc], 3
je 0x402aee
jmp 0x402b1a
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x48]
sub eax, ecx
mov dword [ebp - 0x10], eax
je 0x402ad3
mov eax, dword [ebp - 4]
push dword [eax + 0x4c]
push dword [ebp - 0x10]
push 1
lea eax, [ebp - 0x48]
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 0x402ad3
call fcn.004026c3
jmp 0x402b1f
mov eax, dword [ebp - 4]
mov byte [eax + 0x3d], 1
lea eax, [ebp - 8]
cmp dword [ebp - 0x20], eax
je 0x402ae7
mov eax, dword [ebp + 8]
jmp 0x402b1f
call fcn.004026c3
jmp 0x402b1f
mov eax, dword [ebp - 4]
push dword [eax + 0x4c]
push dword [ebp - 8]
call fcn.00401485
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x402b0d
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
jmp 0x402b15
call fcn.004026c3
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
jmp 0x402b1f
call fcn.004026c3
pop esi
pop ebx
leave
ret 4