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

Disassembly:
sub esp, 0xbc
mov eax, dword [0x1036900c]
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.1014d5a0
mov eax, dword [esp + 0x90]
movss xmm1, dword [esp + 0x78]
and eax, 0xd03f
mulss xmm1, dword [0x102fefc4]
or eax, 0x80
mov word [esp + 0x90], ax
mov edx, dword [esp + 0x90]
movss xmm0, dword [0x102ff0b0]
and edx, 0xf3ffffff
ucomiss xmm0, xmm1
mov dword [esp + 0x78], 0x42800000
lahf
test ah, 0x44
jp 0x101852bc
lea ecx, [esp + 0x9c]
call fcn.10165d90
jmp 0x10185326
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 0x10185351
lea eax, [ecx + 4]
mov edx, edi
lock xadd dword [eax], edx
cmp edx, 1
jne 0x10185351
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 0x1014de30
push 0
mov eax, dword [eax*4 + 0x102f86c8]
lea ecx, [esp + 0x60]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x30]
add eax, 0x14
push eax
call fcn.1014fc60
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 0x102f9164
mov dword [esp + 0x50], eax
call fcn.1017f990
mov ecx, dword [ebx + 0x40]
shr ecx, 0x16
and ecx, 3
cmp ecx, 3
jae 0x10185403
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 0x10185416
lea ecx, [ebx + 4]
mov eax, 1
lock xadd dword [ecx], eax
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x1018542f
lea eax, [ecx + 4]
lock xadd dword [eax], edi
cmp edi, 1
jne 0x1018542f
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x54], ebx
cmp dword [esp + 0x14], eax
jae 0x101855ff
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 0x101855ed
mov edi, dword [ebx + 4]
test edi, edi
jne 0x101854ce
push 0xc
call fcn.102af8b4
add esp, 4
mov edi, eax
call fcn.10194ae0
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.101a23c0
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 0x101855ed
mov eax, dword [esp + 0x28]
cmp eax, 3
ja case.0x101854d7.3
jmp dword [eax*4 + 0x10185634]
movss xmm0, dword [ebp + 4]
addss xmm0, dword [esp + 0x34]
jmp 0x10185523
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 0x10185558
movss xmm1, dword [esp + 0x30]
addss xmm1, dword [ebp]
jmp 0x101854fc
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 0x10185595
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
cmp edx, 1
jne 0x1018556f
sar eax, 1
sar ecx, 1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x102fef90]
subss xmm1, xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x102fef90]
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 0x101855d5
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 0x101855ed
push ecx
push 0
lea eax, [esp + 0xa8]
mov ecx, edx
push eax
lea eax, [esp + 0x60]
push eax
push edi
call fcn.10182ef0
add ebp, dword [esp + 0x4c]
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x14], eax
jb 0x10185450
test esi, esi
je 0x10185610
push esi
call fcn.10187dc0
mov ecx, eax
call fcn.10188a50
lea ecx, [esp + 0x50]
call fcn.1014d6a0
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.102af895
add esp, 0xbc
ret 0x18