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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xac8
mov eax, dword [0x1036a00c]
xor eax, esp
mov dword [esp + 0xac4], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0x28]
push esi
mov esi, dword [ebp + 8]
push edi
cmp byte [eax + 0x2a], 0
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x48], edi
mov dword [esp + 0x14], edx
jne 0x10182c1b
mov ecx, dword [ecx + 0x20]
mov dword [esp + 0x4c], ecx
test edx, edx
je 0x101821b6
push edx
push ecx
lea ecx, [esp + 0x160]
call fcn.10166a60
lea eax, [esp + 0x158]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 0x20]
mov dword [esp + 0x44], edx
jmp 0x101821bc
mov edx, ecx
mov dword [esp + 0x44], ecx
xorps xmm0, xmm0
ucomiss xmm0, dword [edi + 0x38]
lahf
test ah, 0x44
jp 0x101821cd
mov cl, 1
jmp 0x101821cf
xor cl, cl
mov eax, dword [edi + 0x40]
shr eax, 0x16
and eax, 3
mov byte [esp + 0x23], cl
mov dword [esp + 0x10], eax
cmp eax, 2
jne 0x101821f8
test cl, cl
mov dword [esp + 0x10], 0
cmovne eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
cmp dword [edi + 4], 0
jne 0x10182b70
cmp dword [edi + 0x10], 0
jne 0x10182b70
cmp dword [edi + 0x18], 0
jne 0x10182b70
mov ecx, dword [edx + 0x24]
test cl, cl
jns 0x10182232
mov ecx, edx
call fcn.10165fb0
mov edx, dword [esp + 0x44]
movzx ecx, al
mov eax, dword [esp + 0x10]
mov dword [edx + 0x24], ecx
shr ecx, 4
test cl, 1
je 0x10182b70
cmp eax, 2
je 0x10182b70
test eax, eax
jne 0x1018226a
movss xmm0, dword [esp + 0x34]
movss xmm1, dword [esp + 0x38]
mov dword [esp + 0x44], 1
movss dword [esp + 0x28], xmm0
jmp 0x1018231b
cmp byte [esp + 0x23], 0
je 0x10182296
movss xmm0, dword [esp + 0x38]
movss dword [esp + 0x40], xmm0
movss xmm0, dword [esp + 0x34]
mov dword [esp + 0x44], 0
movss dword [esp + 0x28], xmm0
jmp 0x10182321
test dword [edi + 0x40], 0x300000
jne 0x10182b70
movss xmm0, dword [0x10300150]
comiss xmm0, dword [edi + 0x3c]
ja 0x10182b70
movss xmm0, dword [edi + 0x38]
lea eax, [esp + 0x34]
push 1
push eax
lea eax, [esp + 0x20]
movss dword [esp + 0x3c], xmm0
push eax
mov ecx, edx
movss dword [esp + 0x44], xmm0
call fcn.10167780
movss xmm0, dword [esp + 0x18]
cvtps2pd xmm0, xmm0
mov dword [esp + 0x44], 2
andps xmm0, xmmword [0x103009e0]
cvtpd2ps xmm2, xmm0
movss xmm0, dword [esp + 0x1c]
cvtps2pd xmm0, xmm0
movss dword [esp + 0x28], xmm2
andps xmm0, xmmword [0x103009e0]
cvtpd2ps xmm1, xmm0
movss dword [esp + 0x34], xmm2
movss dword [esp + 0x38], xmm1
movss dword [esp + 0x40], xmm1
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x14], 0
cmovne esi, dword [esp + 0x24]
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x14], ecx
mov eax, dword [ecx + 0x24]
test al, al
jns 0x1018234c
call fcn.10165fb0
mov ecx, dword [esp + 0x14]
movzx eax, al
mov dword [ecx + 0x24], eax
push 2
and eax, 0xf
lea edx, [esp + 0x84]
push esi
push edx
push ecx
mov eax, dword [eax*4 + 0x102e38a0]
call eax
movss xmm4, dword [esp + 0x90]
add esp, 0x10
movss xmm2, dword [esp + 0x88]
comiss xmm4, xmm2
movss dword [esp + 0x14], xmm4
movss dword [esp + 0x24], xmm2
jbe 0x101823b1
movaps xmm0, xmm4
movss dword [esp + 0x14], xmm2
movaps xmm4, xmm2
movaps xmm2, xmm0
movss dword [esp + 0x80], xmm4
movss dword [esp + 0x24], xmm2
movss dword [esp + 0x88], xmm2
movss xmm3, dword [esp + 0x84]
movss xmm1, dword [esp + 0x8c]
comiss xmm3, xmm1
movss dword [esp + 0x30], xmm3
movss dword [esp + 0x10], xmm1
jbe 0x101823fb
movaps xmm0, xmm3
movss dword [esp + 0x30], xmm1
movaps xmm3, xmm1
movaps xmm1, xmm0
movss dword [esp + 0x84], xmm3
movss dword [esp + 0x10], xmm1
movss dword [esp + 0x8c], xmm1
test dword [edi + 0x40], 0xc00000
movss xmm5, dword [0x103000e8]
je 0x101824ef
movss xmm0, dword [edi + 0x38]
ucomiss xmm0, dword [0x102fffdc]
lahf
test ah, 0x44
jp 0x10182453
subss xmm2, dword [0x10300478]
subss xmm1, dword [0x10300478]
subss xmm4, dword [0x10300128]
subss xmm3, dword [0x10300128]
movss dword [esp + 0x24], xmm2
movss dword [esp + 0x10], xmm1
jmp 0x101824e9
cmp dword [esp + 0x44], 2
jne 0x10182474
movss xmm1, dword [esp + 0x28]
movss dword [esp + 0x18], xmm1
movss xmm1, dword [esp + 0x40]
movss dword [esp + 0x1c], xmm1
jmp 0x1018249e
mov eax, dword [esp + 0x2c]
mov ecx, edi
mov edx, dword [eax + 0x20]
call fcn.10181ef0
movss xmm3, dword [esp + 0x30]
movss xmm4, dword [esp + 0x14]
movss xmm5, dword [0x103000e8]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
movss xmm0, dword [esp + 0x24]
lea eax, [esp + 0x18]
movss xmm1, dword [eax]
movss xmm2, dword [eax + 4]
mulss xmm1, xmm5
mulss xmm2, xmm5
xorps xmm1, xmmword [0x10300a00]
subss xmm0, xmm1
xorps xmm2, xmmword [0x10300a00]
addss xmm4, xmm1
addss xmm3, xmm2
movss dword [esp + 0x24], xmm0
movss xmm0, dword [esp + 0x10]
subss xmm0, xmm2
movss dword [esp + 0x10], xmm0
movss dword [esp + 0x30], xmm3
cvtps2pd xmm0, xmm4
sub esp, 8
movsd qword [esp + 0x20], xmm0
fld qword [esp + 0x20]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
fstp qword [esp + 0x20]
movsd xmm0, qword [esp + 0x20]
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x38]
cvtps2pd xmm0, xmm0
mov dword [esp + 0x68], eax
movsd qword [esp + 0x20], xmm0
fld qword [esp + 0x20]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
fstp qword [esp + 0x20]
movsd xmm0, qword [esp + 0x20]
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x2c]
cvtps2pd xmm0, xmm0
mov dword [esp + 0x6c], eax
movsd qword [esp + 0x20], xmm0
fld qword [esp + 0x20]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [esp + 0x20]
movsd xmm0, qword [esp + 0x20]
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x18]
cvtps2pd xmm0, xmm0
mov dword [esp + 0x70], eax
movsd qword [esp + 0x20], xmm0
fld qword [esp + 0x20]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [esp + 0x20]
movsd xmm0, qword [esp + 0x20]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x2c]
mov esi, dword [eax + 0x28]
lea eax, [esp + 0x60]
push eax
mov ecx, esi
call fcn.1017f950
test al, al
jne 0x10182c1b
mov eax, dword [esp + 0x2c]
xorps xmm0, xmm0
test byte [edi + 0x40], 1
mov ecx, 0x1000
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], esi
movups xmmword [esp + 0x98], xmm0
movups xmmword [esp + 0xa8], xmm0
mov al, byte [esi + 0x28]
mov byte [esp + 0xe0], al
mov eax, 0x4000
cmovne eax, ecx
mov dword [esp + 0xc8], 0xffffffff
movups xmmword [esp + 0xb8], xmm0
mov dword [esp + 0xdc], 0
movups xmmword [esp + 0xcc], xmm0
mov word [esp + 0xe1], 0x101
mov byte [esp + 0xe3], 0
mov dword [esp + 0x104], eax
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], 0
cmp byte [esi + 0x2a], 0
jne 0x101826da
cmp byte [esi + 0x29], 0
lea eax, [esi + 0x14]
lea ecx, [esp + 0xec]
cmove esi, eax
lea eax, [esp + 0x60]
push esi
push eax
call fcn.10144d60
test al, al
je 0x101826da
mov ecx, dword [esp + 0x104]
cmp dword [esp + 0xf4], ecx
jge 0x101826af
cmp dword [esp + 0xf8], ecx
jge 0x101826af
mov dword [esp + 0x108], 1
jmp 0x101826e5
mov eax, dword [esp + 0xec]
sub eax, ecx
mov dword [esp + 0x108], 2
mov dword [esp + 0xfc], eax
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x100], eax
jmp 0x101826e5
mov dword [esp + 0x108], 0
lea ecx, [esp + 0x90]
call fcn.101cde20
test al, al
je 0x10182b4e
nop dword [eax]
mov eax, dword [esp + 0xfc]
lea ecx, [esp + 0x110]
movss xmm0, dword [esp + 0x80]
neg eax
movd xmm1, eax
mov eax, dword [esp + 0x100]
cvtdq2ps xmm1, xmm1
neg eax
movd xmm2, eax
addss xmm0, xmm1
mov eax, dword [esp + 0x4c]
cvtdq2ps xmm2, xmm2
movss dword [esp + 0x10], xmm0
movss dword [esp + 0x60], xmm0
movss xmm0, dword [esp + 0x84]
addss xmm0, xmm2
movss dword [esp + 0x14], xmm0
movss dword [esp + 0x64], xmm0
movss xmm0, dword [esp + 0x88]
addss xmm0, xmm1
movss dword [esp + 0x24], xmm0
movss dword [esp + 0x68], xmm0
movss xmm0, dword [esp + 0x8c]
addss xmm0, xmm2
movss dword [esp + 0x30], xmm0
movss dword [esp + 0x6c], xmm0
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x110], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esp + 0x120], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [esp + 0x130], xmm0
call fcn.10166360
mov ecx, dword [esp + 0xe4]
lea eax, [esp + 0x5dc]
push 0
push eax
push edi
lea edx, [esp + 0x11c]
mov dword [esp + 0x5e8], 0
mov dword [esp + 0xa74], 0
call fcn.101b1ba0
mov esi, dword [esp + 0xf4]
mov edi, eax
mov eax, dword [esp + 0x50]
add esp, 0xc
mov dword [esp + 0x5d8], edi
sub eax, 0
je 0x10182a86
sub eax, 1
je 0x10182a1d
sub eax, 1
jne 0x10182b2a
mov eax, dword [esp + 0x48]
test byte [eax + 0x40], 1
je 0x10182896
cmp byte [esi + 0x29], 0
push edi
push esi
je 0x1018285e
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x68]
call fcn.101cbf30
add esp, 8
movss xmm0, dword [esp + 0x38]
movss dword [esp + 0x40], xmm0
movss xmm0, dword [esp + 0x34]
movss dword [esp + 0x28], xmm0
jmp 0x10182b2a
lea ecx, [esp + 0x188]
call fcn.101984d0
push dword [esp + 0x5d0]
lea edx, [esp + 0x38]
push dword [esp + 0x5d0]
lea ecx, [esp + 0x68]
call fcn.101cbf30
add esp, 8
lea ecx, [esp + 0x180]
call fcn.10181e70
jmp 0x10182841
movss xmm0, dword [esp + 0x28]
xorps xmm1, xmm1
comiss xmm1, xmm0
ja 0x10182b2a
movss xmm3, dword [esp + 0x40]
comiss xmm1, xmm3
ja 0x10182b2a
movss xmm7, dword [esp + 0x14]
movaps xmm4, xmm3
mulss xmm4, dword [0x103000e8]
movaps xmm6, xmm7
movss xmm2, dword [esp + 0x30]
movaps xmm1, xmm0
mulss xmm1, dword [0x103000e8]
movss xmm5, dword [esp + 0x10]
subss xmm6, xmm4
addss xmm4, xmm2
subss xmm5, xmm1
addss xmm1, dword [esp + 0x24]
movss dword [esp + 0x74], xmm6
movss dword [esp + 0x14], xmm4
movss dword [esp + 0x7c], xmm4
movss xmm4, dword [esp + 0x24]
subss xmm4, dword [esp + 0x10]
movss dword [esp + 0x2c], xmm5
movss dword [esp + 0x70], xmm5
movss dword [esp + 0x18], xmm1
movss dword [esp + 0x78], xmm1
comiss xmm0, xmm4
jae 0x10182a0c
subss xmm2, xmm7
comiss xmm0, xmm2
jae 0x10182a0c
movss dword [esp + 0x54], xmm6
lea ecx, [esp + 0x50]
addss xmm6, xmm3
movss dword [esp + 0x50], xmm5
push edi
mov edx, esi
movss dword [esp + 0x5c], xmm1
movss dword [esp + 0x14], xmm6
movss dword [esp + 0x60], xmm6
call fcn.101cd9b0
movss xmm2, dword [esp + 0x18]
lea ecx, [esp + 0x54]
movaps xmm0, xmm2
movss dword [esp + 0x60], xmm2
subss xmm0, dword [esp + 0x44]
add esp, 4
mov edx, esi
push edi
movss dword [esp + 0x18], xmm0
movss dword [esp + 0x58], xmm0
call fcn.101cd9b0
movss xmm0, dword [esp + 0x30]
lea ecx, [esp + 0x54]
movss xmm1, dword [esp + 0x14]
add esp, 4
movss dword [esp + 0x50], xmm0
mov edx, esi
addss xmm0, dword [esp + 0x28]
movss dword [esp + 0x54], xmm1
push edi
movss dword [esp + 0x5c], xmm0
movss xmm0, dword [esp + 0x18]
movss dword [esp + 0x60], xmm0
call fcn.101cd9b0
movss xmm2, dword [esp + 0x1c]
lea ecx, [esp + 0x54]
movaps xmm0, xmm2
movss dword [esp + 0x5c], xmm2
subss xmm0, dword [esp + 0x2c]
add esp, 4
mov edx, esi
push edi
movss dword [esp + 0x54], xmm0
call fcn.101cd9b0
jmp 0x10182b27
push edi
mov edx, esi
lea ecx, [esp + 0x74]
call fcn.101cd9b0
jmp 0x10182b27
mov eax, dword [esp + 0x48]
push edi
test byte [eax + 0x40], 1
je 0x10182a76
cmp byte [esi + 0x29], 0
je 0x10182a3e
mov edx, esi
lea ecx, [esp + 0x64]
call fcn.101cb910
jmp 0x10182b27
push esi
lea ecx, [esp + 0x188]
call fcn.101984d0
push dword [esp + 0x5d0]
mov edx, dword [esp + 0x5d0]
lea ecx, [esp + 0x64]
call fcn.101cb910
add esp, 4
lea ecx, [esp + 0x180]
call fcn.10181e70
jmp 0x10182b2a
mov edx, esi
lea ecx, [esp + 0x64]
call fcn.101cd9b0
jmp 0x10182b27
mov eax, dword [esp + 0x48]
push edi
test byte [eax + 0x40], 1
je 0x10182b1c
movss xmm2, dword [esp + 0x28]
lea eax, [esp + 0xaa8]
movss xmm0, dword [esp + 0x14]
movss xmm7, dword [esp + 0x18]
push esi
movss dword [esp + 0xab4], xmm2
movss dword [esp + 0xabc], xmm2
movss xmm2, dword [esp + 0x38]
push 5
push eax
movss dword [esp + 0xab4], xmm0
movss dword [esp + 0xab8], xmm7
movss dword [esp + 0xac0], xmm7
movss dword [esp + 0xac8], xmm2
movss dword [esp + 0xacc], xmm0
movss dword [esp + 0xad0], xmm2
movss dword [esp + 0xad4], xmm0
movss dword [esp + 0xad8], xmm7
call fcn.101ca200
add esp, 0x10
jmp 0x10182b2a
mov edx, esi
lea ecx, [esp + 0x64]
call fcn.101c8b20
add esp, 4
lea ecx, [esp + 0x5dc]
call fcn.101874b0
lea ecx, [esp + 0x90]
call fcn.101cde20
mov edi, dword [esp + 0x48]
test al, al
jne 0x10182700
lea ecx, [esp + 0xb8]
call fcn.101974b0
pop edi
pop esi
mov ecx, dword [esp + 0xac4]
xor ecx, esp
call fcn.102af9d5
mov esp, ebp
pop ebp
ret 0x10
push dword [esp + 0x2c]
lea ecx, [esp + 0x114]
call fcn.101801f0
mov eax, dword [esp + 0x130]
cmp dword [esp + 0x14], 0
cmovne eax, dword [esp + 0x4c]
mov dword [esp + 0x130], eax
call fcn.10194c70
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x3e]
mov dword [esp + 0x38], 0xffffffff
mov al, 2
mov word [esp + 0x3c], 0
xchg byte [ecx], al
movss xmm0, dword [esi + 0xc]
movss xmm3, dword [esi + 8]
movss xmm2, dword [esi + 4]
movss xmm1, dword [esi]
push 0
push ecx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x47], 0
movss dword [esp], xmm0
call fcn.10155620
push 0
push ecx
push 1
push 0
push edi
lea eax, [esp + 0x48]
mov byte [esp + 0x50], 0
push eax
lea ecx, [esp + 0x128]
call fcn.10183080
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x10182c1b
lea eax, [ecx + 4]
or edx, 0xffffffff
lock xadd dword [eax], edx
cmp edx, 1
jne 0x10182c1b
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0xacc]
pop edi
pop esi
xor ecx, esp
call fcn.102af9d5
mov esp, ebp
pop ebp
ret 0x10