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

Disassembly:
sub esp, 0x28
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
push ebx
push ebp
push esi
mov ebx, ecx
xor esi, esi
push edi
mov dword [esp + 0x1c], ebx
xor ecx, ecx
nop dword [eax]
cmp byte [edx + 0x50], 0
je 0x101878cd
cmp byte [edx + 0x70], 0
je 0x101878e8
test ecx, ecx
mov eax, edx
mov esi, edx
cmovne eax, ecx
mov ecx, eax
mov eax, dword [esp + 0x44]
jmp 0x101878dc
test ecx, ecx
je 0x101878da
cmp byte [edx + 0xc0], 0
jne 0x101878f9
xor esi, esi
cmp edx, eax
je 0x10187905
mov edx, dword [edx + 0x80]
jmp 0x101878b0
test esi, esi
mov ebp, ecx
mov dword [esp + 0x14], ebp
cmovne eax, esi
mov dword [esp + 0x44], eax
jmp 0x1018790b
mov ebp, ecx
mov dword [esp + 0x44], esi
mov dword [esp + 0x14], ebp
jmp 0x1018790b
mov ebp, ecx
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x1018791b
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0xc
movsd xmm3, qword [ecx + 0xa8]
xorps xmm4, xmm4
mov eax, dword [ecx + 0x78]
mov edx, dword [ecx + 0x7c]
movsd xmm2, qword [ecx + 0x48]
movsd qword [esp + 0x30], xmm3
movsd qword [esp + 0x28], xmm4
mov dword [esp + 0x18], edx
test eax, eax
je 0x10187970
mov esi, dword [eax]
movsd xmm1, qword [esi + 0xa8]
movsd xmm0, qword [esi + 0xa0]
subsd xmm1, xmm2
subsd xmm0, xmm2
mulsd xmm1, xmm0
comisd xmm4, xmm1
jae 0x10187972
mov eax, dword [eax + 4]
test eax, eax
jne 0x10187945
xor esi, esi
movsd xmm0, qword [ecx + 0x68]
mov edi, dword [esp + 0x3c]
comisd xmm0, xmm2
seta byte [esp + 0x40]
test edx, edx
je 0x10187b3e
movsd xmm0, qword [edx + 0xb0]
ucomisd xmm0, xmm3
lahf
test ah, 0x44
jp 0x10187b3e
movsd xmm0, qword [edx + 0xa8]
lea eax, [esp + 0x28]
sub esp, 0x10
subsd xmm0, xmm3
mov ecx, ebx
movsd qword [esp + 8], xmm0
movsd qword [esp], xmm3
push eax
lea eax, [esp + 0x34]
push eax
push edi
call fcn.10191b10
test al, al
je 0x10187b3b
mov eax, dword [esp + 0x18]
movsd xmm1, qword [esp + 0x20]
comisd xmm1, xmmword [eax + 0xa8]
jbe 0x10187b3b
movsd xmm0, qword [esp + 0x30]
comisd xmm0, xmm1
jbe 0x10187b3b
movsd xmm1, qword [esp + 0x28]
mov ecx, eax
call fcn.10193540
mov dword [esp + 0x3c], eax
test eax, eax
je 0x10187b3b
mov ecx, ebx
mov esi, eax
call fcn.10180b20
movsd xmm2, qword [esp + 0x20]
lea ecx, [ebx + 4]
push ecx
push dword [esp + 0x1c]
mov ebp, eax
mov ecx, ebp
mov dword [esp + 0x1c], ebp
call fcn.10181820
push dword [ebx]
mov ecx, ebp
call fcn.10189680
push dword [ebx]
mov ecx, dword [esp + 0x1c]
call fcn.10189680
cmp byte [ebp + 0x50], 0
movsd xmm0, qword [0x102265b8]
jne 0x10187a62
movsd qword [ebp + 0x48], xmm0
mov byte [ebp + 0x50], 1
cmp byte [ebp + 0x70], 0
jne 0x10187a71
movsd qword [ebp + 0x68], xmm0
mov eax, dword [esp + 0x18]
mov byte [ebp + 0x70], 1
cmp byte [eax + 0x70], 0
jne 0x10187a84
movsd qword [eax + 0x68], xmm0
movsd xmm1, qword [esp + 0x28]
mov byte [eax + 0x70], 1
mov eax, dword [esp + 0x3c]
comisd xmm1, xmmword [eax + 0xa0]
jbe 0x10187b3b
movsd xmm0, qword [eax + 0xa8]
comisd xmm0, xmm1
jbe 0x10187b3b
mov ecx, edi
call fcn.1017fde0
movsd xmm2, qword [esp + 0x28]
lea ecx, [edi + 4]
push ecx
push dword [esp + 0x40]
mov ecx, eax
mov dword [esp + 0x20], eax
call fcn.10181590
push dword [edi]
mov ecx, dword [esp + 0x1c]
call fcn.101873e0
push dword [edi]
mov ecx, dword [esp + 0x40]
call fcn.101873e0
cmp byte [esp + 0x40], 0
je 0x10187b17
mov eax, dword [esp + 0x3c]
cmp byte [eax + 0x68], 0
jne 0x10187b06
movsd xmm0, qword [0x102265b8]
movsd qword [eax + 0x60], xmm0
mov ecx, dword [esp + 0x18]
mov byte [eax + 0x68], 1
call fcn.10191070
mov esi, ecx
jmp 0x10187b3b
mov ecx, dword [esp + 0x3c]
call fcn.10191070
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x48], 0
jne 0x10187b37
movsd xmm0, qword [0x102265b8]
movsd qword [eax + 0x40], xmm0
mov byte [eax + 0x48], 1
xorps xmm4, xmm4
mov edx, dword [esp + 0x44]
mov ecx, dword [edx + 0x78]
movsd xmm2, qword [edx + 0x68]
test ecx, ecx
je 0x10187b7b
nop
mov eax, dword [ecx]
movsd xmm1, qword [eax + 0xa8]
movsd xmm0, qword [eax + 0xa0]
subsd xmm1, xmm2
subsd xmm0, xmm2
mulsd xmm1, xmm0
comisd xmm4, xmm1
jae 0x10187b7d
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x10187b50
xor eax, eax
mov bl, byte [esp + 0x40]
mov ecx, esi
test bl, bl
cmovne ecx, eax
cmovne eax, esi
mov dword [esp + 0x18], eax
xor bh, bh
mov eax, dword [edx + 0x80]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x3c], eax
nop
mov esi, dword [ebp + 0x78]
xor bl, bl
test esi, esi
je 0x10187bc5
nop dword [eax]
mov ecx, dword [esi]
push ebp
call fcn.10189590
mov esi, dword [esi + 4]
or bl, al
test esi, esi
jne 0x10187bb0
mov eax, dword [esp + 0x3c]
mov ebp, dword [ebp + 0x80]
or bh, bl
cmp ebp, eax
jne 0x10187ba0
mov esi, dword [esp + 0x14]
mov byte [esp + 0x3c], bh
mov ebx, dword [esp + 0x1c]
push 1
push 8
mov dword [esi + 0x78], 0
lea ecx, [ebx + 4]
call fcn.10103ab0
mov ebp, dword [esp + 0x18]
xor bh, bh
mov dword [eax], ebp
mov ecx, dword [esi + 0x78]
mov dword [eax + 4], ecx
mov dword [esi + 0x78], eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x78]
mov dword [esp + 0x28], eax
nop dword [eax]
mov esi, dword [ebp + 0x70]
xor bl, bl
test esi, esi
je 0x10187c35
nop dword [eax]
mov ecx, dword [esi]
push ebp
call fcn.101897a0
mov esi, dword [esi + 4]
or bl, al
test esi, esi
jne 0x10187c20
mov eax, dword [esp + 0x28]
mov ebp, dword [ebp + 0x78]
or bh, bl
cmp ebp, eax
jne 0x10187c10
mov ebp, dword [esp + 0x18]
lea ecx, [edi + 4]
push 1
push 8
mov dword [ebp + 0x70], 0
call fcn.10103ab0
mov esi, dword [esp + 0x14]
or byte [esp + 0x3c], bh
mov ebx, dword [esp + 0x1c]
mov dword [eax], esi
mov ecx, dword [ebp + 0x70]
mov dword [eax + 4], ecx
mov dword [ebp + 0x70], eax
mov eax, dword [esp + 0x44]
cmp esi, eax
je 0x10187ccb
mov edx, dword [esi + 0x80]
mov eax, dword [eax + 0x80]
mov dword [esp + 0x14], eax
test edx, edx
je 0x10187cbe
mov ebp, eax
nop word [eax + eax]
cmp edx, ebp
je 0x10187cb6
mov ecx, dword [edx + 0x80]
dec dword [ebx + 0x24]
mov eax, dword [ebx + 0x20]
mov dword [edx + 0x80], eax
mov dword [ebx + 0x20], edx
mov byte [edx + 0xc4], 1
mov edx, ecx
test ecx, ecx
jne 0x10187c90
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10187cc5
mov dword [eax + 0x7c], esi
mov dword [esi + 0x80], eax
mov eax, dword [esp + 0x20]
cmp ebp, eax
je 0x10187d15
mov edx, dword [ebp + 0x78]
mov eax, dword [eax + 0x78]
mov dword [esp + 0x20], eax
test edx, edx
je 0x10187d0b
mov ebx, eax
cmp edx, ebx
je 0x10187d03
mov ecx, dword [edx + 0x78]
dec dword [edi + 0x24]
mov eax, dword [edi + 0x20]
mov dword [edx + 0x78], eax
mov dword [edi + 0x20], edx
mov byte [edx + 0xbc], 1
mov edx, ecx
test ecx, ecx
jne 0x10187ce3
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10187d12
mov dword [eax + 0x74], ebp
mov dword [ebp + 0x78], eax
mov eax, dword [esp + 0x44]
mov ecx, esi
movsd xmm0, qword [eax + 0xb0]
movsd qword [esi + 0xb0], xmm0
mov eax, dword [ebx]
push eax
mov word [esi + 0xc2], 0
call fcn.10189680
movsd xmm0, qword [esi + 0xa8]
lea ecx, [esi + 0x38]
sub esp, 8
movsd qword [esp], xmm0
push dword [edi]
push esi
push dword [ebx]
call fcn.101852f0
movsd xmm0, qword [esi + 0xb0]
lea eax, [esi + 0x20]
sub esp, 8
lea ecx, [esi + 0x58]
movsd qword [esp], xmm0
push dword [edi]
push eax
push dword [ebx]
call fcn.101852f0
movsd xmm6, qword [esi + 0x48]
xorps xmm1, xmm1
movsd xmm4, qword [0x10226358]
subsd xmm1, xmm6
movsd xmm2, qword [esi + 0x68]
movaps xmm0, xmm4
subsd xmm0, xmm6
xorps xmm3, xmm3
movaps xmm5, xmm6
mulsd xmm1, xmm0
comisd xmm3, xmm1
jb 0x10187dfc
xorps xmm1, xmm1
movaps xmm0, xmm4
subsd xmm1, xmm2
subsd xmm0, xmm2
mulsd xmm1, xmm0
comisd xmm3, xmm1
jb 0x10187dfc
cmp byte [esp + 0x40], 0
jne 0x10187dce
movaps xmm5, xmm2
movaps xmm2, xmm6
movsd qword [ebp + 0xa0], xmm5
mov ecx, ebp
movsd qword [ebp + 0xa8], xmm2
mov eax, dword [edi]
push eax
mov word [ebp + 0xba], 0
call fcn.101873e0
movsd xmm4, qword [0x10226358]
xorps xmm3, xmm3
mov eax, dword [esi + 0x7c]
mov edx, dword [esi + 0x80]
mov dword [esp + 0x44], edx
test eax, eax
je 0x10187e1c
mov dword [eax + 0x80], edx
test edx, edx
je 0x10187e2a
mov dword [edx + 0x7c], eax
jmp 0x10187e2a
mov dword [ebx + 0x18], edx
test edx, edx
je 0x10187e2a
mov dword [edx + 0x7c], 0
subsd xmm4, qword [esi + 0x48]
xorps xmm1, xmm1
subsd xmm1, qword [esi + 0x48]
mulsd xmm1, xmm4
comisd xmm3, xmm1
setae al
dec dword [ebx + 0x24]
test al, al
jne 0x10187e5e
mov eax, dword [ebx + 0x20]
mov dword [esi + 0x80], eax
mov dword [ebx + 0x20], esi
mov byte [esi + 0xc4], 1
jmp 0x10187e6a
mov eax, dword [ebx + 0x1c]
mov dword [esi + 0x80], eax
mov dword [ebx + 0x1c], esi
mov ecx, dword [ebp + 0x74]
mov eax, dword [ebp + 0x78]
test ecx, ecx
je 0x10187e80
mov dword [ecx + 0x78], eax
test eax, eax
je 0x10187e8e
mov dword [eax + 0x74], ecx
jmp 0x10187e8e
mov dword [edi + 0x18], eax
test eax, eax
je 0x10187e8e
mov dword [eax + 0x74], 0
dec dword [edi + 0x24]
cmp byte [esp + 0x3c], 0
mov eax, dword [edi + 0x1c]
mov dword [ebp + 0x78], eax
mov dword [edi + 0x1c], ebp
je 0x10187f4a
mov edx, dword [ebx + 0x18]
test edx, edx
je 0x10187efc
nop dword [eax]
cmp dword [edx + 0x78], 0
mov ecx, dword [edx + 0x80]
jne 0x10187ef6
mov eax, dword [edx + 0x7c]
test eax, eax
je 0x10187ed2
mov dword [eax + 0x80], ecx
test ecx, ecx
je 0x10187ee0
mov dword [ecx + 0x7c], eax
jmp 0x10187ee0
mov dword [ebx + 0x18], ecx
test ecx, ecx
je 0x10187ee0
mov dword [ecx + 0x7c], 0
mov eax, dword [ebx + 0x20]
dec dword [ebx + 0x24]
mov dword [edx + 0x80], eax
mov dword [ebx + 0x20], edx
mov byte [edx + 0xc4], 1
mov edx, ecx
test ecx, ecx
jne 0x10187eb0
mov edx, dword [edi + 0x18]
test edx, edx
je 0x10187f46
cmp dword [edx + 0x70], 0
mov ecx, dword [edx + 0x78]
jne 0x10187f40
mov eax, dword [edx + 0x74]
test eax, eax
je 0x10187f1f
mov dword [eax + 0x78], ecx
test ecx, ecx
je 0x10187f2d
mov dword [ecx + 0x74], eax
jmp 0x10187f2d
mov dword [edi + 0x18], ecx
test ecx, ecx
je 0x10187f2d
mov dword [ecx + 0x74], 0
mov eax, dword [edi + 0x20]
dec dword [edi + 0x24]
mov dword [edx + 0x78], eax
mov dword [edi + 0x20], edx
mov byte [edx + 0xbc], 1
mov edx, ecx
test ecx, ecx
jne 0x10187f03
mov edx, dword [esp + 0x44]
test edx, edx
je 0x10187f57
cmp byte [edx + 0xc4], 0
je 0x10187f59
xor edx, edx
pop edi
pop esi
pop ebp
mov eax, edx
pop ebx
add esp, 0x28
ret 0xc