Function at 0x10181190
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 0x10181de9
mov eax, dword [edi + 0x28]
mov dword [esp + 0x10], eax
cmp byte [eax + 0x2a], 0
jne 0x10181de9
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 0x10181526
cmp dword [edx + 4], 0
jne 0x10181526
movss xmm4, dword [edx + 0x38]
ucomiss xmm3, xmm4
lahf
test ah, 0x44
jp 0x10181295
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 0x10181352
mov eax, dword [edx + 0x40]
and eax, 0xc0000
cmp eax, 0x40000
je 0x10181526
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x24]
test cl, cl
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 8]
jns 0x101812d6
mov ecx, eax
call fcn.10165fb0
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 0x10181526
test ecx, ecx
jne 0x10181526
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 0x10181526
comiss xmm3, xmm2
jbe 0x10181320
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.10180070
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 0x101813bb
push ecx
push eax
lea ecx, [esp + 0x12c]
call fcn.10198540
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 0x1018140c
xorps xmm0, xmm0
ucomiss xmm0, dword [edx + 0x38]
lahf
test ah, 0x44
jp 0x101813f3
mov eax, dword [esp + 0x110]
mov eax, dword [eax*4 + 0x102fabe4]
mov dword [esp + 0xc], eax
jmp 0x10181479
mov eax, dword [edx + 0x40]
and eax, 0xc0000
cmp eax, 0x40000
je 0x10181479
mov dword [esp + 0xc], 0x10180e40
jmp 0x10181479
cmp dword [esp + 0x120], 0x8000
jg 0x10181471
mov edx, dword [esp + 0x110]
test edx, edx
jne 0x10181464
cmp dword [eax + 0x10], edx
jne 0x10181464
mov eax, dword [ecx]
lea edx, [esp + 0x34]
push edx
mov eax, dword [eax + 0x1c]
call eax
test eax, eax
je 0x1018145a
mov eax, dword [eax + 0x14]
cmp eax, 2
jne 0x1018144b
mov dword [esp + 0xc], 0x10180940
jmp 0x10181479
cmp eax, 5
jne 0x1018145a
mov dword [esp + 0xc], 0x10180a30
jmp 0x10181479
mov dword [esp + 0xc], 0x10180870
jmp 0x10181479
mov eax, dword [edx*4 + 0x102fabf4]
mov dword [esp + 0xc], eax
jmp 0x10181479
mov dword [esp + 0xc], 0x10180ce0
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 0x101814b8
mov ecx, edx
call fcn.10165fb0
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 0x10181490
lea ecx, [esp + 0x57c]
call fcn.101874b0
jmp 0x10181ddd
sub ecx, 0
je 0x10181be0
sub ecx, 1
je 0x10181542
sub ecx, 1
je 0x10181a6b
jmp 0x10181ddd
cmp esi, 2
jne 0x10181a6b
cmp dword [edx + 4], 0
je 0x10181a6b
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.1017ef90
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
call fcn.10194c70
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.10194c70
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.10194c70
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.10154270
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x18]
push esi
call fcn.10153b00
movss xmm2, dword [esi + 0xc]
lea ecx, [esp + 0x18]
movss xmm1, dword [esi + 8]
call fcn.101551e0
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 0x101819c2
push esi
lea ecx, [esp + 0x3c]
call fcn.1014d750
mov edx, dword [esp + 0x3c]
or esi, 0xffffffff
test edx, edx
je 0x10181727
lea eax, [edx + 4]
mov ecx, esi
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x10181727
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 0x1018177d
mov ecx, dword [edi + 0x30]
push 0
test ecx, ecx
je 0x10181764
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 0x1018177d
push ecx
push 0
push 0
lea eax, [esp + 0x48]
mov ecx, edi
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.10183080
mov eax, dword [esp + 0xbc]
cmp dword [eax + 0x24], 0
je 0x101817c3
mov ecx, dword [edi + 0x30]
push 0
test ecx, ecx
je 0x101817aa
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 0x101817c3
push ecx
push 0
push 0
lea eax, [esp + 0x48]
mov ecx, edi
push eax
lea eax, [esp + 0xd0]
push eax
call fcn.10183080
movss xmm4, dword [esp + 0x8c]
movss xmm0, dword [esp + 0x90]
ucomiss xmm4, xmm0
lahf
test ah, 0x44
jp 0x10181900
test byte [esp + 0x80], 1
je 0x10181800
mov eax, dword [esp + 0x78]
and eax, 0xfff7ffff
or eax, 0x40000
mov dword [esp + 0x78], eax
jmp 0x10181808
and dword [esp + 0x78], 0xfff3ffff
mov ecx, dword [edi + 0x30]
test ecx, ecx
je 0x1018182c
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 0x1018184a
push 0
lea eax, [esp + 0x3c]
mov ecx, edi
push eax
push dword [esp + 0x8c]
push dword [esp + 0x94]
push 0
call fcn.10181190
lea ecx, [esp + 0x38]
call fcn.1014d850
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x1018186e
mov edx, esi
lea eax, [ecx + 4]
lock xadd dword [eax], edx
cmp edx, 1
jne 0x1018186e
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esp + 0x84]
mov dword [esp + 0x1c], 0
call fcn.102aff7a
mov ecx, dword [esp + 0xc0]
add esp, 4
test ecx, ecx
je 0x101818a3
mov edx, esi
lea eax, [ecx + 4]
lock xadd dword [eax], edx
cmp edx, 1
jne 0x101818a3
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0xbc], 0
test ecx, ecx
je 0x101818cc
mov edx, esi
lea eax, [ecx + 4]
lock xadd dword [eax], edx
cmp edx, 1
jne 0x101818cc
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0xb0], 0
test ecx, ecx
je 0x10181ddd
lea eax, [ecx + 4]
lock xadd dword [eax], esi
cmp esi, 1
jne 0x10181ddd
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10181ddd
xor esi, esi
cmp dword [esp + 0x88], esi
jle 0x101819b1
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 0x10181978
mov eax, dword [ecx]
lea edx, [esp + 0x38]
push edx
lea edx, [esp + 0xcc]
push edx
push edi
call dword [eax + 0x28]
jmp 0x10181990
push 0
push 0
lea eax, [esp + 0x40]
mov ecx, edi
push eax
lea eax, [esp + 0xd4]
push eax
call fcn.10182140
inc esi
cmp esi, dword [esp + 0x88]
jge 0x101819b1
movss xmm0, dword [esp + 0x90]
movss xmm4, dword [esp + 0x8c]
jmp 0x10181910
lea ecx, [esp + 0x38]
call fcn.1014d850
or esi, 0xffffffff
jmp 0x10181853
mov ecx, dword [esp + 0x18]
or esi, 0xffffffff
test ecx, ecx
je 0x101819e0
lea eax, [ecx + 4]
mov edx, esi
lock xadd dword [eax], edx
cmp edx, 1
jne 0x101819e0
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esp + 0x84]
mov dword [esp + 0x1c], 0
call fcn.102aff7a
mov ecx, dword [esp + 0xc0]
add esp, 4
test ecx, ecx
je 0x10181a15
lea eax, [ecx + 4]
mov edx, esi
lock xadd dword [eax], edx
cmp edx, 1
jne 0x10181a15
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0xbc], 0
test ecx, ecx
je 0x10181a3e
lea eax, [ecx + 4]
mov edx, esi
lock xadd dword [eax], edx
cmp edx, 1
jne 0x10181a3e
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0xb0], 0
test ecx, ecx
je 0x10181a67
lea eax, [ecx + 4]
mov edx, esi
lock xadd dword [eax], edx
cmp edx, 1
jne 0x10181a67
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [esp + 0x30]
dec esi
mov dword [esp + 0x34], esi
call fcn.10194c70
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.1014d750
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 0x10181bac
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.10194b30
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.101534a0
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.101551e0
mov ecx, dword [edi + 0x30]
test ecx, ecx
je 0x10181b72
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 0x10181b8a
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.10183080
lea ecx, [esp + 0x18]
call fcn.10154990
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 0x10181ae0
lea ecx, [esp + 0x38]
call fcn.1014d850
mov edx, dword [esp + 0x18]
test edx, edx
je 0x10181ddd
lea eax, [edx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x10181ddd
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 4]
jmp 0x10181ddd
push edx
lea ecx, [esp + 0x3c]
call fcn.1014d750
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 0x10181d30
lea ecx, [esp + 0x18]
call fcn.10154270
movss xmm1, dword [esp + 0x14]
xorps xmm2, xmm2
comiss xmm1, xmm2
jbe 0x10181c7d
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.10156140
xor edx, edx
mov dword [esp + 0x10], edx
test esi, esi
je 0x10181d07
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.10166200
mov ecx, dword [edi + 0x30]
lea eax, [esi - 1]
cmp eax, edx
sete byte [esp + 0x23]
test ecx, ecx
je 0x10181cda
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 0x10181cfa
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.10183080
mov edx, dword [esp + 0x10]
inc edx
mov dword [esp + 0x10], edx
cmp edx, esi
jb 0x10181c90
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x10181dd4
lea eax, [ecx + 4]
or edx, 0xffffffff
lock xadd dword [eax], edx
cmp edx, 1
jne 0x10181dd4
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10181dd4
xor ecx, ecx
mov dword [esp + 0x10], ecx
test esi, esi
je 0x10181dd4
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 0x10181d9f
mov eax, dword [ecx]
lea edx, [esp + 0x38]
push edx
lea edx, [esp + 0xcc]
push edx
push edi
call dword [eax + 0x28]
jmp 0x10181db7
push 0
push 0
lea eax, [esp + 0x40]
mov ecx, edi
push eax
lea eax, [esp + 0xd4]
push eax
call fcn.10182140
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 0x10181d40
lea ecx, [esp + 0x38]
call fcn.1014d850
lea ecx, [esp + 0x124]
call fcn.10181e70
mov ecx, dword [esp + 0xb44]
pop edi
pop esi
xor ecx, esp
call fcn.102af9d5
mov esp, ebp
pop ebp
ret 0x14