Function at 0x42fb70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x675980]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ecx, 0x67d306
call fcn.0050484f
mov eax, dword [ebp + 8]
push eax
call fcn.0042c7c0
push eax
call fcn.0042c7e0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x42fbbd
mov eax, dword [ebp + 8]
push eax
call fcn.0042f880
add esp, 4
jmp 0x42fd8d
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 0x42fc0d
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 0x42fc0d
mov eax, dword [ebp + 8]
push eax
call fcn.004340e0
add esp, 4
mov byte [ebp - 0x81], 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 cl, byte [ebp - 0x81]
mov byte [eax], cl
mov eax, dword [ebp + 8]
jmp 0x42fd8d
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
jne 0x42fc20
call fcn.0042c7c0
jmp 0x42fd8d
mov ecx, dword [ebp - 8]
call fcn.00427180
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
jne 0x42fc8e
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x4c]
mov dword [ebp - 0x84], ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004340e0
add esp, 4
mov byte [ebp - 0x85], al
mov eax, dword [ebp - 0x84]
push eax
movzx ecx, byte [ebp - 0x85]
push ecx
call fcn.0040da60
add esp, 8
movzx edx, al
test edx, edx
je 0x42fc78
mov eax, dword [ebp + 8]
mov dword [ebp - 0x8c], eax
jmp 0x42fc83
call fcn.0042c7c0
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
jmp 0x42fd8d
mov dword [ebp - 0xc], 0x20
mov eax, dword [ebp + 8]
push eax
call fcn.004340e0
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.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 - 0x88], eax
cmp dword [ebp - 0x88], 0
je 0x42fd01
cmp dword [ebp - 0x88], 1
je 0x42fd01
cmp dword [ebp - 0x88], 3
je 0x42fd4f
jmp 0x42fd88
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x30]
sub eax, ecx
mov dword [ebp - 0x40], eax
je 0x42fd34
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.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x40], eax
je 0x42fd34
call fcn.0042c7c0
jmp 0x42fd8d
mov eax, dword [ebp - 8]
mov byte [eax + 0x3d], 1
lea eax, [ebp - 0x32]
cmp dword [ebp - 0x38], eax
je 0x42fd48
mov eax, dword [ebp + 8]
jmp 0x42fd8d
call fcn.0042c7c0
jmp 0x42fd8d
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x4c]
push ecx
movzx edx, byte [ebp - 0x32]
push edx
call fcn.0040da60
add esp, 8
movzx eax, al
test eax, eax
je 0x42fd75
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x84], ecx
jmp 0x42fd80
call fcn.0042c7c0
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
jmp 0x42fd8d
call fcn.0042c7c0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005048c4
mov esp, ebp
pop ebp
ret 4