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

Disassembly:
sub esp, 0xb0
push ebx
push ebp
push esi
mov esi, dword [esp + 0xc0]
push esi
call fcn.004a7410
add esp, 4
test eax, eax
je 0x4aeffb
push esi
call fcn.004a7390
add esp, 4
test eax, eax
jne 0x4aeffb
mov ebp, dword [0x11919f8]
lea eax, [esi + esi*2]
shl eax, 4
mov esi, dword [ebp + 0xd4]
xor ebx, ebx
add esi, eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x4c], esi
mov ecx, dword [esi + 4]
test ecx, ecx
jle 0x4aeffb
push edi
mov edx, dword [esi + 8]
mov eax, dword [ebp + 0xcc]
add edx, ebx
mov eax, dword [eax + edx*4]
cdq
xor eax, edx
sub eax, edx
lea edx, [eax + eax*2]
mov eax, dword [ebp + 0xc4]
lea edx, [eax + edx*8]
mov dword [esp + 0x30], edx
test byte [edx + 4], 4
je 0x4aefea
mov eax, dword [edx + 8]
xor edi, edi
test eax, eax
mov dword [esp + 0x2c], edi
jle 0x4aefea
mov eax, dword [edx + 0xc]
mov ebx, dword [ebp + 0xbc]
add eax, edi
mov eax, dword [ebx + eax*4]
mov dword [esp + 0x20], eax
xor eax, eax
test ecx, ecx
mov dword [esp + 0x38], eax
jle 0x4aefd6
mov ecx, dword [esi + 8]
mov edx, dword [ebp + 0xcc]
add ecx, eax
mov eax, dword [edx + ecx*4]
mov ecx, dword [ebp + 0xc4]
cdq
mov edi, eax
xor edi, edx
sub edi, edx
mov dword [esp + 0x40], edi
lea eax, [edi + edi*2]
lea ecx, [ecx + eax*8]
mov dword [esp + 0x48], ecx
test byte [ecx + 4], 4
jne 0x4aefb6
mov eax, dword [ecx + 8]
xor esi, esi
test eax, eax
mov dword [esp + 0x44], esi
jle 0x4aefb6
mov eax, dword [esp + 0x20]
cdq
mov ebx, eax
xor ebx, edx
sub ebx, edx
mov dword [esp + 0x24], ebx
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp + 0xbc]
add edx, esi
mov eax, dword [eax + edx*4]
cdq
xor eax, edx
sub eax, edx
cmp ebx, eax
jne 0x4aef9e
mov eax, dword [ecx + 0x10]
mov edx, dword [esp + 0xc4]
cmp eax, edx
jne 0x4aebc9
mov eax, dword [ecx + 0x14]
mov ecx, dword [ebp + 0xd4]
lea edx, [eax + eax*2]
shl edx, 4
add ecx, edx
mov edx, dword [ebp + 0xdc]
shl eax, 5
test byte [edx + eax + 4], 1
je 0x4aecb6
mov esi, dword [ecx + 4]
xor eax, eax
cmp esi, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], esi
jle 0x4aefb6
mov eax, dword [ecx + 8]
mov ecx, dword [ebp + 0xcc]
lea edx, [ecx + eax*4]
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
cdq
xor eax, edx
sub eax, edx
cmp eax, edi
je 0x4aec8e
mov edx, dword [ebp + 0xc4]
lea ecx, [eax + eax*2]
mov edi, dword [edx + ecx*8 + 8]
lea ebx, [edx + ecx*8]
xor ecx, ecx
test edi, edi
jle 0x4aec7e
mov eax, dword [ebx + 0xc]
mov esi, dword [ebp + 0xbc]
lea esi, [esi + eax*4]
mov eax, dword [esi]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x24]
cmp eax, edx
je 0x4aec5e
inc ecx
add esi, 4
cmp ecx, edi
jl 0x4aec45
jmp 0x4aec7e
mov eax, dword [ebx + 4]
test al, 1
jne 0x4aec6f
mov dword [esp + 0x1c], 1
jmp 0x4aec7e
not al
movsx eax, al
and eax, 4
shr eax, 2
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x24]
cmp ecx, edi
jl 0x4aecaa
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
inc eax
add edx, 4
cmp eax, esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], edx
jl 0x4aec14
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4aefb6
mov ecx, dword [ebp + 0xb4]
mov esi, dword [esp + 0x20]
mov edi, dword [ebp + 0xa4]
lea eax, [ecx + ebx*8]
xor ecx, ecx
test esi, esi
setl cl
mov edx, dword [eax + ecx*4]
lea edx, [edx + edx*2]
lea esi, [edi + edx*4]
xor edx, edx
test ecx, ecx
sete dl
mov ecx, dword [esp + 0x30]
mov eax, dword [eax + edx*4]
lea eax, [eax + eax*2]
fld dword [edi + eax*4]
fsub dword [esi]
lea edi, [edi + eax*4]
mov eax, dword [ecx]
lea ecx, [esp + 0x54]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0xac]
fstp dword [esp + 0x60]
fld dword [edi + 4]
fsub dword [esi + 4]
lea eax, [eax + edx*4]
lea edx, [esp + 0x60]
push ecx
push edx
push eax
fstp dword [esp + 0x70]
fld dword [edi + 8]
fsub dword [esi + 8]
fstp dword [esp + 0x74]
call fcn.00428910
lea eax, [esp + 0x60]
push eax
call fcn.004286f0
fstp st(0)
fld dword [esi]
fadd dword [edi]
push 0xffffffffffffffff
lea eax, [esp + 0x80]
push 4
push eax
fstp dword [esp + 0x2c]
fld dword [esi + 4]
fadd dword [edi + 4]
fstp dword [esp + 0x30]
fld dword [edi + 8]
fadd dword [esi + 8]
fld dword [esp + 0x2c]
fmul qword [0x4d73c0]
fstp dword [esp + 0x2c]
fld dword [esp + 0x30]
fmul qword [0x4d73c0]
fstp dword [esp + 0x30]
fmul qword [0x4d73c0]
fld dword [esp + 0x70]
fmul dword [0x4d739c]
fadd dword [esp + 0x2c]
fstp dword [esp + 0x2c]
fld dword [esp + 0x74]
fmul dword [0x4d739c]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x88], ecx
lea ecx, [esp + 0x2c]
fadd dword [esp + 0x30]
fstp dword [esp + 0x30]
fld dword [esp + 0x78]
fmul dword [0x4d739c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x8c], edx
fadd st(1)
fstp dword [esp + 0x34]
fstp st(0)
fld dword [esp + 0x34]
fsub dword [0x4d73a0]
fstp dword [esp + 0x90]
lea edx, [esp + 0xb8]
push ecx
push edx
call fcn.004b0470
mov ecx, 9
mov esi, eax
lea edi, [esp + 0x9c]
add esp, 0x24
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x78]
test eax, eax
jne 0x4aefb0
lea eax, [esp + 0x80]
push eax
call fcn.004b0230
mov edi, eax
mov eax, dword [esp + 0xc8]
add esp, 4
cmp edi, eax
je 0x4aefb0
push edi
push eax
call fcn.004a74f0
add esp, 8
test eax, eax
jne 0x4aefb0
push edi
call fcn.004a7410
add esp, 4
test eax, eax
jne 0x4aee59
push edi
call fcn.004a7390
add esp, 4
test eax, eax
je 0x4aefb0
mov ebp, dword [0x11919f8]
mov ecx, edi
shl ecx, 5
mov edx, dword [ebp + 0xdc]
test byte [ecx + edx], 2
jne 0x4aefb6
call fcn.004a6de0
mov esi, eax
test esi, esi
je 0x4aefb0
mov eax, dword [esp + 0x20]
mov dword [esi], edi
mov dword [esi + 4], 0
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x10]
mov dword [esi + 0xc], ecx
mov edx, dword [esp + 0x14]
mov dword [esi + 0x10], edx
mov eax, dword [esp + 0x18]
mov dword [esi + 0x14], eax
mov ecx, dword [esp + 0x80]
mov dword [esi + 0x18], ecx
mov edx, dword [esp + 0x84]
mov dword [esi + 0x1c], edx
mov eax, dword [esp + 0x88]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 7
fld dword [esp + 0x18]
fsub dword [esp + 0x88]
fabs
fmul qword [0x4d8430]
fdiv dword [0x1188628]
fadd qword [0x4d8428]
call fcn.004c2c10
push edi
mov word [esi + 0x28], ax
call fcn.004a7390
add esp, 4
test eax, eax
jne 0x4aef65
push edi
call fcn.004a7450
add esp, 4
test eax, eax
jne 0x4aef65
fld dword [esp + 0x18]
fsub dword [esp + 0x88]
push ecx
fstp dword [esp]
call fcn.004a72e0
fcomp dword [0x4d8420]
add esp, 4
fnstsw ax
test ah, 0x41
jne 0x4aef3b
add word [esi + 0x28], 0x190
jmp 0x4aef65
fld dword [esp + 0x18]
fsub dword [esp + 0x88]
push ecx
fstp dword [esp]
call fcn.004a72e0
fcomp dword [0x4d8364]
add esp, 4
fnstsw ax
test ah, 0x41
jne 0x4aef65
add word [esi + 0x28], 0x384
mov ecx, dword [0x11885b4]
mov eax, dword [esp + 0xc4]
mov edi, dword [esp + 0x40]
mov edx, dword [ecx + eax*4]
mov dword [esi + 0x2c], edx
mov ecx, dword [0x11885b4]
mov dword [ecx + eax*4], esi
mov eax, dword [0x1188604]
mov ebp, dword [0x11919f8]
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
inc eax
mov dword [0x1188604], eax
mov eax, dword [ecx + 8]
inc esi
cmp esi, eax
mov dword [esp + 0x44], esi
jl 0x4aeb9d
jmp 0x4aefb6
mov ebp, dword [0x11919f8]
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x38]
inc eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x38], eax
cmp eax, ecx
jl 0x4aeb4a
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov eax, dword [edx + 8]
inc edi
cmp edi, eax
mov dword [esp + 0x2c], edi
jl 0x4aeb2a
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esi + 4]
inc ebx
cmp ebx, ecx
mov dword [esp + 0x3c], ebx
jl 0x4aeaec
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret