Function at 0x4049e2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45321e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x4234
call fcn.0043a580
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
and dword [ebp - 4], 0
wait
mov byte [ebp - 4], 1
wait
cmp dword [ebp + 8], 0
jne 0x404a37
push str.Allocating_0_bytes
push str.DEBUG
push 0x859
push str.D:projectsutil_srcdebug.cpp
call fcn.00405307
add esp, 0x10
cmp dword [ebp + 8], 0x40000000
jb 0x404a76
mov eax, dword [ebp + 8]
shr eax, 0xa
shr eax, 0xa
push eax
push str.Allocating__ld_megs
lea eax, [ebp - 0x2244]
push eax
call fcn.00405ab8
add esp, 0xc
push eax
push str.DEBUG
push 0x85e
push str.D:projectsutil_srcdebug.cpp
call fcn.00405307
add esp, 0x10
push 0xff
call fcn.00404086
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.0043a330
add esp, 0xc
xor eax, eax
inc eax
imul eax, eax, 0xff
mov byte [ebp + eax - 0x144], 0
lea eax, [ebp - 0x144]
push eax
call fcn.00438f50
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax + 0x1d]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 8]
jae 0x404af8
push str.Allocation_size_is_too_close_to_4Gb__truncating
push str.DEBUG
push 0x867
push str.D:projectsutil_srcdebug.cpp
call fcn.00405307
add esp, 0x10
or dword [ebp - 0x1c], 0xffffffff
lea eax, [ebp - 0x144]
push eax
call fcn.00438f50
pop ecx
add eax, 0x1d
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
mov dword [ebp + 8], ecx
push dword [ebp - 0x1c]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x404b1d
wait
or dword [ebp - 4], 0xffffffff
jmp 0x404e06
call fcn.0040471c
movzx eax, al
test eax, eax
je 0x404b34
mov eax, dword [ebp - 0x14]
mov dword [eax], 0xacbdef01
jmp 0x404b3d
mov eax, dword [ebp - 0x14]
mov dword [eax], 0xacbdef02
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x14], 0xacbdef01
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x14]
and dword [eax + 0xc], 0
cmp dword [0x478ed0], 0
je 0x404b72
mov byte [ebp - 0x16], 0
jmp 0x404b76
mov byte [ebp - 0x16], 1
mov al, byte [ebp - 0x16]
mov byte [ebp - 0x15], al
call fcn.0040471c
movzx eax, al
test eax, eax
je 0x404b95
push 0x478ed4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x404bb0
call fcn.00405b72
movzx eax, al
test eax, eax
je 0x404bac
movzx eax, byte [0x478ecc]
test eax, eax
je 0x404bb0
mov byte [ebp - 0x15], 0
movzx eax, byte [ebp - 0x15]
test eax, eax
je 0x404bf1
mov eax, dword [ebp - 0x14]
mov ecx, dword [0x478eec]
mov dword [eax + 8], ecx
cmp dword [0x478ef0], 0
jne 0x404bd5
mov eax, dword [ebp - 0x14]
mov dword [0x478ef0], eax
cmp dword [0x478eec], 0
je 0x404be9
mov eax, dword [0x478eec]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp - 0x14]
mov dword [0x478eec], eax
call fcn.0040471c
movzx eax, al
test eax, eax
je 0x404c08
push 0x478ed4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x18
pop eax
shl eax, 0
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
add eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [eax], 0xbdac01ef
lea eax, [ebp - 0x144]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
lea eax, [ecx + eax + 4]
push eax
call fcn.0043a100
pop ecx
pop ecx
call fcn.0040471c
movzx eax, al
test eax, eax
je 0x404c57
mov eax, dword [ebp + 8]
mov ecx, 0x478eb8
lock xadd dword [ecx], eax
mov eax, dword [0x478eb8]
add eax, dword [0x478ebc]
cmp dword [0x478eb4], eax
jae 0x404d3d
mov eax, dword [0x478eb4]
mov dword [ebp - 0x44], eax
mov eax, dword [0x478eb8]
add eax, dword [0x478ebc]
mov dword [0x478eb4], eax
mov eax, dword [0x478eb4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x44]
shr eax, 0xa
shr eax, 0xa
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x20]
shr eax, 0xa
shr eax, 0xa
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x34]
jbe 0x404d3d
push 0
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
cvtsi2sd xmm0, dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x457510]
divsd xmm0, qword [0x457500]
push ecx
push ecx
movsd qword [esp], xmm0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
cvtsi2sd xmm0, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x457510]
divsd xmm0, qword [0x457500]
divsd xmm0, qword [0x457500]
push ecx
push ecx
movsd qword [esp], xmm0
push str.Peak_memory_usage_now_at__0.2lf_MB___0.1lf_KB___ld_B_
lea eax, [ebp - 0x4244]
push eax
call fcn.00405ab8
add esp, 0x1c
push eax
push str.DebugNew
push 0x8b0
push str.D:projectsutil_srcdebug.cpp
call fcn.00405060
add esp, 0x14
call fcn.0040471c
movzx eax, al
test eax, eax
je 0x404d55
mov eax, 0x478ec0
xor ecx, ecx
inc ecx
lock xadd dword [eax], ecx
mov eax, dword [ebp - 0x24]
wait
jmp 0x404e53
push 0
push 0
push str.A_memory_allocation_error_has_occured._Program_will_terminate._Please_restart_this_computer.
call fcn.004060ee
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
and dword [ebp - 0x28], 0
jmp 0x404e28
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xa
jge 0x404e47
push 0x64
push 0x1388
call dword [sym.imp.KERNEL32.dll_Beep]
push 0
push 0x64
call dword [sym.imp.KERNEL32.dll_SleepEx]
jmp 0x404e21
call fcn.00403c5d
push 0
call fcn.0043a059
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret