Function at 0x10022840
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010ce5d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x98
mov eax, dword [0x1023eaa4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [0x1030fa10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov ecx, dword [0x1030fa14]
push eax
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
call edx
mov esi, eax
mov dword [ebp - 0x64], esi
test esi, esi
je 0x10022ba0
mov ecx, dword [0x1030fb68]
cmp dword [ecx + esi], 0
jle 0x10022ba0
xor edx, edx
mov dword [ebp - 0x68], edx
nop
mov ecx, dword [0x1030fa14]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov edi, eax
test edi, edi
je 0x10022b90
mov ecx, dword [0x1030fb68]
cmp dword [ecx + edi], 0
jle 0x10022b90
mov ecx, dword [0x1030fb80]
mov eax, dword [ecx + edi]
cmp eax, dword [ecx + esi]
je 0x10022b90
mov eax, dword [0x1030fb88]
mov al, byte [eax + edi]
test al, al
jne 0x10022b90
cmp dword [edi + 0x25b], 0
jne 0x10022b90
push edi
lea eax, [ebp - 0x74]
mov ecx, 0x102f9438
push eax
call fcn.10010350
mov eax, dword [ebp - 0x70]
mov esi, dword [ebp - 0x74]
mov dword [ebp - 4], 0
mov dword [ebp - 0x84], eax
cmp esi, eax
je 0x10022b2d
add esi, 0x930
cmp byte [0x10309a68], 0
je 0x10022968
lea eax, [esi - 0x22c]
mov ecx, 0x1030c078
push eax
push dword [0x10309a6b]
push edi
call fcn.10022080
cmp byte [0x10309a6a], 0
je 0x10022b12
mov ecx, dword [0x1030fa10]
movss xmm0, dword [esi]
movss dword [ebp - 0x60], xmm0
movss xmm0, dword [esi - 0x10]
mov eax, dword [ecx]
movss dword [ebp - 0x78], xmm0
movss xmm0, dword [esi - 0x20]
movss dword [ebp - 0x5c], xmm0
mov eax, dword [eax + 0x94]
call eax
movss xmm7, dword [ebp - 0x5c]
movss xmm4, dword [ebp - 0x78]
movss xmm5, dword [ebp - 0x60]
movups xmm1, xmmword [eax]
movups xmm0, xmmword [eax + 0x20]
movups xmm2, xmmword [eax + 0x10]
movups xmmword [ebp - 0x38], xmm0
movaps xmm6, xmm1
movaps xmm0, xmm1
mulss xmm0, xmm7
shufps xmm6, xmm1, 0x55
mulss xmm6, xmm4
movups xmm3, xmmword [eax + 0x30]
addss xmm6, xmm0
movaps xmm0, xmm1
shufps xmm0, xmm1, 0xaa
mulss xmm0, xmm5
shufps xmm1, xmm1, 0xff
addss xmm6, xmm0
movaps xmm0, xmm2
shufps xmm0, xmm2, 0x55
mulss xmm0, xmm4
addss xmm6, xmm1
movaps xmm1, xmm7
mulss xmm1, xmm2
mulss xmm7, xmm3
addss xmm1, xmm0
movaps xmmword [ebp - 0xa0], xmm6
movaps xmm0, xmm2
shufps xmm0, xmm2, 0xaa
mulss xmm0, xmm5
shufps xmm2, xmm2, 0xff
addss xmm1, xmm0
movaps xmm0, xmm3
shufps xmm0, xmm3, 0x55
mulss xmm0, xmm4
addss xmm1, xmm2
addss xmm7, xmm0
movaps xmm0, xmm3
shufps xmm0, xmm3, 0xaa
mulss xmm0, xmm5
shufps xmm3, xmm3, 0xff
movss dword [ebp - 0x60], xmm1
addss xmm7, xmm0
movss xmm0, dword [0x101189c8]
addss xmm7, xmm3
comiss xmm0, xmm7
movss dword [ebp - 0x5c], xmm7
ja 0x10022b12
mov ecx, dword [0x1030fa10]
lea edx, [ebp - 0x80]
push edx
lea edx, [ebp - 0x7c]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
movss xmm2, dword [0x101186f8]
divss xmm2, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x80]
movaps xmm3, xmmword [ebp - 0xa0]
movss xmm5, dword [0x101186f0]
movss xmm4, dword [ebp - 0x60]
movd xmm0, eax
cdq
mulss xmm3, xmm2
sub eax, edx
sar eax, 1
cvtdq2ps xmm0, xmm0
mulss xmm3, xmm5
push dword [0x10309a73]
mulss xmm4, xmm2
push 0x32
mulss xmm3, xmm0
push 2
movd xmm0, eax
mov eax, ecx
cvtdq2ps xmm0, xmm0
cdq
sub eax, edx
sar eax, 1
addss xmm3, xmm5
mulss xmm4, xmm5
movd xmm1, eax
cvtdq2ps xmm1, xmm1
addss xmm3, xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mulss xmm4, xmm0
addss xmm4, xmm5
subss xmm1, xmm4
cvttss2si eax, xmm1
push eax
cvttss2si eax, xmm3
push eax
call fcn.1003b580
add esp, 0x14
add esi, 0x2b60
lea eax, [esi - 0x930]
cmp eax, dword [ebp - 0x84]
jne 0x10022947
mov esi, dword [ebp - 0x74]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10022b8d
mov ecx, dword [ebp - 0x6c]
mov eax, 0x5e6ea9af
sub ecx, esi
imul ecx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x2b60
mov eax, esi
cmp ecx, 0x1000
jb 0x10022b6e
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10022bbe
push ecx
push esi
call fcn.1005c67b
add esp, 8
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov esi, dword [ebp - 0x64]
mov edx, dword [ebp - 0x68]
inc edx
mov dword [ebp - 0x68], edx
cmp edx, 0x40
jl 0x100228c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1005c76e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.100684ff
int3