Function at 0x4074a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x7c]
mov ecx, 0x1f
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00406d70
push eax
call fcn.00406dd0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x4074ea
mov eax, dword [ebp + 8]
push eax
call fcn.00407320
add esp, 4
jmp 0x4076f0
mov esi, esp
mov ecx, dword [ebp - 8]
call dword [sym.imp.MSVCP140D.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
cmp esi, esp
call fcn.00415080
test eax, eax
je 0x40755e
mov esi, esp
mov ecx, dword [ebp - 8]
call dword [sym.imp.MSVCP140D.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
cmp esi, esp
call fcn.00415080
mov esi, eax
mov edi, esp
mov ecx, dword [ebp - 8]
call dword [sym.imp.MSVCP140D.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const]
cmp edi, esp
call fcn.00415080
cmp esi, eax
jae 0x40755e
mov eax, dword [ebp + 8]
push eax
call fcn.00407f20
add esp, 4
mov byte [ebp - 0x131], al
mov esi, esp
mov ecx, dword [ebp - 8]
call dword [sym.imp.MSVCP140D.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
cmp esi, esp
call fcn.00415080
mov cl, byte [ebp - 0x131]
mov byte [eax], cl
mov eax, dword [ebp + 8]
jmp 0x4076f0
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
jne 0x407571
call fcn.00406d70
jmp 0x4076f0
mov ecx, dword [ebp - 8]
call fcn.00405f00
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
jne 0x4075df
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x4c]
mov dword [ebp - 0x134], ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00407f20
add esp, 4
mov byte [ebp - 0x135], al
mov eax, dword [ebp - 0x134]
push eax
movzx ecx, byte [ebp - 0x135]
push ecx
call fcn.00402230
add esp, 8
movzx edx, al
test edx, edx
je 0x4075c9
mov eax, dword [ebp + 8]
mov dword [ebp - 0x13c], eax
jmp 0x4075d4
call fcn.00406d70
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x13c]
jmp 0x4076f0
mov dword [ebp - 0x14], 0x20
mov eax, dword [ebp + 8]
push eax
call fcn.00407f20
add esp, 4
mov byte [ebp - 0x45], al
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x134], ecx
mov esi, esp
lea edx, [ebp - 0x60]
push edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x45]
push ecx
mov edx, dword [ebp - 8]
add edx, 0x40
push edx
mov ecx, dword [ebp - 0x134]
call 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]
cmp esi, esp
call fcn.00415080
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 0
je 0x40765b
cmp dword [ebp - 0x138], 1
je 0x40765b
cmp dword [ebp - 0x138], 3
je 0x4076b2
jmp 0x4076eb
mov eax, dword [ebp - 0x60]
lea ecx, [ebp - 0x3c]
sub eax, ecx
mov dword [ebp - 0x6c], eax
je 0x407697
mov esi, esp
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x6c]
push edx
push 1
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.ucrtbased.dll_fwrite]
add esp, 0x10
cmp esi, esp
call fcn.00415080
cmp dword [ebp - 0x6c], eax
je 0x407697
call fcn.00406d70
jmp 0x4076f0
mov eax, dword [ebp - 8]
mov byte [eax + 0x3d], 1
lea eax, [ebp - 0x45]
cmp dword [ebp - 0x54], eax
je 0x4076ab
mov eax, dword [ebp + 8]
jmp 0x4076f0
call fcn.00406d70
jmp 0x4076f0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x4c]
push ecx
movzx edx, byte [ebp - 0x45]
push edx
call fcn.00402230
add esp, 8
movzx eax, al
test eax, eax
je 0x4076d8
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x134], ecx
jmp 0x4076e3
call fcn.00406d70
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x134]
jmp 0x4076f0
call fcn.00406d70
push edx
mov ecx, ebp
push eax
lea edx, [0x407718]
call fcn.00415020
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0x13c
cmp ebp, esp
call fcn.00415080
mov esp, ebp
pop ebp
ret 4