Function at 0x10121130
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101f34e7
mov eax, dword fs:[0]
push eax
sub esp, 0x55c
mov eax, dword [0x1025f074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x51c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x520], eax
lea eax, [edi + 0x40]
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x524], esi
push eax
call fcn.100b66d0
mov eax, dword [edi + 0x2c]
lea edx, [edi + 0x30]
mov dword [ebp - 0x30], 0
xor ecx, ecx
mov dword [ebp - 0x2c], 0
movd xmm0, dword [eax + 8]
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x28], xmm0
movd xmm0, dword [eax + 0xc]
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x24], xmm0
nop word [eax + eax]
movss xmm0, dword [edx]
ucomiss xmm0, dword [ebp + ecx*4 - 0x30]
lahf
test ah, 0x44
jp 0x1012121d
inc ecx
add edx, 4
cmp ecx, 4
jl 0x101211c0
xor ecx, ecx
nop word [eax + eax]
movss xmm0, dword [ebp + ecx - 0x20]
ucomiss xmm0, dword [ebp + ecx - 0x30]
lahf
test ah, 0x44
jp 0x1012121d
add ecx, 4
cmp ecx, 0x10
jl 0x101211e0
mov dword [esi + 4], 0
mov dword [esi], 0
mov ecx, dword [edi + 0x2c]
push 0
push dword [ebp - 0x520]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
call eax
jmp 0x10121430
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x20]
call fcn.100a85f0
mov edx, dword [ebp - 0x24]
sub edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x51c]
push edx
push eax
call fcn.100d0640
mov esi, eax
mov dword [ebp - 0x51c], esi
mov dword [ebp - 4], 1
or ecx, 0xffffffff
test esi, esi
jne 0x10121263
mov byte [ebp - 0x515], al
jmp 0x10121402
push esi
lea ecx, [ebp - 0x514]
call fcn.100a9d60
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x568]
call fcn.1009f970
mov byte [ebp - 4], 4
movd xmm2, dword [ebp - 0x30]
movss xmm0, dword [ebp - 0x20]
movd xmm1, dword [ebp - 0x2c]
cvtdq2ps xmm2, xmm2
mov ecx, dword [ebp - 0x55c]
cvtdq2ps xmm1, xmm1
xorps xmm2, xmmword [0x10226a70]
xorps xmm1, xmmword [0x10226a70]
addss xmm0, xmm2
movss dword [ebp - 0x20], xmm0
movss xmm0, dword [ebp - 0x1c]
addss xmm0, xmm1
movss dword [ebp - 0x1c], xmm0
movss xmm0, dword [ebp - 0x18]
addss xmm0, xmm2
movss dword [ebp - 0x18], xmm0
movss xmm0, dword [ebp - 0x14]
addss xmm0, xmm1
movss dword [ebp - 0x14], xmm0
test ecx, ecx
je 0x101212f6
lea eax, [ecx + 4]
or edx, 0xffffffff
lock xadd dword [eax], edx
cmp edx, 1
jne 0x101212f6
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, 1
call fcn.100c6d10
movss xmm4, dword [edi + 0x38]
lea edx, [edi + 0x30]
movss xmm6, dword [ebp - 0x18]
movaps xmm1, xmm4
movss xmm5, dword [edx]
movaps xmm0, xmm6
movss xmm7, dword [ebp - 0x20]
subss xmm1, xmm5
movss xmm2, dword [ebp - 0x14]
subss xmm0, xmm7
movss xmm3, dword [ebp - 0x1c]
mov dword [ebp - 0x55c], eax
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jp 0x1012135b
movss xmm1, dword [edi + 0x3c]
movaps xmm0, xmm2
subss xmm1, dword [edi + 0x34]
subss xmm0, xmm3
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jp 0x1012135b
xor ecx, ecx
jmp 0x1012135e
mov ecx, dword [edi + 0x50]
mov eax, dword [ebp - 0x528]
shl ecx, 0x1c
xor ecx, eax
and ecx, 0x30000000
xor eax, ecx
comiss xmm7, xmm6
mov dword [ebp - 0x528], eax
jae 0x101213b4
comiss xmm3, xmm2
jae 0x101213b4
comiss xmm5, xmm4
jae 0x101213b4
movss xmm0, dword [edx + 4]
comiss xmm0, dword [edx + 0xc]
jae 0x101213b4
push 0
lea eax, [ebp - 0x568]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x514]
lea ecx, [ebp - 0x514]
push edx
push dword [edi + 0x2c]
call dword [eax + 0x88]
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x78]
call eax
mov ecx, dword [ebp - 0x520]
push eax
call fcn.1009c7e0
mov eax, dword [ebp - 0x524]
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 0x515], 1
mov dword [eax], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 4], ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x568]
call fcn.1009fb00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x514]
call fcn.100aa0f0
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10121420
lea eax, [esi + 4]
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x10121420
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov al, byte [ebp - 0x515]
mov dword [ebp - 0x51c], 0
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.101b3122
mov esp, ebp
pop ebp
ret 0x14