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

Disassembly:
sub esp, 0xa8
push ebx
push ebp
movsx ebp, word [esp + 0xb8]
imul ebp, ebp, 0x68
push esi
mov esi, eax
mov eax, dword [0x70b25c]
add ebp, dword [eax + 0x164]
mov ecx, esi
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xb8]
cmp ax, 0xffff
push edi
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], ecx
je 0x4adae6
movsx edx, ax
mov eax, dword [0x86b838]
mov eax, dword [eax + edx*4 + 4]
cmp eax, 0xffffffff
jne 0x4adaeb
or eax, 0xffffffff
jmp 0x4adb00
mov ecx, dword [0x86b840]
mov edx, dword [ecx + 0x34]
and eax, 0xffff
shl eax, 9
mov eax, dword [eax + edx + 0x34]
lea edi, [esp + 0x1c]
mov ecx, eax
call fcn.00564950
fld dword [esi]
fsub dword [esp + 0x1c]
fld dword [esi + 4]
fsub dword [esp + 0x20]
fld dword [esi + 8]
fsub dword [esp + 0x24]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fst dword [esp + 0x30]
fstp st(3)
fstp st(0)
fstp st(0)
fcomp dword [0x66c598]
fnstsw ax
test ah, 0x41
jne 0x4adb52
mov dword [esp + 0x2c], 0x3f000000
jmp 0x4adb77
fld dword [esp + 0x30]
fmul dword [0x66c958]
fsubr dword [0x66c410]
fld qword [str.ffffff]
call fcn.00623800
fadd dword [0x66c408]
fstp dword [esp + 0x2c]
lea eax, [esp + 0x34]
push 0x7b49f8
mov edx, eax
call fcn.004ca120
mov ebx, 1
add esp, 4
cmp word [esp + 0xc4], bx
je 0x4adbe5
lea ecx, [esp + 0x1c]
mov edx, eax
mov esi, 0x7b49e8
mov edi, 0x7b4994
call fcn.00509a30
test al, al
je 0x4adbe5
movsx eax, word [0x7b49c2]
movsx ecx, word [0x7b49c0]
add eax, 0x140
mov dword [esp + 0x10], eax
add ecx, 0xf0
fild dword [esp + 0x10]
mov dword [esp + 0x10], ecx
fsubr dword [esp + 0x1c]
fild dword [esp + 0x10]
fsubr dword [esp + 0x20]
jmp 0x4adbf6
fld dword [esp + 0x34]
mov dword [esp + 0xc4], ebx
fld dword [esp + 0x38]
fchs
cmp word [esp + 0xc4], bx
mov ecx, dword [0x70b25c]
fld dword [ecx + 0x12c]
mov dword [esp + 0x10], 0
fadd dword [ecx + 0x128]
fsubr dword [0x66c4e8]
fmul dword [0x66c408]
fld dword [ecx + 0x124]
fadd dword [ecx + 0x120]
fsubr dword [0x66c4e4]
fmul dword [0x66c408]
fld st(0)
fmul st(2)
fstp dword [esp + 0x28]
fmul st(3)
fstp dword [esp + 0x18]
fmul st(1)
je 0x4adc6d
fld dword [esp + 0x28]
fmul dword [esp + 0x28]
fld st(1)
fmul st(2)
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
faddp st(1)
fcompp
fnstsw ax
test ah, 1
jne 0x4adcab
fld dword [esp + 0x28]
mov al, byte [ebp + 0x4c]
test al, 1
fmul dword [esp + 0x28]
fld st(1)
mov dword [esp + 0xc4], ebx
fmul st(2)
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
faddp st(1)
fdivp st(1)
fsqrt
fstp st(1)
fld st(0)
fmulp st(3)
fmulp st(1)
jne 0x4adcad
fld st(1)
fld st(1)
fpatan
fchs
fstp dword [esp + 0x10]
jmp 0x4adcad
fstp st(0)
mov ecx, dword [ecx + 0x15c]
fxch st(1)
fadd dword [0x66cb64]
lea edx, [esp + 0x28]
push edx
movsx edx, word [esp + 0xc8]
lea eax, [esp + 0x1c]
fstp dword [esp + 0x20]
push eax
fadd dword [0x66cb68]
xor eax, eax
mov ax, word [ebp + edx*2 + 0x34]
xor esi, esi
fstp dword [esp + 0x28]
mov dword [esp + 0x20], esi
mov dword [esp + 0x30], esi
push eax
push ecx
xor eax, eax
call fcn.004a9da0
mov ebx, dword [esp + 0x28]
add esp, 0x10
cmp ebx, esi
je 0x4ae02c
push 1
push esi
mov eax, ebx
call fcn.00444690
add esp, 8
test eax, eax
je 0x4ae02c
fld dword [esp + 0x1c]
call fcn.006343a4
fld dword [esp + 0x20]
mov word [esp + 0x18], ax
call fcn.006343a4
mov edx, dword [ebp + 0x2c]
push edx
mov word [esp + 0x1e], ax
call fcn.004a9a60
imul eax, eax, 0xff
add esp, 4
test eax, eax
jge 0x4add52
mov byte [esp + 0x17], 0
jmp 0x4add84
mov eax, dword [ebp + 0x2c]
push eax
call fcn.004a9a60
imul eax, eax, 0xff
add esp, 4
cmp eax, 0xff
jle 0x4add72
mov byte [esp + 0x17], 0xff
jmp 0x4add84
mov ecx, dword [ebp + 0x2c]
push ecx
call fcn.004a9a60
add esp, 4
neg al
mov byte [esp + 0x17], al
mov ecx, dword [ebp + 0x28]
lea eax, [esp + 0x1c]
call fcn.0043f640
fld dword [0x66c410]
fsub dword [ebp + 0x30]
fcom dword [0x66c40c]
fnstsw ax
test ah, 5
jp 0x4addae
fld dword [0x66c40c]
jmp 0x4addc5
fcom dword [0x66c410]
fnstsw ax
test ah, 0x41
jne 0x4addc3
fld dword [0x66c410]
jmp 0x4addc5
fld st(0)
fmul dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fcom dword [0x66c40c]
fnstsw ax
test ah, 5
jp 0x4adde2
fld dword [0x66c40c]
jmp 0x4addf9
fcom dword [0x66c410]
fnstsw ax
test ah, 0x41
jne 0x4addf7
fld dword [0x66c410]
jmp 0x4addf9
fld st(0)
fmul dword [esp + 0x20]
fstp dword [esp + 0x20]
fcom dword [0x66c40c]
fnstsw ax
test ah, 5
jp 0x4ade18
fstp st(0)
fld dword [0x66c40c]
jmp 0x4ade2d
fcom dword [0x66c410]
fnstsw ax
test ah, 0x41
jne 0x4ade2d
fstp st(0)
fld dword [0x66c410]
fmul dword [esp + 0x24]
mov al, byte [esp + 0xc8]
test al, al
fstp dword [esp + 0x24]
jne 0x4ade58
mov edx, dword [esp + 0x24]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
movzx ebp, byte [esp + 0x17]
lea eax, [esp + 0x1c]
push eax
shl ebp, 0x18
call fcn.004a9aa0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
or eax, ebp
push eax
push ecx
push edx
lea eax, [esp + 0x28]
push eax
push 4
xor cl, cl
mov eax, esi
mov edx, ebx
call fcn.004ab080
add esp, 0x18
cmp word [esp + 0xc4], 1
je 0x4ae02c
mov al, byte [esp + 0xc8]
test al, al
je 0x4ae02c
fld dword [esp + 0x30]
xor ecx, ecx
fmul dword [0x66cb60]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
xor eax, eax
lea edx, [esp + 0x1c]
mov ecx, 0x15
lea edi, [esp + 0x64]
fstp dword [esp + 0x30]
push edx
rep stosd dword es:[edi], eax
mov word [esp + 0x44], ax
call fcn.004a9aa0
or eax, ebp
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x20]
push eax
call fcn.004a9aa0
movsx ecx, word [ebx + 4]
fld dword [esi + 4]
fsub dword [esi]
movsx edx, word [esp + 0x20]
mov dword [esp + 0x18], ecx
or eax, ebp
fimul dword [esp + 0x18]
mov dword [esp + 0x18], edx
add esp, 8
mov dword [esp + 0x8c], eax
mov byte [esp + 0xa8], 3
mov byte [esp + 0xaa], 1
mov byte [esp + 0xa9], 5
fmul dword [0x66c408]
fmul dword [esp + 0x2c]
fmul dword [0x66cb6c]
fiadd dword [esp + 0x10]
call fcn.006343a4
fld dword [esi + 0xc]
fsub dword [esi + 8]
movsx ecx, word [esp + 0x1a]
mov di, ax
movsx eax, word [ebx + 6]
mov dword [esp + 0x10], eax
fimul dword [esp + 0x10]
mov dword [esp + 0x10], ecx
fmul dword [0x66c408]
fmul dword [esp + 0x2c]
fmul dword [0x66cb70]
fiadd dword [esp + 0x10]
call fcn.006343a4
fld qword [0x66c450]
mov dx, word [0x7b49c2]
fld qword [0x66c688]
sub dx, word [0x7b49ca]
mov ecx, dword [0x7b49c0]
sub ecx, dword [0x7b49c8]
add di, dx
add ax, cx
mov word [esp + 0x64], di
mov word [esp + 0x66], ax
call fcn.00623800
fst dword [esp + 0x10]
fmul dword [esp + 0x30]
fabs
fld dword [esp + 0x10]
call fcn.0062410a
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fistp dword [esp + 0x2c]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
push 0
push 0
push 0
push edx
push eax
call fcn.004a9a60
add esp, 4
push eax
mov eax, dword [esp + 0xd0]
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x58]
push edx
push eax
call fcn.004aa580
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret