Function at 0x42b790
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430548
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x43a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.004217f0
mov ebx, eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
call fcn.00428e60
test al, al
je 0x42b7e2
mov ecx, edx
call fcn.00428e70
jmp 0x42b9b0
mov ecx, edi
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 0x42b820
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const]
mov ecx, edi
mov esi, eax
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
cmp eax, esi
jae 0x42b820
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
lea ecx, [ebp + 8]
mov edx, eax
call fcn.00428e40
mov byte [edx], al
mov eax, dword [ebp + 8]
jmp 0x42b9b0
cmp dword [edi + 0x4c], 0
je 0x42b9ae
mov ecx, edi
call fcn.0042cdb0
lea ecx, [ebp + 8]
call fcn.00428e40
cmp dword [edi + 0x38], 0
jne 0x42b854
mov edx, dword [edi + 0x4c]
mov cl, al
call fcn.00429010
test al, al
cmovne ebx, dword [ebp + 8]
jmp 0x42b9ae
sub esp, 8
mov byte [ebp - 0x11], al
lea ecx, [ebp - 0x3c]
call fcn.0042ae10
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x3c]
lea esi, [edi + 0x40]
call fcn.0042ca80
mov ecx, eax
call fcn.0042c8f0
lea ecx, [ebp - 0x3c]
mov edx, eax
call fcn.0042ca40
add edx, eax
lea eax, [ebp - 0x24]
push edx
push eax
call fcn.0042ca80
mov ecx, eax
call fcn.0042c8f0
mov ecx, dword [edi + 0x38]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x11]
push eax
push esi
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]
test eax, eax
js 0x42b9a6
nop
cmp eax, 1
jg 0x42b990
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0042ca80
mov ecx, eax
call fcn.0042c8f0
mov esi, dword [ebp - 0x1c]
sub esi, eax
je 0x42b90e
push dword [edi + 0x4c]
lea eax, [ebp - 0x44]
push esi
push 1
push eax
lea ecx, [ebp - 0x3c]
call fcn.0042ca80
mov ecx, eax
call fcn.0042c8f0
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x42b9a6
lea eax, [ebp - 0x11]
mov byte [edi + 0x3d], 1
cmp dword [ebp - 0x18], eax
jne 0x42b98b
test esi, esi
jne 0x42b933
lea ecx, [ebp - 0x3c]
call fcn.0042ca40
cmp eax, 0x20
jae 0x42b9a6
push esi
push 8
call fcn.004215b0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0042ca80
mov ecx, eax
call fcn.0042c8f0
lea ecx, [ebp - 0x3c]
mov edx, eax
call fcn.0042ca40
add edx, eax
lea eax, [ebp - 0x24]
push edx
push eax
call fcn.0042ca80
mov ecx, eax
call fcn.0042c8f0
mov ecx, dword [edi + 0x38]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x11]
push eax
lea eax, [edi + 0x40]
push eax
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]
test eax, eax
jns 0x42b8c0
jmp 0x42b9a6
mov ebx, dword [ebp + 8]
jmp 0x42b9a6
cmp eax, 3
jne 0x42b9a6
mov edx, dword [edi + 0x4c]
mov cl, byte [ebp - 0x11]
call fcn.00429010
test al, al
cmovne ebx, dword [ebp + 8]
lea ecx, [ebp - 0x3c]
call fcn.0042ad40
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ea9e
mov esp, ebp
pop ebp
ret 4