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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb40
mov eax, dword [0x1036a00c]
xor eax, esp
mov dword [esp + 0xb3c], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
push edi
and esi, 0xfffffffe
mov dword [esp + 0x28], eax
mov edi, ecx
mov dword [esp + 0x2c], edx
mov ecx, dword [ebp + 8]
cmp ecx, 1
cmovne esi, dword [ebp + 0xc]
mov dword [esp + 0x30], esi
test esi, esi
jle 0x10181d79
mov eax, dword [edi + 0x28]
mov dword [esp + 0x10], eax
cmp byte [eax + 0x2a], 0
jne 0x10181d79
mov dword [esp + 0x134], 0xffffffff
lea eax, [esp + 0x16c]
mov dword [esp + 0x164], eax
xorps xmm0, xmm0
mov eax, dword [edi + 0x20]
xorps xmm3, xmm3
mov dword [esp + 0x13c], 0
mov dword [esp + 0x140], 0
mov dword [esp + 0x138], 0x102fac38
mov dword [esp + 0x168], 0x400
mov dword [esp + 0x56c], 0
mov dword [esp + 0xc], eax
movups xmmword [esp + 0x124], xmm0
cmp ecx, 2
ja 0x101814b6
cmp dword [edx + 4], 0
jne 0x101814b6
movss xmm4, dword [edx + 0x38]
ucomiss xmm3, xmm4
lahf
test ah, 0x44
jp 0x10181225
mov eax, dword [esp + 0x10]
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x110], ecx
mov dword [esp + 0x120], 0x8000
jmp 0x101812e2
mov eax, dword [edx + 0x40]
and eax, 0xc0000
cmp eax, 0x40000
je 0x101814b6
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x24]
test cl, cl
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 8]
jns 0x10181266
mov ecx, eax
call fcn.10165f70
mov edx, dword [esp + 0x2c]
movzx ecx, al
mov eax, dword [esp + 0xc]
mov dword [esp + 0x14], ecx
mov dword [eax + 0x24], ecx
mov ecx, dword [ebp + 8]
test byte [esp + 0x14], 0xc
jne 0x101814b6
test ecx, ecx
jne 0x101814b6
movss xmm2, dword [eax]
movaps xmm0, xmm2
subss xmm0, dword [eax + 0x10]
cvtps2pd xmm0, xmm0
andps xmm0, xmmword [0x103009e0]
cvtpd2ps xmm1, xmm0
movss xmm0, dword [0x10300014]
comiss xmm0, xmm1
jb 0x101814b6
comiss xmm3, xmm2
jbe 0x101812b0
xorps xmm2, xmmword [0x10300a00]
mov eax, dword [esp + 0x10]
mulss xmm2, xmm4
mov dword [esp + 0x11c], eax
mov dword [esp + 0x110], 0
mulss xmm2, dword [0x1030040c]
cvttss2si eax, xmm2
sar eax, 1
mov dword [esp + 0x120], eax
mov eax, dword [edi + 0x20]
push ecx
push edx
push eax
push edi
lea ecx, [esp + 0x588]
mov dword [esp + 0x128], 0
mov dword [esp + 0x124], edx
call fcn.10180000
mov eax, dword [edi + 0x20]
mov ecx, dword [esp + 0x578]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x11c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], 0
cmp byte [eax + 0x29], 0
jne 0x1018134b
push ecx
push eax
lea ecx, [esp + 0x12c]
call fcn.101984d0
mov ecx, dword [esp + 0x574]
mov eax, dword [esp + 0x570]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x114]
mov dword [esp + 0x118], eax
test byte [edx + 0x40], 1
je 0x1018139c
xorps xmm0, xmm0
ucomiss xmm0, dword [edx + 0x38]
lahf
test ah, 0x44
jp 0x10181383
mov eax, dword [esp + 0x110]
mov eax, dword [eax*4 + 0x102fabe4]
mov dword [esp + 0xc], eax
jmp 0x10181409
mov eax, dword [edx + 0x40]
and eax, 0xc0000
cmp eax, 0x40000
je 0x10181409
mov dword [esp + 0xc], 0x10180dd0
jmp 0x10181409
cmp dword [esp + 0x120], 0x8000
jg 0x10181401
mov edx, dword [esp + 0x110]
test edx, edx
jne 0x101813f4
cmp dword [eax + 0x10], edx
jne 0x101813f4
mov eax, dword [ecx]
lea edx, [esp + 0x34]
push edx
mov eax, dword [eax + 0x1c]
call eax
test eax, eax
je 0x101813ea
mov eax, dword [eax + 0x14]
cmp eax, 2
jne 0x101813db
mov dword [esp + 0xc], 0x101808d0
jmp 0x10181409
cmp eax, 5
jne 0x101813ea
mov dword [esp + 0xc], 0x101809c0
jmp 0x10181409
mov dword [esp + 0xc], 0x10180800
jmp 0x10181409
mov eax, dword [edx*4 + 0x102fabf4]
mov dword [esp + 0xc], eax
jmp 0x10181409
mov dword [esp + 0xc], 0x10180c70
mov ecx, dword [esp + 0x28]
xor eax, eax
cmp dword [ebp + 8], 2
sete al
mov dword [esp + 0x2c], eax
mov eax, 0x20
nop
mov edx, dword [esp + 0x10]
cmp esi, 0x20
mov edi, esi
cmovg edi, eax
mov eax, dword [edx + 0x24]
test al, al
jns 0x10181448
mov ecx, edx
call fcn.10165f70
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
movzx eax, al
mov dword [edx + 0x24], eax
push edi
push ecx
and eax, 0xf
lea ecx, [esp + 0xa48]
push ecx
push edx
mov eax, dword [eax*4 + 0x102e38a0]
call eax
push dword [esp + 0x24]
lea eax, [esp + 0xa54]
push edi
push eax
lea eax, [esp + 0x12c]
push eax
call dword [esp + 0x2c]
mov edx, dword [esp + 0x4c]
mov eax, edi
mov ecx, dword [esp + 0x48]
sub eax, edx
add esp, 0x20
lea ecx, [ecx + eax*8]
mov eax, esi
sub eax, edi
mov dword [esp + 0x28], ecx
lea esi, [eax + edx]
cmove esi, eax
mov eax, 0x20
test esi, esi
jne 0x10181420
lea ecx, [esp + 0x57c]
call fcn.10187440
jmp 0x10181d6d
sub ecx, 0
je 0x10181b70
sub ecx, 1
je 0x101814d2
sub ecx, 1
je 0x101819fb
jmp 0x10181d6d
cmp esi, 2
jne 0x101819fb
cmp dword [edx + 4], 0
je 0x101819fb
mov eax, dword [edx + 0x40]
lea ecx, [esp + 0xe8]
movss xmm3, dword [0x10300128]
shr eax, 0x16
and eax, 3
push eax
push edx
call fcn.1017ef20
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
call fcn.10194c00
mov dword [esp + 0xa4], eax
lea ecx, [esp + 0xae]
mov dword [esp + 0xa8], 0xffffffff
mov al, 2
mov word [esp + 0xac], 0
xchg byte [ecx], al
mov byte [esp + 0xaf], 0
call fcn.10194c00
mov dword [esp + 0xb0], eax
lea ecx, [esp + 0xba]
mov dword [esp + 0xb4], 0xffffffff
mov al, 2
mov word [esp + 0xb8], 0
xchg byte [ecx], al
mov byte [esp + 0xbb], 0
call fcn.10194c00
mov dword [esp + 0xbc], eax
lea ecx, [esp + 0xc6]
mov dword [esp + 0xc0], 0xffffffff
mov al, 2
mov word [esp + 0xc4], 0
xchg byte [ecx], al
lea ecx, [esp + 0x18]
mov byte [esp + 0xc7], 0
mov dword [esp + 0x8c], 0x3f800000
mov dword [esp + 0x90], 0x3f800000
call fcn.10154230
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x18]
push esi
call fcn.10153ac0
movss xmm2, dword [esi + 0xc]
lea ecx, [esp + 0x18]
movss xmm1, dword [esi + 8]
call fcn.101551a0
mov esi, dword [edi + 0x28]
cmp byte [esi + 0x29], 0
lea eax, [esi + 0x14]
cmove esi, eax
movd xmm0, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
cvtdq2ps xmm0, xmm0
mov esi, dword [esp + 0x2c]
movss dword [esp + 0xd8], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0xdc], xmm0
movd xmm0, ecx
mov ecx, dword [esi + 4]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0xe0], xmm0
movd xmm0, edx
lea edx, [esp + 0xd8]
push edx
push dword [edi + 0x20]
cvtdq2ps xmm0, xmm0
lea edx, [esp + 0xf0]
push edx
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x90]
movss dword [esp + 0xf4], xmm0
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 0x18]
call eax
test al, al
je 0x10181952
push esi
lea ecx, [esp + 0x3c]
call fcn.1014d710
mov edx, dword [esp + 0x3c]
or esi, 0xffffffff
test edx, edx
je 0x101816b7
lea eax, [edx + 4]
mov ecx, esi
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x101816b7
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 4]
mov eax, dword [esp + 0xb0]
and dword [esp + 0x78], 0xff3fffff
mov dword [esp + 0x3c], 0
cmp dword [eax + 0x24], 0
je 0x1018170d
mov ecx, dword [edi + 0x30]
push 0
test ecx, ecx
je 0x101816f4
mov eax, dword [ecx]
lea edx, [esp + 0x3c]
push 0
push edx
lea edx, [esp + 0xbc]
push edx
push edi
call dword [eax + 0x38]
jmp 0x1018170d
push ecx
push 0
push 0
lea eax, [esp + 0x48]
mov ecx, edi
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.10183010
mov eax, dword [esp + 0xbc]
cmp dword [eax + 0x24], 0
je 0x10181753
mov ecx, dword [edi + 0x30]
push 0
test ecx, ecx
je 0x1018173a
mov eax, dword [ecx]
lea edx, [esp + 0x3c]
push 0
push edx
lea edx, [esp + 0xc8]
push edx
push edi
call dword [eax + 0x38]
jmp 0x10181753
push ecx
push 0
push 0
lea eax, [esp + 0x48]
mov ecx, edi
push eax
lea eax, [esp + 0xd0]
push eax
call fcn.10183010
movss xmm4, dword [esp + 0x8c]
movss xmm0, dword [esp + 0x90]
ucomiss xmm4, xmm0
lahf
test ah, 0x44
jp 0x10181890
test byte [esp + 0x80], 1
je 0x10181790
mov eax, dword [esp + 0x78]
and eax, 0xfff7ffff
or eax, 0x40000
mov dword [esp + 0x78], eax
jmp 0x10181798
and dword [esp + 0x78], 0xfff3ffff
mov ecx, dword [edi + 0x30]
test ecx, ecx
je 0x101817bc
mov eax, dword [ecx]
lea edx, [esp + 0x38]
push edx
push dword [esp + 0x88]
push dword [esp + 0x90]
push 0
push edi
call dword [eax + 0x24]
jmp 0x101817da
push 0
lea eax, [esp + 0x3c]
mov ecx, edi
push eax
push dword [esp + 0x8c]
push dword [esp + 0x94]
push 0
call fcn.10181120
lea ecx, [esp + 0x38]
call fcn.1014d810
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x101817fe
mov edx, esi
lea eax, [ecx + 4]
lock xadd dword [eax], edx
cmp edx, 1
jne 0x101817fe
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esp + 0x84]
mov dword [esp + 0x1c], 0
call fcn.102afeda
mov ecx, dword [esp + 0xc0]
add esp, 4
test ecx, ecx
je 0x10181833
mov edx, esi
lea eax, [ecx + 4]
lock xadd dword [eax], edx
cmp edx, 1
jne 0x10181833
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0xbc], 0
test ecx, ecx
je 0x1018185c
mov edx, esi
lea eax, [ecx + 4]
lock xadd dword [eax], edx
cmp edx, 1
jne 0x1018185c
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0xb0], 0
test ecx, ecx
je 0x10181d6d
lea eax, [ecx + 4]
lock xadd dword [eax], esi
cmp esi, 1
jne 0x10181d6d
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10181d6d
xor esi, esi
cmp dword [esp + 0x88], esi
jle 0x10181941
nop
mov eax, dword [esp + 0x84]
mov ecx, dword [edi + 0x30]
movss xmm3, dword [eax + esi*8 + 4]
movss xmm2, dword [eax + esi*8]
movaps xmm1, xmm3
subss xmm1, xmm0
addss xmm3, xmm0
movaps xmm0, xmm2
subss xmm0, xmm4
addss xmm2, xmm4
movss dword [esp + 0xcc], xmm1
movss dword [esp + 0xd4], xmm3
movss dword [esp + 0xc8], xmm0
movss dword [esp + 0xd0], xmm2
test ecx, ecx
je 0x10181908
mov eax, dword [ecx]
lea edx, [esp + 0x38]
push edx
lea edx, [esp + 0xcc]
push edx
push edi
call dword [eax + 0x28]
jmp 0x10181920
push 0
push 0
lea eax, [esp + 0x40]
mov ecx, edi
push eax
lea eax, [esp + 0xd4]
push eax
call fcn.101820d0
inc esi
cmp esi, dword [esp + 0x88]
jge 0x10181941
movss xmm0, dword [esp + 0x90]
movss xmm4, dword [esp + 0x8c]
jmp 0x101818a0
lea ecx, [esp + 0x38]
call fcn.1014d810
or esi, 0xffffffff
jmp 0x101817e3
mov ecx, dword [esp + 0x18]
or esi, 0xffffffff
test ecx, ecx
je 0x10181970
lea eax, [ecx + 4]
mov edx, esi
lock xadd dword [eax], edx
cmp edx, 1
jne 0x10181970
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esp + 0x84]
mov dword [esp + 0x1c], 0
call fcn.102afeda
mov ecx, dword [esp + 0xc0]
add esp, 4
test ecx, ecx
je 0x101819a5
lea eax, [ecx + 4]
mov edx, esi
lock xadd dword [eax], edx
cmp edx, 1
jne 0x101819a5
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0xbc], 0
test ecx, ecx
je 0x101819ce
lea eax, [ecx + 4]
mov edx, esi
lock xadd dword [eax], edx
cmp edx, 1
jne 0x101819ce
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0xb0], 0
test ecx, ecx
je 0x101819f7
lea eax, [ecx + 4]
mov edx, esi
lock xadd dword [eax], edx
cmp edx, 1
jne 0x101819f7
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [esp + 0x30]
dec esi
mov dword [esp + 0x34], esi
call fcn.10194c00
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x22]
mov dword [esp + 0x1c], 0xffffffff
mov al, 2
mov word [esp + 0x20], 0
xchg byte [ecx], al
push dword [esp + 0x2c]
lea ecx, [esp + 0x3c]
call fcn.1014d710
mov eax, dword [esp + 0x78]
and eax, 0xff7fffff
mov byte [esp + 0x23], 1
or eax, 0x400000
mov dword [esp + 0x10], 0
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 8]
dec eax
neg eax
sbb eax, eax
add eax, 2
mov dword [ebp + 8], eax
test esi, esi
je 0x10181b3c
mov esi, dword [esp + 0x28]
shl eax, 3
add esi, 4
mov dword [esp + 0xc], eax
movss xmm0, dword [esi - 4]
lea eax, [esp + 0x18]
push 0
movss dword [esp + 0x30], xmm0
lea ecx, [esp + 0x18]
movss xmm0, dword [esi]
push 0
push eax
movss dword [esp + 0x3c], xmm0
call fcn.10194ac0
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push 0
xorps xmm2, xmm2
mov eax, dword [eax + 0x28]
mov dword [esp + 0x20], eax
call fcn.10153460
movss xmm0, dword [esp + 0x2c]
lea ecx, [esp + 0x22]
movss dword [eax], xmm0
movss xmm0, dword [esp + 0x30]
movss dword [eax + 4], xmm0
mov al, 2
mov byte [esp + 0x21], 0
xchg byte [ecx], al
movss xmm2, dword [esi + 8]
lea ecx, [esp + 0x18]
movss xmm1, dword [esi + 4]
call fcn.101551a0
mov ecx, dword [edi + 0x30]
test ecx, ecx
je 0x10181b02
mov eax, dword [ecx]
lea edx, [esp + 0x38]
push 1
push 0
push edx
lea edx, [esp + 0x24]
push edx
push edi
call dword [eax + 0x38]
jmp 0x10181b1a
push 0
push ecx
push 1
push 0
lea eax, [esp + 0x48]
mov ecx, edi
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.10183010
lea ecx, [esp + 0x18]
call fcn.10154950
mov eax, dword [esp + 0x10]
add eax, dword [ebp + 8]
add esi, dword [esp + 0xc]
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x34]
jb 0x10181a70
lea ecx, [esp + 0x38]
call fcn.1014d810
mov edx, dword [esp + 0x18]
test edx, edx
je 0x10181d6d
lea eax, [edx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x10181d6d
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 4]
jmp 0x10181d6d
push edx
lea ecx, [esp + 0x3c]
call fcn.1014d710
movss xmm3, dword [esp + 0x70]
mov eax, dword [esp + 0x78]
movaps xmm2, xmm3
mulss xmm2, dword [0x103000e8]
and eax, 0xff3fffff
mov dword [esp + 0x78], eax
and eax, 0xc0000
movss dword [esp + 0x34], xmm3
movss dword [esp + 0x14], xmm2
cmp eax, 0x40000
jne 0x10181cc0
lea ecx, [esp + 0x18]
call fcn.10154230
movss xmm1, dword [esp + 0x14]
xorps xmm2, xmm2
comiss xmm1, xmm2
jbe 0x10181c0d
xorps xmm0, xmm0
lea eax, [esp + 0xd8]
subss xmm0, xmm1
addss xmm1, xmm2
push 0
push eax
lea ecx, [esp + 0x20]
movss dword [esp + 0xe0], xmm0
movss dword [esp + 0xe4], xmm0
movss dword [esp + 0xe8], xmm1
movss dword [esp + 0xec], xmm1
call fcn.10156100
xor edx, edx
mov dword [esp + 0x10], edx
test esi, esi
je 0x10181c97
nop dword [eax + eax]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0xe8]
movss xmm2, dword [eax + edx*8 + 4]
movss xmm1, dword [eax + edx*8]
call fcn.101661c0
mov ecx, dword [edi + 0x30]
lea eax, [esi - 1]
cmp eax, edx
sete byte [esp + 0x23]
test ecx, ecx
je 0x10181c6a
push dword [esp + 0x23]
mov eax, dword [ecx]
lea edx, [esp + 0xec]
push edx
lea edx, [esp + 0x40]
push edx
lea edx, [esp + 0x24]
push edx
push edi
call dword [eax + 0x38]
jmp 0x10181c8a
push 0
push ecx
push dword [esp + 0x2b]
lea eax, [esp + 0xf4]
mov ecx, edi
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.10183010
mov edx, dword [esp + 0x10]
inc edx
mov dword [esp + 0x10], edx
cmp edx, esi
jb 0x10181c20
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x10181d64
lea eax, [ecx + 4]
or edx, 0xffffffff
lock xadd dword [eax], edx
cmp edx, 1
jne 0x10181d64
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10181d64
xor ecx, ecx
mov dword [esp + 0x10], ecx
test esi, esi
je 0x10181d64
nop
mov eax, dword [esp + 0x28]
movss xmm1, dword [eax + ecx*8]
movss xmm0, dword [eax + ecx*8 + 4]
subss xmm1, xmm2
mov ecx, dword [edi + 0x30]
subss xmm0, xmm2
movss dword [esp + 0xc8], xmm1
addss xmm1, xmm3
movss dword [esp + 0xcc], xmm0
addss xmm0, xmm3
movss dword [esp + 0xd0], xmm1
movss dword [esp + 0xd4], xmm0
test ecx, ecx
je 0x10181d2f
mov eax, dword [ecx]
lea edx, [esp + 0x38]
push edx
lea edx, [esp + 0xcc]
push edx
push edi
call dword [eax + 0x28]
jmp 0x10181d47
push 0
push 0
lea eax, [esp + 0x40]
mov ecx, edi
push eax
lea eax, [esp + 0xd4]
push eax
call fcn.101820d0
mov ecx, dword [esp + 0x10]
movss xmm2, dword [esp + 0x14]
inc ecx
movss xmm3, dword [esp + 0x34]
mov dword [esp + 0x10], ecx
cmp ecx, esi
jb 0x10181cd0
lea ecx, [esp + 0x38]
call fcn.1014d810
lea ecx, [esp + 0x124]
call fcn.10181e00
mov ecx, dword [esp + 0xb44]
pop edi
pop esi
xor ecx, esp
call fcn.102af935
mov esp, ebp
pop ebp
ret 0x14