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

Disassembly:
sub esp, 0xbc
mov eax, dword [0x1036a00c]
xor eax, esp
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0xc0]
push ebx
mov ebx, dword [esp + 0xd8]
push ebp
mov ebp, dword [esp + 0xd0]
push esi
push edi
mov esi, ecx
mov dword [esp + 0x14], eax
push ebx
lea ecx, [esp + 0x54]
mov dword [esp + 0x4c], esi
call fcn.1014d750
mov eax, dword [esp + 0x90]
movss xmm1, dword [esp + 0x78]
and eax, 0xd03f
mulss xmm1, dword [0x1030003c]
or eax, 0x80
mov word [esp + 0x90], ax
mov edx, dword [esp + 0x90]
movss xmm0, dword [0x10300128]
and edx, 0xf3ffffff
ucomiss xmm0, xmm1
mov dword [esp + 0x78], 0x42800000
lahf
test ah, 0x44
jp 0x1018544c
lea ecx, [esp + 0x9c]
call fcn.10165f20
jmp 0x101854b6
movss dword [esp + 0x9c], xmm1
movss dword [esp + 0xac], xmm1
mov dword [esp + 0xbc], 0x3f800000
mov dword [esp + 0xb8], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xc0], 0x12
mov ecx, dword [esp + 0x54]
and edx, 0xff3fffff
or edi, 0xffffffff
mov dword [esp + 0x90], edx
test ecx, ecx
je 0x101854e1
lea eax, [ecx + 4]
mov edx, edi
lock xadd dword [eax], edx
cmp edx, 1
jne 0x101854e1
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x90]
shr ecx, 0x18
and ecx, 3
mov dword [esp + 0x54], 0
test byte [esp + 0x90], 0x80
push 0
lea eax, [ecx + 4]
cmove eax, ecx
lea ecx, [esp + 0x40]
push ecx
push 0x1014dfe0
push 0
mov eax, dword [eax*4 + 0x102f9758]
lea ecx, [esp + 0x60]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x30]
add eax, 0x14
push eax
call fcn.1014fe10
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
add eax, dword [esp + 0xd4]
push dword [esp + 0xdc]
mov esi, dword [esp + 0x40]
push dword [esp + 0xe4]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x98]
shr eax, 0x10
and eax, 3
push 0x102fa1ec
mov dword [esp + 0x50], eax
call fcn.1017fb20
mov ecx, dword [ebx + 0x40]
shr ecx, 0x16
and ecx, 3
cmp ecx, 3
jae 0x10185593
mov eax, dword [esp + 0x90]
shl ecx, 0x16
and eax, 0xff3fffff
or ecx, eax
mov dword [esp + 0x90], ecx
mov ebx, dword [ebx + 4]
test ebx, ebx
je 0x101855a6
lea ecx, [ebx + 4]
mov eax, 1
lock xadd dword [ecx], eax
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x101855bf
lea eax, [ecx + 4]
lock xadd dword [eax], edi
cmp edi, 1
jne 0x101855bf
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x54], ebx
cmp dword [esp + 0x14], eax
jae 0x1018578f
mov eax, dword [esp + 0xdc]
shl eax, 2
mov dword [esp + 0x4c], eax
nop
push 0
push 0
lea eax, [esp + 0x1c]
push eax
push esi
call dword [esp + 0x50]
mov ebx, eax
add esp, 0x10
cmp word [ebx + 0x10], 0
je 0x1018577d
mov edi, dword [ebx + 4]
test edi, edi
jne 0x1018565e
push 0xc
call fcn.102af9f4
add esp, 4
mov edi, eax
call fcn.10194c70
mov dword [edi], eax
lea ecx, [edi + 0xa]
mov dword [edi + 4], 0xffffffff
mov dl, 2
mov word [edi + 8], 0
xchg byte [ecx], dl
push 0
push edi
mov byte [edi + 0xb], 0
push 0
mov dword [ebx + 4], edi
mov ecx, dword [esi + 0xc]
push ebx
call fcn.101a2570
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
lea eax, [eax*8 + 0xc]
add dword [esi + 0x70], eax
mov edi, dword [ebx + 4]
test edi, edi
je 0x1018577d
mov eax, dword [esp + 0x28]
cmp eax, 3
ja case.0x10185667.3
jmp dword [eax*4 + 0x101857c4]
movss xmm0, dword [ebp + 4]
addss xmm0, dword [esp + 0x34]
jmp 0x101856b3
movss xmm1, dword [esp + 0x38]
mulss xmm1, dword [ebp]
addss xmm1, dword [esp + 0x30]
movss xmm2, dword [esp + 0x34]
movss dword [esp + 0x18], xmm1
movss dword [esp + 0x1c], xmm2
jmp 0x101856e8
movss xmm1, dword [esp + 0x30]
addss xmm1, dword [ebp]
jmp 0x1018568c
movss xmm0, dword [esp + 0x34]
lea eax, [esp + 0x18]
push eax
sub esp, 8
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + 0x3c]
addss xmm0, dword [ebp]
movss dword [esp], xmm0
push dword [esp + 0x30]
call dword [esp + 0x3c]
movss xmm1, dword [esp + 0x28]
add esp, 0x10
movss xmm2, dword [esp + 0x1c]
mov edx, dword [esp + 0x44]
test edx, edx
je 0x10185725
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
cmp edx, 1
jne 0x101856ff
sar eax, 1
sar ecx, 1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x10300008]
subss xmm1, xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x10300008]
subss xmm2, xmm0
mov edx, dword [esp + 0x48]
movss dword [esp + 0xa4], xmm1
mov dword [esp + 0xc0], 0x80
movss dword [esp + 0xb0], xmm2
mov ecx, dword [edx + 0x30]
push 0
test ecx, ecx
je 0x10185765
mov eax, dword [ecx]
lea ebx, [esp + 0xa0]
push ebx
lea ebx, [esp + 0x58]
push ebx
push edi
push edx
call dword [eax + 0x38]
jmp 0x1018577d
push ecx
push 0
lea eax, [esp + 0xa8]
mov ecx, edx
push eax
lea eax, [esp + 0x60]
push eax
push edi
call fcn.10183080
add ebp, dword [esp + 0x4c]
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x14], eax
jb 0x101855e0
test esi, esi
je 0x101857a0
push esi
call fcn.10187f50
mov ecx, eax
call fcn.10188be0
lea ecx, [esp + 0x50]
call fcn.1014d850
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.102af9d5
add esp, 0xbc
ret 0x18