Function at 0x404d30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x84
mov eax, dword [ebp + 8]
mov eax, dword [0x410340]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
call fcn.004060b0
mov ecx, eax
mov eax, dword [ebp - 0x50]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00406090
test al, 1
jne 0x404d7b
jmp 0x404d8e
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004060c0
mov dword [ebp - 0x40], eax
jmp 0x404faf
mov ecx, dword [ebp - 0x54]
call dword [sym.imp.MSVCP140D.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
cmp eax, 0
je 0x404de9
mov ecx, dword [ebp - 0x54]
call dword [sym.imp.MSVCP140D.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
call dword [sym.imp.MSVCP140D.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const]
mov ecx, eax
mov eax, dword [ebp - 0x58]
cmp eax, ecx
jae 0x404de9
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00406110
mov ecx, dword [ebp - 0x54]
mov byte [ebp - 0x59], al
call dword [sym.imp.MSVCP140D.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
mov cl, byte [ebp - 0x59]
mov byte [eax], cl
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
jmp 0x404faf
mov eax, dword [ebp - 0x54]
cmp dword [eax + 0x4c], 0
jne 0x404e03
call fcn.004060b0
mov dword [ebp - 0x40], eax
jmp 0x404faf
mov ecx, dword [ebp - 0x54]
call fcn.00404ba0
mov eax, dword [ebp - 0x54]
cmp dword [eax + 0x38], 0
jne 0x404e6b
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x4c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00406110
mov cl, al
mov eax, dword [ebp - 0x60]
movsx ecx, cl
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00406120
test al, 1
jne 0x404e4d
jmp 0x404e58
mov eax, dword [ebp + 8]
mov dword [ebp - 0x64], eax
jmp 0x404e60
call fcn.004060b0
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x40], eax
jmp 0x404faf
mov dword [ebp - 0x48], 0x20
mov ecx, dword [ebp + 8]
mov eax, esp
mov dword [eax], ecx
call fcn.00406110
mov edx, dword [ebp - 0x54]
mov byte [ebp - 0x31], al
mov ecx, dword [edx + 0x38]
lea edi, [ebp - 0x10]
lea esi, [ebp - 0x30]
add edx, 0x40
mov eax, esp
lea ebx, [ebp - 0x3c]
mov dword [eax + 0x18], ebx
mov dword [eax + 0x14], edi
lea edi, [ebp - 0x30]
mov dword [eax + 0x10], edi
lea edi, [ebp - 0x38]
mov dword [eax + 0xc], edi
mov dword [eax + 8], esi
lea esi, [ebp - 0x31]
mov dword [eax + 4], esi
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCP140D.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
call eax
sub esp, 0x1c
mov ecx, eax
mov dword [ebp - 0x68], ecx
sub eax, 2
jb 0x404ee0
jmp 0x404ecf
mov eax, dword [ebp - 0x68]
sub eax, 3
je 0x404f66
jmp 0x404fa7
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x30]
sub eax, ecx
mov dword [ebp - 0x4c], eax
xor eax, eax
cmp eax, dword [ebp - 0x4c]
jae 0x404f3b
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x6c], ecx
mov eax, dword [eax + 0x4c]
mov ecx, dword [ebp - 0x4c]
lea edx, [ebp - 0x30]
mov dword [esp], edx
mov dword [esp + 4], 1
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call dword [sym.imp.ucrtbased.dll_fwrite]
mov ecx, eax
mov eax, dword [ebp - 0x6c]
cmp eax, ecx
je 0x404f3b
call fcn.004060b0
mov dword [ebp - 0x40], eax
jmp 0x404faf
mov eax, dword [ebp - 0x54]
mov byte [eax + 0x3d], 1
lea eax, [ebp - 0x31]
cmp dword [ebp - 0x38], eax
je 0x404f59
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
jmp 0x404faf
call fcn.004060b0
mov dword [ebp - 0x40], eax
jmp 0x404faf
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x4c]
movsx ecx, byte [ebp - 0x31]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00406120
test al, 1
jne 0x404f89
jmp 0x404f94
mov eax, dword [ebp + 8]
mov dword [ebp - 0x70], eax
jmp 0x404f9c
call fcn.004060b0
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x40], eax
jmp 0x404faf
call fcn.004060b0
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409640
mov eax, dword [ebp - 0x74]
add esp, 0x84
pop esi
pop edi
pop ebx
pop ebp
ret 4