Function at 0x405860
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49183d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
test byte [eax + 0x178], 0x10
mov edi, dword [eax + 0x30]
je 0x4058da
call fcn.00403a50
mov ecx, dword [ebp + 8]
mov esi, eax
mov ebx, dword [ecx + 8]
mov ecx, dword [ecx + 0xf0]
test ecx, ecx
je 0x4058b5
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
jmp 0x4058c3
xorps xmm0, xmm0
movlpd qword [ebp - 0x24], xmm0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
push ebx
push 0
push edi
mov eax, dword [eax]
push ecx
push edx
mov ecx, esi
push dword [eax + 4]
call fcn.00421140
jmp 0x4058eb
push dword [eax + 8]
lea ecx, [eax + 0xf0]
push edi
push 0
call fcn.00418960
mov esi, eax
test esi, esi
js 0x405a26
mov ebx, dword [ebp + 8]
test byte [ebx + 0x178], 0x10
jne 0x405920
push 0
push edi
push 0
lea ecx, [ebx + 0xf0]
push 2
call fcn.00418650
mov esi, eax
test esi, esi
js 0x405a26
mov ebx, dword [ebp + 8]
mov edi, dword [ebx + 0x48]
mov ecx, dword [ebx + 0x4c]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x20], ecx
cmp edi, ecx
je 0x405a24
nop dword [eax]
nop dword [eax + eax]
test dword [edi + 0x24], 0xe0000000
je 0x405a16
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x405a16
cmp byte [ebx + 0xc], 0
mov edi, dword [edi + 0xc]
je 0x40599b
mov eax, dword [ebx + 0x48]
mov esi, dword [ebx + 0x4c]
cmp eax, esi
je 0x405987
nop
mov edx, dword [eax + 0xc]
cmp edi, edx
jb 0x405980
mov ecx, dword [eax + 8]
add ecx, edx
cmp edi, ecx
jb 0x40598e
add eax, 0x28
cmp eax, esi
jne 0x405970
mov eax, dword [ebp - 0x18]
xor esi, esi
jmp 0x4059a0
mov esi, dword [eax + 0x14]
add esi, dword [ebx + 8]
mov eax, dword [ebp - 0x18]
sub esi, edx
jmp 0x40599e
mov esi, dword [ebx + 8]
add esi, edi
test byte [ebx + 0x178], 0x10
je 0x4059f9
call fcn.00403a50
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov ecx, dword [ecx + 0xf0]
test ecx, ecx
je 0x4059c8
mov eax, dword [ecx]
mov ebx, dword [ecx + 4]
jmp 0x4059d6
xorps xmm0, xmm0
movlpd qword [ebp - 0x14], xmm0
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov edx, dword [edi + 0xc]
xor ecx, ecx
push esi
add edx, eax
mov eax, dword [ebp - 0x1c]
push 0
push dword [edi + 0x10]
adc ecx, ebx
mov eax, dword [eax]
push ecx
mov ecx, dword [ebp - 0x18]
push edx
push dword [eax + 4]
call fcn.00421140
jmp 0x405a0a
push esi
push eax
lea ecx, [ebx + 0xf0]
push edi
call fcn.00418960
mov edi, dword [ebp - 0x10]
mov esi, eax
test esi, esi
js 0x405a26
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
add edi, 0x28
mov dword [ebp - 0x10], edi
cmp edi, ecx
jne 0x405940
xor esi, esi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x405a4e
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x405a4e
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x405a4e
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8