Function at 0x10051370
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x100c7c54]
sub esp, 0x5c
mov edx, dword [0x100c7c50]
push ebx
push esi
push edi
cmp edx, ecx
je 0x10051857
mov eax, dword [0x100c7560]
xor ebx, ebx
movss xmm0, dword [0x100c0ab4]
mulss xmm0, dword [0x100b9b00]
mov dword [esp + 0x10], 0x7d161616
mov eax, dword [eax]
mov dword [esp + 0x28], eax
cvttss2si eax, xmm0
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
mov eax, ecx
sub eax, edx
sar eax, 2
imul eax, eax, 0xb6db6db7
test eax, eax
je 0x10051857
mov esi, dword [esp + 0x10]
xor edi, edi
mov dword [esp + 0x18], edi
sub ecx, edx
sar ecx, 2
imul eax, ecx, 0xb6db6db7
cmp eax, ebx
jbe 0x1005185e
add edi, edx
mov ecx, edi
cmp dword [edi + 0x14], 0x10
jb 0x100513ff
mov ecx, dword [edi]
mov eax, dword [0x100c6d88]
test ecx, ecx
jne 0x10051413
xorps xmm1, xmm1
movss dword [esp + 0x1c], xmm1
jmp 0x10051467
movss xmm3, dword [0x100b9bb8]
movss xmm2, dword [eax + 0x18bc]
push ecx
push 0
push ecx
push ecx
lea ecx, [esp + 0x48]
mov dword [esp], 0xbf800000
push ecx
mov ecx, dword [eax + 0x18b8]
call fcn.10038530
movss xmm0, dword [esp + 0x38]
addss xmm0, dword [0x100b9a54]
cvttss2si eax, xmm0
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movss dword [esp + 0x1c], xmm1
movss dword [esp + 0x38], xmm1
xorps xmm1, xmm1
mov eax, dword [0x100c39bc]
movss xmm2, dword [0x100b9a9c]
movss xmm0, dword [eax + 0x10]
subss xmm0, dword [edi + 0x18]
mulss xmm0, dword [0x100b9ad8]
comiss xmm0, xmm2
movss dword [esp + 0x14], xmm0
seta al
test al, al
je 0x1005149e
movss dword [esp + 0x14], xmm2
jmp 0x100514ae
comiss xmm1, xmm0
seta al
test al, al
je 0x100514ae
movss dword [esp + 0x14], xmm1
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100c2ee8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x100c40a4]
cmp eax, dword [ecx + 4]
jg 0x10051863
mov ecx, dword [esp + 0x24]
movss xmm1, dword [esp + 0x14]
minss xmm1, dword [0x100b9a58]
movss xmm2, dword [0x100c0ab4]
lea eax, [ecx + 9]
movd xmm4, ecx
imul eax, ebx
movaps xmm0, xmm2
mulss xmm0, dword [0x100b9adc]
push 0xf
mulss xmm1, dword [esp + 0x20]
mulss xmm2, dword [0x100b9ac8]
addss xmm1, dword [0x100b9ae8]
movd xmm3, eax
mov eax, esi
shr eax, 0x10
addss xmm2, dword [0x100b9ae8]
movzx ecx, al
mov eax, esi
shr eax, 0x18
addss xmm1, xmm0
shl eax, 8
add ecx, eax
mov eax, esi
shr eax, 8
cvtdq2ps xmm4, xmm4
shl ecx, 8
movzx eax, al
add ecx, eax
movzx eax, byte [esp + 0x14]
shl ecx, 8
add ecx, eax
movss dword [esp + 0x4c], xmm1
addss xmm4, dword [0x100b9b20]
cvtdq2ps xmm3, xmm3
push ecx
mov dword [esp], 0
lea eax, [esp + 0x50]
push ecx
mov ecx, dword [0x100c405c]
push eax
movaps xmm0, xmm3
movss dword [esp + 0x40], xmm3
addss xmm0, dword [0x100b9b20]
addss xmm4, xmm3
movss dword [esp + 0x60], xmm2
lea eax, [esp + 0x60]
push eax
movss dword [esp + 0x30], xmm0
movss dword [esp + 0x40], xmm4
movss dword [esp + 0x60], xmm4
movss dword [esp + 0x68], xmm0
call fcn.10035960
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100c2ee8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x100c40a4]
cmp eax, dword [ecx + 4]
jg 0x100518fa
mov edx, dword [esp + 0x28]
mov eax, edx
movss xmm0, dword [0x100c0ab4]
mulss xmm0, dword [0x100b9ac8]
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 0x18
addss xmm0, dword [0x100b9ae8]
shl eax, 8
add ecx, eax
mov dword [esp + 0x60], 0x41200000
mov eax, edx
shl ecx, 8
shr eax, 8
movzx eax, al
add ecx, eax
movss dword [esp + 0x58], xmm0
movss xmm0, dword [esp + 0x2c]
shl ecx, 8
movzx eax, dl
add ecx, eax
movss dword [esp + 0x5c], xmm0
movss xmm0, dword [esp + 0x1c]
lea eax, [esp + 0x58]
push 0xf
push ecx
mov dword [esp], 0
push ecx
mov ecx, dword [0x100c405c]
push eax
lea eax, [esp + 0x70]
movss dword [esp + 0x74], xmm0
push eax
call fcn.10035960
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100c2ee8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x100c40a4]
cmp eax, dword [ecx + 4]
jg 0x10051991
movss xmm2, dword [0x100c0ab4]
movss xmm1, dword [esp + 0x30]
movaps xmm0, xmm2
mulss xmm0, dword [0x100b9ad8]
addss xmm1, dword [0x100b9b24]
mulss xmm2, dword [0x100b9af4]
addss xmm0, dword [0x100b9ae8]
movss dword [esp + 0x44], xmm1
movss xmm1, dword [esp + 0x14]
subss xmm1, dword [0x100b9a58]
push dword [esp + 0x44]
movss dword [esp + 0x44], xmm0
xorps xmm0, xmm0
push dword [esp + 0x44]
push dword [0x100c6d98]
maxss xmm0, xmm1
push ecx
push 0
mov ecx, 0x100c4050
mulss xmm0, dword [0x100b9b5c]
cvttss2si eax, xmm0
movzx eax, al
shl eax, 0x18
or eax, 0xffffff
push eax
push edi
call fcn.10051ed0
mov eax, dword [0x100c39bc]
movss xmm0, dword [eax + 0x10]
subss xmm0, dword [edi + 0x18]
comiss xmm0, dword [0x100b9ac8]
jbe 0x10051826
mov edi, dword [esp + 0x18]
add edi, dword [0x100c7c50]
mov edx, dword [0x100c7c54]
mov dword [esp + 0x14], edx
lea ebx, [edi + 0x1c]
cmp ebx, edx
je 0x100517c7
nop dword [eax]
cmp edi, ebx
je 0x100517ad
mov ecx, dword [edi + 0x14]
cmp ecx, 0x10
jb 0x1005177b
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x1005176d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10051a28
mov eax, edx
push ecx
push eax
call fcn.10055494
mov edx, dword [esp + 0x1c]
add esp, 8
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
movups xmm0, xmmword [ebx]
movups xmmword [edi], xmm0
movq xmm0, qword [ebx + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
mov eax, dword [ebx + 0x18]
add ebx, 0x1c
mov dword [edi + 0x18], eax
add edi, 0x1c
cmp ebx, edx
jne 0x10051740
mov edx, dword [0x100c7c54]
mov dword [esp + 0x14], edx
mov ecx, dword [edx - 8]
cmp ecx, 0x10
jb 0x100517ff
mov eax, dword [edx - 0x1c]
inc ecx
cmp ecx, 0x1000
jb 0x100517f1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10051a28
mov eax, edx
push ecx
push eax
call fcn.10055494
mov edx, dword [esp + 0x1c]
add esp, 8
mov ebx, dword [esp + 0x20]
mov dword [edx - 0xc], 0
mov dword [edx - 8], 0xf
mov byte [edx - 0x1c], 0
mov ecx, dword [0x100c7c54]
sub ecx, 0x1c
mov dword [0x100c7c54], ecx
jmp 0x1005182c
mov ecx, dword [0x100c7c54]
mov edx, dword [0x100c7c50]
mov eax, ecx
mov edi, dword [esp + 0x18]
sub eax, edx
sar eax, 2
inc ebx
imul eax, eax, 0xb6db6db7
add edi, 0x1c
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], edi
cmp ebx, eax
jb 0x100513e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10052120
push 0x100c40a4
call fcn.1005566c
add esp, 4
cmp dword [0x100c40a4], 0xffffffff
jne 0x100514ce
xor eax, eax
mov dword [0x100c405c], 0
xorps xmm0, xmm0
mov word [0x100c4061], ax
push 0x1007c850
movlpd qword [0x100c4054], xmm0
mov byte [0x100c4063], al
mov dword [0x100c4050], eax
mov byte [0x100c4060], al
mov dword [0x100c4064], eax
mov dword [0x100c406c], eax
mov dword [0x100c4070], eax
mov dword [0x100c4068], eax
mov dword [0x100c4084], eax
mov dword [0x100c4088], eax
mov dword [0x100c407c], eax
mov dword [0x100c4080], eax
mov dword [0x100c4074], eax
mov dword [0x100c4078], eax
call fcn.1005547f
add esp, 4
push 0x100c40a4
call fcn.10055622
add esp, 4
jmp 0x100514ce
push 0x100c40a4
call fcn.1005566c
add esp, 4
cmp dword [0x100c40a4], 0xffffffff
jne 0x100515d3
xor eax, eax
mov dword [0x100c405c], 0
xorps xmm0, xmm0
mov word [0x100c4061], ax
push 0x1007c850
movlpd qword [0x100c4054], xmm0
mov byte [0x100c4063], al
mov dword [0x100c4050], eax
mov byte [0x100c4060], al
mov dword [0x100c4064], eax
mov dword [0x100c406c], eax
mov dword [0x100c4070], eax
mov dword [0x100c4068], eax
mov dword [0x100c4084], eax
mov dword [0x100c4088], eax
mov dword [0x100c407c], eax
mov dword [0x100c4080], eax
mov dword [0x100c4074], eax
mov dword [0x100c4078], eax
call fcn.1005547f
add esp, 4
push 0x100c40a4
call fcn.10055622
add esp, 4
jmp 0x100515d3
push 0x100c40a4
call fcn.1005566c
add esp, 4
cmp dword [0x100c40a4], 0xffffffff
jne 0x1005167c
xor eax, eax
mov dword [0x100c405c], 0
xorps xmm0, xmm0
mov word [0x100c4061], ax
push 0x1007c850
movlpd qword [0x100c4054], xmm0
mov byte [0x100c4063], al
mov dword [0x100c4050], eax
mov byte [0x100c4060], al
mov dword [0x100c4064], eax
mov dword [0x100c406c], eax
mov dword [0x100c4070], eax
mov dword [0x100c4068], eax
mov dword [0x100c4084], eax
mov dword [0x100c4088], eax
mov dword [0x100c407c], eax
mov dword [0x100c4080], eax
mov dword [0x100c4074], eax
mov dword [0x100c4078], eax
call fcn.1005547f
add esp, 4
push 0x100c40a4
call fcn.10055622
add esp, 4
jmp 0x1005167c
call fcn.10059ddf
int3