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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
push esi
mov dword [esp + 0x18], ecx
imul eax, dword [ebp + 8], 0xc
mov ecx, dword [esp + 0x18]
lea edx, [ecx + eax + 0x20]
mov dword [esp + 0xc], edx
mov eax, 1
test eax, eax
je 0x1002218f
imul ecx, dword [ebp + 8], 0xc
mov edx, dword [esp + 0x18]
lea eax, [edx + ecx + 0xb0]
mov dword [esp + 0x1c], eax
jmp 0x1002219f
imul ecx, dword [ebp + 8], 0xc
mov edx, dword [esp + 0x18]
lea eax, [edx + ecx + 0x68]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x18]
movsd xmm0, qword [eax + 0x168]
movsd qword [esp + 0xa0], xmm0
call fcn.10009f70
mov dword [esp + 0x14], eax
xorps xmm0, xmm0
movsd qword [esp + 0x98], xmm0
call fcn.10001360
fstp qword [esp + 0x90]
mov dword [esp + 4], 0
jmp 0x100221fa
mov ecx, dword [esp + 4]
add ecx, 1
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0xc]
call fcn.100246d0
cmp dword [esp + 4], eax
jae 0x100225cf
mov edx, dword [esp + 4]
add edx, 1
mov dword [esp + 8], edx
jmp 0x10022225
mov eax, dword [esp + 8]
add eax, 1
mov dword [esp + 8], eax
mov ecx, dword [esp + 0xc]
call fcn.100246d0
cmp dword [esp + 8], eax
jae 0x10022268
mov ecx, dword [esp + 8]
push ecx
mov ecx, dword [esp + 0x10]
call fcn.10024670
mov esi, eax
mov edx, dword [esp + 4]
push edx
mov ecx, dword [esp + 0x10]
call fcn.10024670
movsd xmm0, qword [esi]
subsd xmm0, qword [eax]
comisd xmm0, xmmword [0x100972b0]
jb 0x10022266
jmp 0x10022268
jmp 0x1002221a
mov ecx, dword [esp + 0xc]
call fcn.100246d0
cmp dword [esp + 8], eax
jne 0x1002227c
jmp 0x100225cf
mov eax, dword [esp + 4]
cmp eax, dword [esp + 8]
jne 0x1002228b
jmp 0x100225cf
lea ecx, [esp + 0xd0]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.10024700
mov dword [esp + 0x28], eax
mov edx, dword [esp + 8]
push edx
lea eax, [esp + 0xd8]
push eax
mov ecx, dword [esp + 0x30]
call fcn.10024440
mov ecx, dword [eax]
mov dword [esp + 0x30], ecx
lea edx, [esp + 0xd8]
push edx
mov ecx, dword [esp + 0x14]
call fcn.10024700
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 4]
push eax
lea ecx, [esp + 0xe0]
push ecx
mov ecx, dword [esp + 0x34]
call fcn.10024440
mov edx, dword [eax]
mov dword [esp + 0x34], edx
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
mov dword [esp + 0x20], eax
cvtsi2sd xmm0, dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x10097350]
sub esp, 8
xorps xmm1, xmm1
movsd qword [esp], xmm1
mov edx, dword [esp + 0x38]
push edx
mov eax, dword [esp + 0x40]
push eax
movsd qword [esp + 0x100], xmm0
call fcn.10026660
add esp, 0x10
fstp qword [esp + 0xe8]
movsd xmm0, qword [esp + 0xe8]
movsd xmm1, qword [esp + 0xf0]
divsd xmm0, xmm1
movsd qword [esp + 0x70], xmm0
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0xe4]
call fcn.100024f0
mov edx, dword [eax]
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0x38]
mov dword [esp + 0x4c], eax
lea ecx, [esp + 0xe4]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.10024700
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 8]
push edx
lea eax, [esp + 0xb8]
push eax
mov ecx, dword [esp + 0x44]
call fcn.10024440
mov ecx, dword [eax]
mov dword [esp + 0x40], ecx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x50], edx
lea eax, [esp + 0xb8]
push eax
mov ecx, dword [esp + 0x14]
call fcn.10024700
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 4]
push ecx
lea edx, [esp + 0xc0]
push edx
mov ecx, dword [esp + 0x4c]
call fcn.10024440
mov eax, dword [eax]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x54], ecx
mov edx, dword [esp + 0x4c]
push edx
sub esp, 8
xorps xmm0, xmm0
movsd qword [esp], xmm0
mov eax, dword [esp + 0x5c]
push eax
mov ecx, dword [esp + 0x64]
push ecx
call fcn.10026690
add esp, 0x14
fstp qword [esp + 0x88]
movsd xmm0, qword [0x100972a8]
subsd xmm0, qword [esp + 0xa0]
mulsd xmm0, qword [esp + 0x70]
movsd qword [esp + 0x100], xmm0
movsd xmm0, qword [0x100972a8]
addsd xmm0, qword [esp + 0xa0]
mulsd xmm0, qword [esp + 0x70]
movsd qword [esp + 0xf8], xmm0
lea edx, [esp + 0xf8]
push edx
lea eax, [esp + 0x104]
push eax
lea ecx, [esp + 0x110]
call fcn.10001a80
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
lea edx, [esp + 0xc0]
push edx
mov ecx, dword [esp + 0x14]
call fcn.10024700
mov dword [esp + 0x58], eax
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0xc8]
push ecx
mov ecx, dword [esp + 0x60]
call fcn.10024440
mov edx, dword [eax]
mov dword [esp + 0x5c], edx
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x68], eax
lea ecx, [esp + 0xc8]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.10024700
mov dword [esp + 0x60], eax
mov edx, dword [esp + 4]
push edx
lea eax, [esp + 0xd0]
push eax
mov ecx, dword [esp + 0x68]
call fcn.10024440
mov ecx, dword [eax]
mov dword [esp + 0x64], ecx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x6c], edx
mov eax, dword [esp + 0x84]
push eax
mov ecx, dword [esp + 0x84]
push ecx
mov edx, dword [esp + 0x70]
push edx
mov eax, dword [esp + 0x78]
push eax
call fcn.10026730
add esp, 0x10
movzx ecx, al
test ecx, ecx
je 0x100225bd
movsd xmm0, qword [esp + 0x88]
comisd xmm0, xmmword [esp + 0x90]
jb 0x10022549
jmp 0x100225cf
call fcn.10009f70
cmp dword [esp + 0x14], eax
jne 0x10022566
movsd xmm0, qword [esp + 0x88]
movsd qword [esp + 0x98], xmm0
movsd xmm0, qword [esp + 0x98]
ucomisd xmm0, qword [0x10097258]
lahf
test ah, 0x44
jp 0x1002257f
jmp 0x100225cf
movsd xmm0, qword [esp + 0x88]
movsd qword [esp + 0x90], xmm0
mov edx, dword [esp + 4]
mov dword [esp + 0x14], edx
movsd xmm0, qword [esp + 0x90]
divsd xmm0, qword [esp + 0x98]
movsd xmm1, qword [0x10097298]
comisd xmm1, xmm0
jbe 0x100225bb
jmp 0x100225cf
jmp 0x100225ca
call fcn.10009f70
cmp dword [esp + 0x14], eax
je 0x100225ca
jmp 0x100225cf
jmp 0x100221ef
mov ecx, dword [esp + 0xc]
call fcn.100246d0
cmp dword [esp + 0x14], eax
jae 0x100225fb
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [esp + 0x10]
call fcn.10024670
movsd xmm0, qword [eax]
movsd qword [esp + 0xa8], xmm0
jmp 0x1002260c
movsd xmm0, qword [0x10097330]
movsd qword [esp + 0xa8], xmm0
fld qword [esp + 0xa8]
pop esi
mov esp, ebp
pop ebp
ret 4