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

Disassembly:
sub esp, 0xc8
push esi
mov esi, dword [esp + 0xd0]
push edi
push esi
call fcn.004a0b80
add esp, 4
test eax, eax
je 0x4a8575
push esi
call fcn.004a0b60
add esp, 4
test eax, eax
jne 0x4a8575
mov ecx, dword [0xc68e34]
lea esi, [esi + esi*2]
shl esi, 4
add esi, ecx
mov ecx, dword [esi + 4]
xor edi, edi
test ecx, ecx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x24], edi
jle 0x4a8575
push ebx
push ebp
mov edx, dword [esi + 8]
mov eax, edi
add eax, edx
mov edx, dword [0xc68e2c]
mov eax, dword [edx + eax*4]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [0xc68e24]
lea eax, [eax + eax*2]
lea eax, [edx + eax*8]
test byte [eax + 4], 4
mov dword [esp + 0x40], eax
je 0x4a8563
mov ebx, dword [eax + 8]
xor edx, edx
test ebx, ebx
mov dword [esp + 0x34], edx
jle 0x4a8563
mov ebx, dword [eax + 0xc]
mov eax, dword [0xc68e1c]
mov edi, edx
add edi, ebx
mov eax, dword [eax + edi*4]
mov dword [esp + 0x20], eax
xor eax, eax
test ecx, ecx
mov dword [esp + 0x44], eax
jle 0x4a854b
mov edi, dword [esi + 8]
mov ecx, dword [0xc68e2c]
add eax, edi
mov eax, dword [ecx + eax*4]
cdq
mov edi, eax
mov eax, dword [0xc68e24]
xor edi, edx
sub edi, edx
lea edx, [edi + edi*2]
lea esi, [eax + edx*8]
test byte [esi + 4], 4
mov dword [esp + 0x3c], edi
mov dword [esp + 0x58], esi
jne 0x4a852f
mov eax, dword [esi + 8]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x38], ecx
jle 0x4a852f
mov eax, dword [esp + 0x20]
cdq
mov ebx, eax
xor ebx, edx
sub ebx, edx
mov dword [esp + 0x28], ebx
jmp 0x4a809f
mov ebx, dword [esp + 0x28]
mov edx, dword [esi + 0xc]
mov eax, dword [0xc68e1c]
add edx, ecx
mov eax, dword [eax + edx*4]
cdq
xor eax, edx
sub eax, edx
cmp ebx, eax
jne 0x4a851f
mov ecx, dword [esi + 0x10]
cmp ecx, dword [esp + 0xdc]
jne 0x4a80c8
mov ecx, dword [esi + 0x14]
mov edx, dword [0xc68e34]
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, edx
lea edx, [ecx*8]
sub edx, ecx
mov ecx, dword [0xc68e3c]
test byte [ecx + edx*4 + 4], 1
je 0x4a81a9
mov ecx, dword [eax + 4]
xor ebx, ebx
cmp ecx, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x1c], ecx
jle 0x4a852f
mov edx, dword [eax + 8]
mov eax, dword [0xc68e2c]
lea edx, [eax + edx*4]
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
cdq
xor eax, edx
sub eax, edx
cmp eax, edi
je 0x4a8181
mov edx, dword [0xc68e24]
lea ecx, [eax + eax*2]
mov edi, dword [edx + ecx*8 + 8]
lea ebp, [edx + ecx*8]
xor ecx, ecx
test edi, edi
jle 0x4a8175
mov eax, dword [ebp + 0xc]
mov edx, dword [0xc68e1c]
lea esi, [edx + eax*4]
mov eax, dword [esi]
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [esp + 0x28]
je 0x4a815c
inc ecx
add esi, 4
cmp ecx, edi
jl 0x4a8145
jmp 0x4a8175
mov eax, dword [ebp + 4]
test al, 1
jne 0x4a816a
mov ebx, 1
jmp 0x4a8175
not al
movsx ebx, al
and ebx, 4
shr ebx, 2
cmp ecx, edi
jl 0x4a819d
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x24]
inc eax
add esi, 4
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], esi
jl 0x4a8114
test ebx, ebx
je 0x4a852f
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x20]
mov eax, dword [0xc68e14]
mov edi, dword [0xc68e04]
xor ecx, ecx
test ebp, ebp
setl cl
lea eax, [eax + ebx*8]
mov edx, dword [eax + ecx*4]
lea edx, [edx + edx*2]
lea esi, [edi + edx*4]
xor edx, edx
test ecx, ecx
mov ecx, dword [esp + 0x40]
sete dl
mov eax, dword [eax + edx*4]
lea eax, [eax + eax*2]
fld dword [edi + eax*4]
lea edi, [edi + eax*4]
fsub dword [esi]
mov eax, dword [ecx]
fld dword [edi + 4]
lea edx, [eax + eax*4]
fsub dword [esi + 4]
mov eax, dword [0xc68e0c]
fld dword [edi + 8]
lea eax, [eax + edx*4]
fsub dword [esi + 8]
lea ecx, [esp + 0x48]
push ecx
fld st(0)
fmul dword [eax + 4]
fld st(2)
fmul dword [eax + 8]
fsubp st(1)
fstp dword [esp + 0x4c]
fld st(2)
fmul dword [eax + 8]
fxch st(1)
fmul dword [eax]
fsubp st(1)
fstp dword [esp + 0x50]
fmul dword [eax]
fxch st(1)
fmul dword [eax + 4]
fsubp st(1)
fstp dword [esp + 0x54]
call fcn.0042c7d0
fstp st(0)
fld dword [esi]
fadd dword [edi]
fstp dword [esp + 0x14]
fld dword [esi + 4]
fadd dword [edi + 4]
fstp dword [esp + 0x18]
fld dword [edi + 8]
fadd dword [esi + 8]
fld dword [esp + 0x14]
fmul qword [0x4bc320]
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fmul qword [0x4bc320]
fstp dword [esp + 0x18]
fmul qword [0x4bc320]
fld dword [esp + 0x4c]
fmul dword [0x4bc2fc]
fadd dword [esp + 0x14]
fstp dword [esp + 0x14]
mov edx, dword [esp + 0x14]
fld dword [esp + 0x50]
mov dword [esp + 0x60], edx
fmul dword [0x4bc2fc]
fadd dword [esp + 0x18]
fstp dword [esp + 0x18]
mov eax, dword [esp + 0x18]
fld dword [esp + 0x54]
mov dword [esp + 0x64], eax
fmul dword [0x4bc2fc]
fadd st(1)
fstp dword [esp + 0x1c]
fstp st(0)
fld dword [esp + 0x1c]
push 0xffffffffffffffff
push 4
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x20]
fsub dword [0x4bc300]
push edx
lea eax, [esp + 0xc8]
push eax
fstp dword [esp + 0x7c]
call fcn.004a9720
mov esi, eax
mov ecx, 9
lea edi, [esp + 0x80]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x80]
add esp, 0x18
test eax, eax
jne 0x4a852f
lea ecx, [esp + 0x70]
push ecx
call fcn.004a9470
mov ebp, eax
mov eax, dword [esp + 0xe0]
add esp, 4
cmp ebp, eax
je 0x4a852f
push ebp
push eax
call fcn.004a0c40
add esp, 8
test eax, eax
jne 0x4a852f
push ebp
call fcn.004a0b80
add esp, 4
test eax, eax
jne 0x4a834e
push ebp
call fcn.004a0b60
add esp, 4
test eax, eax
je 0x4a852f
mov eax, dword [0xc68e3c]
lea edx, [ebp*8]
sub edx, ebp
test byte [eax + edx*4], 6
jne 0x4a852f
push 0xa
push 0
lea ecx, [esp + 0x94]
push ecx
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.004a9d90
mov edi, eax
add esp, 0x14
xor esi, esi
test edi, edi
jle 0x4a83b4
lea ebx, [esp + 0x8c]
mov ecx, dword [ebx]
push ecx
call fcn.004a0c00
add esp, 4
test eax, eax
jne 0x4a83ac
inc esi
add ebx, 4
cmp esi, edi
jl 0x4a8393
jmp 0x4a83b4
cmp esi, edi
jl 0x4a852f
fld dword [0xc68914]
fcomp dword [0x4bc2d8]
fnstsw ax
test ah, 0x40
jne 0x4a83e4
fld dword [esp + 0x18]
fsub dword [esp + 0x78]
fabs
fld dword [0xc68914]
fcompp
fnstsw ax
test ah, 1
jne 0x4a852f
call fcn.004a08e0
mov esi, eax
test esi, esi
je 0x4a852f
mov edx, dword [esp + 0x20]
mov dword [esi + 8], edx
mov dword [esi], ebp
mov dword [esi + 4], 0
mov eax, dword [esp + 0x10]
mov dword [esi + 0xc], eax
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x10], ecx
mov edx, dword [esp + 0x18]
mov dword [esi + 0x14], edx
mov eax, dword [esp + 0x70]
mov dword [esi + 0x18], eax
mov ecx, dword [esp + 0x74]
mov dword [esi + 0x1c], ecx
mov edx, dword [esp + 0x78]
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], 7
fld dword [esp + 0x18]
fsub dword [esp + 0x78]
fabs
fmul qword [0x4bd278]
fdiv dword [0xc68894]
fadd dword [0xc688ec]
call fcn.004aeed0
push ebp
mov word [esi + 0x28], ax
call fcn.004a0b60
add esp, 4
test eax, eax
jne 0x4a84ec
push ebp
call fcn.004a0bc0
add esp, 4
test eax, eax
jne 0x4a84ec
fld dword [esp + 0x18]
push ecx
fsub dword [esp + 0x7c]
fstp dword [esp]
call fcn.004a0ab0
fcomp dword [0xc688d0]
add esp, 4
fnstsw ax
test ah, 0x41
jne 0x4a84ae
xor eax, eax
mov ax, word [esi + 0x28]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fadd dword [0xc6890c]
jmp 0x4a84e3
fld dword [esp + 0x18]
push ecx
fsub dword [esp + 0x7c]
fstp dword [esp]
call fcn.004a0ab0
fcomp dword [0xc688d4]
add esp, 4
fnstsw ax
test ah, 0x41
jne 0x4a84ec
xor ecx, ecx
mov cx, word [esi + 0x28]
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
fadd dword [0xc68910]
call fcn.004aeed0
mov word [esi + 0x28], ax
mov edx, dword [0xc68810]
mov eax, dword [esp + 0xdc]
mov ecx, dword [edx + eax*4]
mov edi, dword [esp + 0x3c]
mov dword [esi + 0x2c], ecx
mov edx, dword [0xc68810]
mov ecx, dword [esp + 0x38]
mov dword [edx + eax*4], esi
mov eax, dword [0xc68850]
mov esi, dword [esp + 0x58]
inc eax
mov dword [0xc68850], eax
mov eax, dword [esi + 8]
inc ecx
cmp ecx, eax
mov dword [esp + 0x38], ecx
jl 0x4a809b
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x54]
mov ecx, dword [esi + 4]
inc eax
cmp eax, ecx
mov dword [esp + 0x44], eax
jl 0x4a8047
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x40]
mov edi, dword [eax + 8]
inc edx
cmp edx, edi
mov dword [esp + 0x34], edx
jl 0x4a8026
mov edi, dword [esp + 0x2c]
mov ecx, dword [esi + 4]
inc edi
cmp edi, ecx
mov dword [esp + 0x2c], edi
jl 0x4a7fe6
pop ebp
pop ebx
pop edi
pop esi
add esp, 0xc8
ret