Function at 0x4056b0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb87d
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 0x40572a
call fcn.00403970
mov ecx, dword [ebp + 8]
mov esi, eax
mov ebx, dword [ecx + 8]
mov ecx, dword [ecx + 0xf0]
test ecx, ecx
je 0x405705
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
jmp 0x405713
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.004200a0
jmp 0x40573b
push dword [eax + 8]
lea ecx, [eax + 0xf0]
push edi
push 0
call fcn.00417b60
mov esi, eax
test esi, esi
js 0x405876
mov ebx, dword [ebp + 8]
test byte [ebx + 0x178], 0x10
jne 0x405770
push 0
push edi
push 0
lea ecx, [ebx + 0xf0]
push 2
call fcn.00417850
mov esi, eax
test esi, esi
js 0x405876
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 0x405874
nop dword [eax]
nop dword [eax + eax]
test dword [edi + 0x24], 0xe0000000
je 0x405866
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x405866
cmp byte [ebx + 0xc], 0
mov edi, dword [edi + 0xc]
je 0x4057eb
mov eax, dword [ebx + 0x48]
mov esi, dword [ebx + 0x4c]
cmp eax, esi
je 0x4057d7
nop
mov edx, dword [eax + 0xc]
cmp edi, edx
jb 0x4057d0
mov ecx, dword [eax + 8]
add ecx, edx
cmp edi, ecx
jb 0x4057de
add eax, 0x28
cmp eax, esi
jne 0x4057c0
mov eax, dword [ebp - 0x18]
xor esi, esi
jmp 0x4057f0
mov esi, dword [eax + 0x14]
add esi, dword [ebx + 8]
mov eax, dword [ebp - 0x18]
sub esi, edx
jmp 0x4057ee
mov esi, dword [ebx + 8]
add esi, edi
test byte [ebx + 0x178], 0x10
je 0x405849
call fcn.00403970
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov ecx, dword [ecx + 0xf0]
test ecx, ecx
je 0x405818
mov eax, dword [ecx]
mov ebx, dword [ecx + 4]
jmp 0x405826
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.004200a0
jmp 0x40585a
push esi
push eax
lea ecx, [ebx + 0xf0]
push edi
call fcn.00417b60
mov edi, dword [ebp - 0x10]
mov esi, eax
test esi, esi
js 0x405876
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
add edi, 0x28
mov dword [ebp - 0x10], edi
cmp edi, ecx
jne 0x405790
xor esi, esi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x40589e
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x40589e
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x40589e
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