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

Disassembly:
sub esp, 0xe0
mov eax, dword [0x1032e6c0]
xor eax, esp
mov dword [esp + 0xdc], eax
push edi
mov edi, dword [esp + 0xe8]
mov dword [esp + 0x10], 0
mov ecx, dword [edi + 0x120]
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x10066c94
push ebp
push 1
push ecx
call fcn.10031e70
mov ebp, eax
add esp, 8
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10066810
push eax
push dword [edi + 0x120]
call fcn.1000c4e0
add esp, 8
pop ebp
pop edi
mov ecx, dword [esp + 0xdc]
xor ecx, esp
call fcn.1026465b
add esp, 0xe0
ret
mov eax, dword [edi + 0x128]
push ebx
push 0
push dword [edi + 0x120]
mov eax, dword [eax + 4]
call eax
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10066c66
mov eax, dword [edi + 0x120]
push esi
xor esi, esi
mov eax, dword [eax]
cmp dword [eax + 0x70], esi
je 0x10066859
push dword [edi + 0x12c]
call fcn.10018620
add esp, 4
mov ecx, 1
test eax, eax
cmovne esi, ecx
lea eax, [esp + 0x1c]
push eax
push dword [edi + 0x12c]
call fcn.100187d0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10066c65
push esi
push eax
push ebp
push eax
push dword [esp + 0x2c]
push dword [edi + 0x12c]
call fcn.10018a70
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x10066c65
mov eax, dword [edi + 0x128]
cmp dword [eax + 8], ebx
je 0x100668cf
lea eax, [esp + 0x64]
push eax
push ebp
call fcn.10031f70
mov eax, dword [edi + 0x128]
lea ecx, [esp + 0x6c]
push ecx
push dword [edi + 0x120]
mov eax, dword [eax + 8]
call eax
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x10066c65
mov eax, dword [edi + 0x128]
cmp dword [eax + 0xc], 0
je 0x10066900
push ebp
call fcn.10031fd0
mov ecx, dword [edi + 0x128]
push eax
push dword [edi + 0x120]
mov eax, dword [ecx + 0xc]
call eax
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x10066c65
mov eax, dword [edi + 0x128]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x1006693b
push dword [edi + 0x120]
call eax
add esp, 4
test eax, eax
je 0x1006693b
push ebp
call fcn.10031fc0
push ebp
mov esi, eax
mov dword [esp + 0x18], 0
call fcn.10031fd0
add esp, 8
mov dword [esp + 0x18], eax
jmp 0x10066966
push ebp
call fcn.10031fd0
xor ecx, ecx
mov dword [esp + 0x1c], 0
add esp, 4
test eax, eax
sete cl
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov esi, dword [esp + 0x14]
test eax, eax
setne cl
mov dword [esp + 0x10], ecx
mov eax, dword [edi + 0x128]
push 1
push dword [edi + 0x120]
mov eax, dword [eax + 4]
call eax
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10066c65
test esi, esi
je 0x100669af
push 1
push dword [edi + 0x120]
push eax
push dword [esp + 0x28]
push dword [edi + 0x12c]
call fcn.10019460
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x10066c65
cmp dword [esp + 0x10], 0
je 0x10066a0d
mov eax, dword [edi + 0x128]
push 2
push dword [edi + 0x120]
mov eax, dword [eax + 4]
call eax
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10066c65
lea eax, [esp + 0x64]
push eax
push dword [edi + 0x120]
call fcn.1000bf70
add esp, 8
test eax, eax
jne 0x100669f5
lea ebx, [eax + 0x64]
jmp 0x10066c65
lea eax, [esp + 0x64]
push eax
push edi
call fcn.10066570
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10066c65
cmp dword [esp + 0x18], 0
je 0x10066a7f
mov eax, dword [edi + 0x128]
push 2
push dword [edi + 0x120]
mov eax, dword [eax + 4]
call eax
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10066c65
push ebp
call fcn.10031fb0
push eax
mov dword [esp + 0x1c], eax
call fcn.100263f0
add esp, 8
mov dword [esp + 0x18], eax
xor esi, esi
test eax, eax
jle 0x10066a7f
lea eax, [esp + 0x64]
push eax
push esi
push dword [esp + 0x1c]
call fcn.10026390
lea eax, [esp + 0x70]
push eax
push edi
call fcn.10066570
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x10066c65
inc esi
cmp esi, dword [esp + 0x18]
jl 0x10066a51
mov eax, dword [edi + 0x128]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x10066c65
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x28]
push ecx
push dword [edi + 0x120]
call eax
add esp, 0xc
test eax, eax
je 0x10066c65
mov eax, dword [esp + 0x20]
xor esi, esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x64]
push eax
push dword [edi + 0x120]
call fcn.1000bf70
mov ecx, dword [esp + 0x1c]
movd xmm0, dword [esp + 0x74]
cvtdq2pd xmm0, xmm0
mov eax, dword [esp + 0x20]
push eax
push ecx
movd xmm1, ecx
cvtdq2pd xmm1, xmm1
push dword [edi + 0x124]
divsd xmm1, xmm0
movd xmm0, dword [esp + 0x84]
movsd qword [esp + 0x44], xmm1
movd xmm1, eax
cvtdq2pd xmm1, xmm1
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
movsd qword [esp + 0x3c], xmm1
call fcn.1001a900
mov dword [esp + 0x24], eax
lea eax, [esp + 0x4c]
push eax
push edi
call fcn.1000cd70
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x30]
call fcn.1000c530
movsd xmm0, qword [esp + 0x4c]
add esp, 0x14
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0x40]
movsd qword [esp], xmm0
push dword [esp + 0x20]
call fcn.1000d170
mov eax, dword [esp + 0x7c]
add esp, 4
neg eax
movd xmm0, eax
mov eax, dword [esp + 0x74]
cvtdq2pd xmm0, xmm0
neg eax
mulsd xmm0, qword [esp + 0x38]
movsd qword [esp + 8], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [esp + 0x40]
movsd qword [esp], xmm0
push dword [esp + 0x20]
call fcn.1000d0e0
push dword [esp + 0x24]
push dword [edi + 0x12c]
call fcn.10018a20
add esp, 0x1c
test eax, eax
jne 0x10066c47
mov eax, dword [esp + 0x18]
push eax
push dword [esp + 0x18]
push 1
call fcn.1001ac70
mov esi, eax
add esp, 0xc
mov dword [esp + 0x14], esi
cmp dword [esi + 0x14], 0
jne 0x10066c47
push 0
push 0x102a2a90
push 1
push esi
call fcn.1000c3e0
add esp, 0x10
test eax, eax
jne 0x10066c47
push dword [esp + 0x10]
lea eax, [esp + 0x78]
push eax
call fcn.10008050
push 0
lea eax, [esp + 0x80]
mov dword [esp + 0xa4], 3
push eax
push 2
push esi
call fcn.1000c3e0
mov esi, eax
lea eax, [esp + 0x8c]
push eax
call fcn.10007720
add esp, 0x1c
test esi, esi
mov esi, dword [esp + 0x14]
jne 0x10066c47
mov eax, dword [edi + 0x128]
push esi
push dword [edi + 0x120]
mov eax, dword [eax + 0x18]
call eax
add esp, 8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10066c58
push eax
call fcn.1000cbd0
add esp, 4
test esi, esi
je 0x10066c65
push esi
call fcn.1000cbd0
add esp, 4
pop esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10066c7d
push eax
push dword [edi + 0x12c]
call fcn.10018990
add esp, 8
push ebp
call fcn.1000cbd0
push ebx
push dword [edi + 0x120]
call fcn.1000c4e0
add esp, 0xc
pop ebx
pop ebp
mov ecx, dword [esp + 0xe0]
pop edi
xor ecx, esp
call fcn.1026465b
add esp, 0xe0
ret