Function at 0x403db6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ccd4d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x4234
call fcn.004b0380
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 0x403e0b
push str.Allocating_0_bytes
push str.DEBUG
push 0x7f2
push str.D:projectsUTIL_srcdebug.cpp
call fcn.004046ac
add esp, 0x10
cmp dword [ebp + 8], 0x40000000
jb 0x403e4a
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.00404e5d
add esp, 0xc
push eax
push str.DEBUG
push 0x7f7
push str.D:projectsUTIL_srcdebug.cpp
call fcn.004046ac
add esp, 0x10
push 0xff
call fcn.0040341b
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.004b0120
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.004aed70
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 0x403ecc
push str.Allocation_size_is_too_close_to_4Gb__truncating
push str.DEBUG
push 0x800
push str.D:projectsUTIL_srcdebug.cpp
call fcn.004046ac
add esp, 0x10
or dword [ebp - 0x1c], 0xffffffff
lea eax, [ebp - 0x144]
push eax
call fcn.004aed70
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 - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x403ef1
wait
or dword [ebp - 4], 0xffffffff
jmp 0x4041ab
mov eax, dword [ebp - 0x18]
mov dword [eax], 0xacbdef01
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x14], 0xacbdef01
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x18]
and dword [eax + 0xc], 0
cmp dword [0x51ee90], 0
je 0x403f2f
mov byte [ebp - 0x12], 0
jmp 0x403f33
mov byte [ebp - 0x12], 1
mov al, byte [ebp - 0x12]
mov byte [ebp - 0x11], al
call fcn.00403ab1
movzx eax, al
test eax, eax
je 0x403f52
push 0x51ee94
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x403f6d
call fcn.00404f17
movzx eax, al
test eax, eax
je 0x403f69
movzx eax, byte [0x51ee8c]
test eax, eax
je 0x403f6d
mov byte [ebp - 0x11], 0
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x403fae
mov eax, dword [ebp - 0x18]
mov ecx, dword [0x51eeac]
mov dword [eax + 8], ecx
cmp dword [0x51eeb0], 0
jne 0x403f92
mov eax, dword [ebp - 0x18]
mov dword [0x51eeb0], eax
cmp dword [0x51eeac], 0
je 0x403fa6
mov eax, dword [0x51eeac]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp - 0x18]
mov dword [0x51eeac], eax
call fcn.00403ab1
movzx eax, al
test eax, eax
je 0x403fc5
push 0x51ee94
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x18
pop eax
shl eax, 0
add eax, dword [ebp - 0x18]
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.004afef0
pop ecx
pop ecx
mov eax, dword [ebp + 8]
mov ecx, 0x51ee78
lock xadd dword [ecx], eax
mov eax, dword [0x51ee78]
add eax, dword [0x51ee7c]
cmp dword [0x51ee74], eax
jae 0x4040ee
mov eax, dword [0x51ee74]
mov dword [ebp - 0x44], eax
mov eax, dword [0x51ee78]
add eax, dword [0x51ee7c]
mov dword [0x51ee74], eax
mov eax, dword [0x51ee74]
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 0x4040ee
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 + 0x4da670]
divsd xmm0, qword [0x4da660]
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 + 0x4da670]
divsd xmm0, qword [0x4da660]
divsd xmm0, qword [0x4da660]
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.00404e5d
add esp, 0x1c
push eax
push str.DebugNew
push 0x845
push str.D:projectsUTIL_srcdebug.cpp
call fcn.00404405
add esp, 0x14
mov eax, 0x51ee80
xor ecx, ecx
inc ecx
lock xadd dword [eax], ecx
mov eax, dword [ebp - 0x24]
wait
jmp 0x4041f8
push 0
push 0
push str.A_memory_allocation_error_has_occured._Program_will_terminate._Please_restart_this_computer.
call fcn.0041b252
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
and dword [ebp - 0x28], 0
jmp 0x4041cd
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xa
jge 0x4041ec
push 0x64
push 0x1388
call dword [sym.imp.KERNEL32.dll_Beep]
push 0
push 0x64
call dword [sym.imp.KERNEL32.dll_SleepEx]
jmp 0x4041c6
call fcn.00403004
push 0
call fcn.004afdc7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret