Function at 0x40d1d0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8d69
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x51d06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7c], ecx
cmp dword [ecx + 0x30], 0x10
lea esi, [ecx + 0x18]
mov edx, dword [ebp + 0xc]
lea edi, [esi + 4]
mov eax, dword [ebp + 8]
mov ecx, edi
push edx
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], edx
push eax
jb 0x40d21e
mov ecx, dword [edi]
mov eax, dword [esi + 0x14]
add eax, ecx
lea ecx, [ebp - 0x94]
push esi
push eax
call fcn.004096e0
sub esp, 0xc
mov dword [ebp - 4], 0
mov eax, esp
mov dword [ebp - 0x14], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x94]
test ecx, ecx
je 0x40d25f
push dword [ecx]
mov ecx, eax
call fcn.00403070
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x8c]
mov dword [ecx + 8], eax
cmp dword [esi + 0x18], 0x10
jb 0x40d273
mov edi, dword [edi]
push esi
push edi
lea ecx, [ebp - 0x88]
call fcn.004096e0
sub esp, 0xc
mov edi, esp
mov dword [edi], 0
mov dword [edi + 4], 0
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x40d2a5
push dword [eax]
mov ecx, edi
call fcn.00403070
mov byte [ebp - 4], 2
mov ecx, esi
mov eax, dword [ebp - 0x80]
mov dword [edi + 8], eax
call fcn.004161d0
push 3
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.004aae00
lea ecx, [ebp - 0x88]
call fcn.00403110
lea ecx, [ebp - 0x14]
call fcn.004aaea0
push 3
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 5
call fcn.004aae00
lea ecx, [ebp - 0x94]
call fcn.00403110
lea ecx, [ebp - 0x14]
call fcn.004aaea0
push 0x5c
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 0xffffffff
push 0
push eax
call fcn.004b1910
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x58]
mov edi, dword [ebp - 0x7c]
add esp, 8
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x68], eax
lea esi, [edi + 8]
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
push eax
push 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x74], 0
call fcn.00414390
push 8
mov dword [ebp - 4], 6
call fcn.0040bc00
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x5c]
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x5c]
mov dword [eax], ecx
mov dword [ebp - 0x48], 0
push 0
mov dword [ebp - 4], 7
call fcn.00410640
push 0x24
mov dword [ebp - 4], 8
call fcn.004ade30
mov dword [ebp - 0x74], eax
xorps xmm0, xmm0
add esp, 4
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
mov dword [eax + 0x20], 0
mov dword [eax + 4], 0x14
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax], 0x50a3bc
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], 0x100
mov dword [ebp - 0x30], 4
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x18], 0x8775dfb
call fcn.004158f0
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 9
call fcn.00411c80
mov esi, eax
test esi, esi
je 0x40d441
lock inc dword [esi + 0x20]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x40d45c
or eax, 0xffffffff
lock xadd dword [ecx + 0x20], eax
jne 0x40d45c
mov ecx, dword [edi + 4]
xor edx, edx
call fcn.00403da0
lea ecx, [ebp - 0x5c]
mov dword [edi + 4], esi
call fcn.0040a3a0
lea ecx, [ebp - 0x58]
call fcn.0040d000
lea ecx, [ebp - 0x58]
call fcn.0040a3a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ad990
mov esp, ebp
pop ebp
ret 0x10