Function at 0x1001b360
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
mov eax, dword [0x1021b040]
xor eax, esp
mov dword [esp + 0xa4], eax
push esi
mov esi, dword [0x1021e014]
mov eax, esi
shr eax, 0x1f
push edi
movd xmm0, esi
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x10214fb0]
mov eax, 0x30
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x1021225c]
divss xmm0, dword [0x10212294]
cvttss2si edi, xmm0
cmp edi, eax
cmovg edi, eax
mov eax, 0x51eb851f
mov ecx, edi
mov dword [esp + 0x10], edi
shl ecx, 4
sub ecx, edi
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, 0x578
mov dword [esp + 0x24], eax
mov edx, 0x28
mov eax, dword [0x1021e018]
sbb ecx, ecx
and ecx, 0xfffffffb
add ecx, 0x41
cmp eax, 0x320
mov dword [esp + 8], ecx
mov ecx, 0x1c
cmovae ecx, edx
mov dword [esp + 0x14], ecx
cmp esi, 0x500
jne 0x1001b426
cmp eax, 0x400
jne 0x1001b426
mov dword [esp + 8], 0x5f
mov dword [esp + 0x14], 0x2d
xor eax, eax
mov dword [0x1021bad4], 0
mov dword [0x1021badc], 0
mov dword [esp + 0xc], eax
mov ecx, eax
call fcn.100116a0
test eax, eax
je 0x1001b7de
mov esi, dword [esp + 0xc]
mov ecx, esi
call fcn.10011720
test eax, eax
je 0x1001b7de
mov ecx, esi
call fcn.100117a0
mov ecx, dword [0x1021d058]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x2c]
push esi
push eax
call dword [0x1021cda4]
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x78]
add ecx, 8
push ecx
push 0x102120b4
push eax
call fcn.1000f2e0
add esp, 0xc
mov dword [esp + 0x60], 0
lea eax, [esp + 0x78]
xorps xmm0, xmm0
movaps xmmword [esp + 0x50], xmm0
push 9
push eax
lea eax, [esp + 0x58]
push eax
call fcn.1004b550
lea ecx, [esp + 0x5c]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001b4c4
sub ecx, edx
cmp ecx, 9
jb 0x1001b4f2
lea ecx, [esp + 0x50]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x1001b4d7
mov ax, word [0x102120b8]
mov word [ecx], ax
mov al, byte [0x102120ba]
mov byte [ecx + 2], al
mov eax, dword [0x1021e014]
shr eax, 1
push 0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
test byte [esp + 0x10], 1
addsd xmm0, qword [eax*8 + 0x10214fb0]
mov eax, dword [esp + 0x18]
cvtpd2ps xmm1, xmm0
jne 0x1001b674
mov ecx, dword [0x1021bad4]
lea edx, [esp + 0x34]
add ecx, 0x12
movss dword [esp + 0x24], xmm1
add ecx, edi
add eax, 2
add eax, ecx
mov dword [esp + 0x20], ecx
mov dword [0x1021bad4], ecx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x38], ecx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm1, xmm0
cvttss2si esi, xmm1
mov dword [esp + 0x1c], esi
mov dword [esp + 0x34], esi
lea eax, [esi + edi]
add edi, ecx
mov dword [esp + 0x3c], eax
mov eax, dword [0x1021e06c]
mov dword [esp + 0x40], edi
mov ecx, dword [eax]
push ecx
mov dword [esp], 0
push 0xff070707
push 1
push edx
push 1
push eax
call dword [ecx + 0xac]
movd xmm0, dword [esp + 0x10]
movd xmm2, dword [esp + 8]
cvtdq2ps xmm0, xmm0
push 0xffcc0000
sub esp, 8
movd xmm1, esi
cvtdq2ps xmm2, xmm2
mov dword [esp + 4], 0x3f800000
cvtdq2ps xmm1, xmm1
movaps xmm3, xmm0
movss dword [esp], xmm0
call fcn.10018120
mov eax, dword [0x1021cd88]
add eax, dword [0x1021d058]
push 0
push eax
call fcn.1003af70
movzx ecx, al
call fcn.10011620
mov ecx, dword [esp + 0x14]
mov esi, eax
call fcn.10011620
mov edx, dword [esp + 0x10]
cmp eax, esi
mov esi, dword [esp + 0x20]
mov ecx, esi
sete al
movzx eax, al
push eax
push dword [esp + 0x18]
mov eax, dword [esp + 0x34]
sub ecx, eax
push dword [esp + 0x20]
dec ecx
push eax
call fcn.10019b80
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x68]
push eax
push 1
push dword [0x1021ce40]
push dword [0x1021d048]
push 0xffffffffffffffff
push 1
push edi
mov edi, dword [esp + 0x44]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
movss xmm1, dword [esp + 0x54]
sub ecx, eax
mov eax, dword [esp + 0x48]
add eax, 2
add eax, ecx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm1, xmm0
cvttss2si eax, xmm1
push eax
call fcn.10018eb0
mov edx, dword [esp + 0x40]
lea ecx, [esi + 1]
push 0
lea edx, [edx + 1]
jmp 0x1001b7cd
mov ecx, dword [0x1021badc]
add ecx, 0x12
mov edx, dword [esp + 0x14]
add ecx, edi
movss dword [esp + 0x20], xmm1
add eax, ecx
mov dword [esp + 0x24], ecx
mov dword [0x1021badc], ecx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movd xmm1, dword [esp + 0xc]
cvtdq2ps xmm1, xmm1
cvttss2si edi, xmm0
cvttss2si ecx, xmm1
mov esi, edi
sub esi, edx
mov dword [esp + 0x1c], esi
movd xmm2, esi
cvtdq2ps xmm2, xmm2
mov dword [esp + 0x48], ecx
cvttss2si eax, xmm2
mov dword [esp + 0x44], eax
add eax, edx
mov dword [esp + 0x4c], eax
lea eax, [ecx + edx]
mov dword [esp + 0x50], eax
lea edx, [esp + 0x44]
mov eax, dword [0x1021e06c]
mov ecx, dword [eax]
push ecx
mov dword [esp], 0
push 0xff070707
push 1
push edx
push 1
push eax
call dword [ecx + 0xac]
movd xmm0, dword [esp + 0x10]
movd xmm2, dword [esp + 8]
cvtdq2ps xmm0, xmm0
push 0xff0066ff
sub esp, 8
movd xmm1, esi
cvtdq2ps xmm2, xmm2
mov dword [esp + 4], 0x3f800000
cvtdq2ps xmm1, xmm1
movaps xmm3, xmm0
movss dword [esp], xmm0
call fcn.10018120
mov eax, dword [0x1021cd88]
add eax, dword [0x1021d058]
push 0
push eax
call fcn.1003af70
movzx ecx, al
call fcn.10011620
mov ecx, dword [esp + 0x14]
mov esi, eax
call fcn.10011620
cmp eax, esi
lea ecx, [edi + 1]
mov esi, dword [esp + 0x10]
mov edx, esi
sete al
movzx eax, al
push eax
push dword [esp + 0x18]
push dword [esp + 0x20]
push dword [esp + 0x38]
call fcn.10019b80
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x68]
push eax
push 1
push dword [0x1021ce40]
lea eax, [esi + edi]
push dword [0x1021d048]
push 0xffffffffffffffff
push 1
push eax
mov ecx, dword [esp + 0x54]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
add ecx, dword [esp + 0x48]
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
addss xmm0, dword [esp + 0x50]
cvttss2si eax, xmm0
push eax
call fcn.10018eb0
mov ecx, dword [esp + 0x50]
lea edx, [esi + 1]
push 1
inc ecx
push dword [esp + 0x64]
lea eax, [edi - 2]
push eax
push eax
call fcn.10019de0
add esp, 0x48
mov eax, dword [esp + 0xc]
inc eax
mov dword [esp + 0xc], eax
cmp eax, 0xf
jle 0x1001b440
mov ecx, dword [esp + 0xac]
pop edi
pop esi
xor ecx, esp
call fcn.1003f972
mov esp, ebp
pop ebp
ret