Function at 0x4040c0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ca39
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
push esi
mov dword [ebp - 0x14], 0
push edi
lea edi, [ecx + 0x20]
mov dword [ecx], eax
lea ecx, [edi + 0x68]
mov dword [ebp - 0x18], edi
mov dword [edi], 0x4a0798
mov dword [edi + 0x10], 0x4a07a0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
lea esi, [edi + 0x18]
mov dword [ebp - 4], 0
push esi
mov ecx, edi
mov dword [ebp - 0x14], 1
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char____]
mov eax, dword [edi]
mov dword [ebp - 4], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov dword [esi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
push dword [ebp + 8]
mov edi, dword [ebp - 0x10]
mov ecx, edi
mov dword [ebp - 4], 2
call fcn.00419370
lea eax, [edi + 4]
sub esp, 0x10
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x30]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x58], eax
movups xmm0, xmmword [ebp - 0x60]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x50], eax
mov eax, esp
movups xmmword [ebp - 0x30], xmm0
push 0xa
movq xmm0, qword [ebp - 0x50]
movq qword [ebp - 0x20], xmm0
mov dword [eax], 0x1cc
mov dword [eax + 4], 0
mov dword [eax + 8], ecx
lea eax, [ebp - 0x60]
push str._:_
push eax
call fcn.00485770
cmp dword [ebp - 0x4c], 0xf
lea eax, [ebp - 0x60]
push dword [ebp - 0x50]
cmova eax, dword [ebp - 0x60]
push eax
lea eax, [edi + 0x30]
mov byte [ebp - 4], 3
push eax
call fcn.00401bf0
mov ecx, dword [ebp + 0x18]
mov esi, eax
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x28], edx
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
movups xmm0, xmmword [ebp - 0x28]
mov eax, dword [ebp + 0x14]
lea edi, [ebp - 0x28]
add esp, 0x18
movups xmmword [ebp - 0x28], xmm0
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, esp
push ecx
push edx
mov dword [eax], 0xcd
mov dword [eax + 4], 0
mov dword [eax + 8], edi
lea eax, [ebp - 0x48]
push eax
call fcn.00485770
cmp dword [ebp - 0x34], 0xf
lea eax, [ebp - 0x48]
push dword [ebp - 0x38]
cmova eax, dword [ebp - 0x48]
push eax
push esi
mov byte [ebp - 4], 4
call fcn.00401bf0
mov ecx, dword [ebp - 0x34]
add esp, 0x28
mov edi, dword [ebp - 0x10]
cmp ecx, 0xf
jbe 0x404275
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40426b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4042ad
push ecx
push edx
call fcn.0049b35d
add esp, 8
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
cmp ecx, 0xf
jbe 0x4042bd
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4042b3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4042b3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0049b35d
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 0x18