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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb40
mov eax, dword [0x1036900c]
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 0x10181c59
mov eax, dword [edi + 0x28]
mov dword [esp + 0x10], eax
cmp byte [eax + 0x2a], 0
jne 0x10181c59
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], 0x102f9bb0
mov dword [esp + 0x168], 0x400
mov dword [esp + 0x56c], 0
mov dword [esp + 0xc], eax
movups xmmword [esp + 0x124], xmm0
cmp ecx, 2
ja 0x10181396
cmp dword [edx + 4], 0
jne 0x10181396
movss xmm4, dword [edx + 0x38]
ucomiss xmm3, xmm4
lahf
test ah, 0x44
jp 0x10181105
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 0x101811c2
mov eax, dword [edx + 0x40]
and eax, 0xc0000
cmp eax, 0x40000
je 0x10181396
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x24]
test cl, cl
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 8]
jns 0x10181146
mov ecx, eax
call fcn.10165e20
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 0x10181396
test ecx, ecx
jne 0x10181396
movss xmm2, dword [eax]
movaps xmm0, xmm2
subss xmm0, dword [eax + 0x10]
cvtps2pd xmm0, xmm0
andps xmm0, xmmword [0x102ff960]
cvtpd2ps xmm1, xmm0
movss xmm0, dword [0x102fef9c]
comiss xmm0, xmm1
jb 0x10181396
comiss xmm3, xmm2
jbe 0x10181190
xorps xmm2, xmmword [0x102ff980]
mov eax, dword [esp + 0x10]
mulss xmm2, xmm4
mov dword [esp + 0x11c], eax
mov dword [esp + 0x110], 0
mulss xmm2, dword [0x102ff394]
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.1017fee0
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 0x1018122b
push ecx
push eax
lea ecx, [esp + 0x12c]
call fcn.101983b0
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 0x1018127c
xorps xmm0, xmm0
ucomiss xmm0, dword [edx + 0x38]
lahf
test ah, 0x44
jp 0x10181263
mov eax, dword [esp + 0x110]
mov eax, dword [eax*4 + 0x102f9b5c]
mov dword [esp + 0xc], eax
jmp 0x101812e9
mov eax, dword [edx + 0x40]
and eax, 0xc0000
cmp eax, 0x40000
je 0x101812e9
mov dword [esp + 0xc], 0x10180cb0
jmp 0x101812e9
cmp dword [esp + 0x120], 0x8000
jg 0x101812e1
mov edx, dword [esp + 0x110]
test edx, edx
jne 0x101812d4
cmp dword [eax + 0x10], edx
jne 0x101812d4
mov eax, dword [ecx]
lea edx, [esp + 0x34]
push edx
mov eax, dword [eax + 0x1c]
call eax
test eax, eax
je 0x101812ca
mov eax, dword [eax + 0x14]
cmp eax, 2
jne 0x101812bb
mov dword [esp + 0xc], 0x101807b0
jmp 0x101812e9
cmp eax, 5
jne 0x101812ca
mov dword [esp + 0xc], 0x101808a0
jmp 0x101812e9
mov dword [esp + 0xc], 0x101806e0
jmp 0x101812e9
mov eax, dword [edx*4 + 0x102f9b6c]
mov dword [esp + 0xc], eax
jmp 0x101812e9
mov dword [esp + 0xc], 0x10180b50
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 0x10181328
mov ecx, edx
call fcn.10165e20
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 + 0x102e2820]
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 0x10181300
lea ecx, [esp + 0x57c]
call fcn.10187320
jmp 0x10181c4d
sub ecx, 0
je 0x10181a50
sub ecx, 1
je 0x101813b2
sub ecx, 1
je 0x101818db
jmp 0x10181c4d
cmp esi, 2
jne 0x101818db
cmp dword [edx + 4], 0
je 0x101818db
mov eax, dword [edx + 0x40]
lea ecx, [esp + 0xe8]
movss xmm3, dword [0x102ff0b0]
shr eax, 0x16
and eax, 3
push eax
push edx
call fcn.1017ee00
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
call fcn.10194ae0
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.10194ae0
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.10194ae0
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.101540d0
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x18]
push esi
call fcn.10153960
movss xmm2, dword [esi + 0xc]
lea ecx, [esp + 0x18]
movss xmm1, dword [esi + 8]
call fcn.10155040
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 0x10181832
push esi
lea ecx, [esp + 0x3c]
call fcn.1014d5a0
mov edx, dword [esp + 0x3c]
or esi, 0xffffffff
test edx, edx
je 0x10181597
lea eax, [edx + 4]
mov ecx, esi
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x10181597
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 0x101815ed
mov ecx, dword [edi + 0x30]
push 0
test ecx, ecx
je 0x101815d4
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 0x101815ed
push ecx
push 0
push 0
lea eax, [esp + 0x48]
mov ecx, edi
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.10182ef0
mov eax, dword [esp + 0xbc]
cmp dword [eax + 0x24], 0
je 0x10181633
mov ecx, dword [edi + 0x30]
push 0
test ecx, ecx
je 0x1018161a
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 0x10181633
push ecx
push 0
push 0
lea eax, [esp + 0x48]
mov ecx, edi
push eax
lea eax, [esp + 0xd0]
push eax
call fcn.10182ef0
movss xmm4, dword [esp + 0x8c]
movss xmm0, dword [esp + 0x90]
ucomiss xmm4, xmm0
lahf
test ah, 0x44
jp 0x10181770
test byte [esp + 0x80], 1
je 0x10181670
mov eax, dword [esp + 0x78]
and eax, 0xfff7ffff
or eax, 0x40000
mov dword [esp + 0x78], eax
jmp 0x10181678
and dword [esp + 0x78], 0xfff3ffff
mov ecx, dword [edi + 0x30]
test ecx, ecx
je 0x1018169c
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 0x101816ba
push 0
lea eax, [esp + 0x3c]
mov ecx, edi
push eax
push dword [esp + 0x8c]
push dword [esp + 0x94]
push 0
call fcn.10181000
lea ecx, [esp + 0x38]
call fcn.1014d6a0
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x101816de
mov edx, esi
lea eax, [ecx + 4]
lock xadd dword [eax], edx
cmp edx, 1
jne 0x101816de
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esp + 0x84]
mov dword [esp + 0x1c], 0
call fcn.102afe3a
mov ecx, dword [esp + 0xc0]
add esp, 4
test ecx, ecx
je 0x10181713
mov edx, esi
lea eax, [ecx + 4]
lock xadd dword [eax], edx
cmp edx, 1
jne 0x10181713
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0xbc], 0
test ecx, ecx
je 0x1018173c
mov edx, esi
lea eax, [ecx + 4]
lock xadd dword [eax], edx
cmp edx, 1
jne 0x1018173c
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0xb0], 0
test ecx, ecx
je 0x10181c4d
lea eax, [ecx + 4]
lock xadd dword [eax], esi
cmp esi, 1
jne 0x10181c4d
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10181c4d
xor esi, esi
cmp dword [esp + 0x88], esi
jle 0x10181821
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 0x101817e8
mov eax, dword [ecx]
lea edx, [esp + 0x38]
push edx
lea edx, [esp + 0xcc]
push edx
push edi
call dword [eax + 0x28]
jmp 0x10181800
push 0
push 0
lea eax, [esp + 0x40]
mov ecx, edi
push eax
lea eax, [esp + 0xd4]
push eax
call fcn.10181fb0
inc esi
cmp esi, dword [esp + 0x88]
jge 0x10181821
movss xmm0, dword [esp + 0x90]
movss xmm4, dword [esp + 0x8c]
jmp 0x10181780
lea ecx, [esp + 0x38]
call fcn.1014d6a0
or esi, 0xffffffff
jmp 0x101816c3
mov ecx, dword [esp + 0x18]
or esi, 0xffffffff
test ecx, ecx
je 0x10181850
lea eax, [ecx + 4]
mov edx, esi
lock xadd dword [eax], edx
cmp edx, 1
jne 0x10181850
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esp + 0x84]
mov dword [esp + 0x1c], 0
call fcn.102afe3a
mov ecx, dword [esp + 0xc0]
add esp, 4
test ecx, ecx
je 0x10181885
lea eax, [ecx + 4]
mov edx, esi
lock xadd dword [eax], edx
cmp edx, 1
jne 0x10181885
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0xbc], 0
test ecx, ecx
je 0x101818ae
lea eax, [ecx + 4]
mov edx, esi
lock xadd dword [eax], edx
cmp edx, 1
jne 0x101818ae
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0xb0], 0
test ecx, ecx
je 0x101818d7
lea eax, [ecx + 4]
mov edx, esi
lock xadd dword [eax], edx
cmp edx, 1
jne 0x101818d7
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [esp + 0x30]
dec esi
mov dword [esp + 0x34], esi
call fcn.10194ae0
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.1014d5a0
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 0x10181a1c
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.101949a0
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.10153300
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.10155040
mov ecx, dword [edi + 0x30]
test ecx, ecx
je 0x101819e2
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 0x101819fa
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.10182ef0
lea ecx, [esp + 0x18]
call fcn.101547f0
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 0x10181950
lea ecx, [esp + 0x38]
call fcn.1014d6a0
mov edx, dword [esp + 0x18]
test edx, edx
je 0x10181c4d
lea eax, [edx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x10181c4d
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 4]
jmp 0x10181c4d
push edx
lea ecx, [esp + 0x3c]
call fcn.1014d5a0
movss xmm3, dword [esp + 0x70]
mov eax, dword [esp + 0x78]
movaps xmm2, xmm3
mulss xmm2, dword [0x102ff070]
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 0x10181ba0
lea ecx, [esp + 0x18]
call fcn.101540d0
movss xmm1, dword [esp + 0x14]
xorps xmm2, xmm2
comiss xmm1, xmm2
jbe 0x10181aed
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.10155fa0
xor edx, edx
mov dword [esp + 0x10], edx
test esi, esi
je 0x10181b77
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.10166070
mov ecx, dword [edi + 0x30]
lea eax, [esi - 1]
cmp eax, edx
sete byte [esp + 0x23]
test ecx, ecx
je 0x10181b4a
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 0x10181b6a
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.10182ef0
mov edx, dword [esp + 0x10]
inc edx
mov dword [esp + 0x10], edx
cmp edx, esi
jb 0x10181b00
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x10181c44
lea eax, [ecx + 4]
or edx, 0xffffffff
lock xadd dword [eax], edx
cmp edx, 1
jne 0x10181c44
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10181c44
xor ecx, ecx
mov dword [esp + 0x10], ecx
test esi, esi
je 0x10181c44
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 0x10181c0f
mov eax, dword [ecx]
lea edx, [esp + 0x38]
push edx
lea edx, [esp + 0xcc]
push edx
push edi
call dword [eax + 0x28]
jmp 0x10181c27
push 0
push 0
lea eax, [esp + 0x40]
mov ecx, edi
push eax
lea eax, [esp + 0xd4]
push eax
call fcn.10181fb0
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 0x10181bb0
lea ecx, [esp + 0x38]
call fcn.1014d6a0
lea ecx, [esp + 0x124]
call fcn.10181ce0
mov ecx, dword [esp + 0xb44]
pop edi
pop esi
xor ecx, esp
call fcn.102af895
mov esp, ebp
pop ebp
ret 0x14