Function at 0x4af690
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 [0x719344]
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 0x4af6e6
movsx edx, ax
mov eax, dword [0x87a018]
mov eax, dword [eax + edx*4 + 4]
cmp eax, 0xffffffff
jne 0x4af6eb
or eax, 0xffffffff
jmp 0x4af700
mov ecx, dword [0x87a020]
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.005693b0
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 [0x672c88]
fnstsw ax
test ah, 0x41
jne 0x4af752
mov dword [esp + 0x2c], 0x3f000000
jmp 0x4af777
fld dword [esp + 0x30]
fmul dword [0x673048]
fsubr dword [0x672afc]
fld qword [str.ffffff]
call fcn.00628600
fadd dword [0x672af4]
fstp dword [esp + 0x2c]
lea eax, [esp + 0x34]
push 0x7c2d18
mov edx, eax
call fcn.004cbe20
mov ebx, 1
add esp, 4
cmp word [esp + 0xc4], bx
je 0x4af7e5
lea ecx, [esp + 0x1c]
mov edx, eax
mov esi, 0x7c2d08
mov edi, 0x7c2cb4
call fcn.0050dfd0
test al, al
je 0x4af7e5
movsx eax, word [0x7c2ce2]
movsx ecx, word [0x7c2ce0]
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 0x4af7f6
fld dword [esp + 0x34]
mov dword [esp + 0xc4], ebx
fld dword [esp + 0x38]
fchs
cmp word [esp + 0xc4], bx
mov ecx, dword [0x719344]
fld dword [ecx + 0x12c]
mov dword [esp + 0x10], 0
fadd dword [ecx + 0x128]
fsubr dword [0x672bd8]
fmul dword [0x672af4]
fld dword [ecx + 0x124]
fadd dword [ecx + 0x120]
fsubr dword [0x672bd4]
fmul dword [0x672af4]
fld st(0)
fmul st(2)
fstp dword [esp + 0x28]
fmul st(3)
fstp dword [esp + 0x18]
fmul st(1)
je 0x4af86d
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 0x4af8ab
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 0x4af8ad
fld st(1)
fld st(1)
fpatan
fchs
fstp dword [esp + 0x10]
jmp 0x4af8ad
fstp st(0)
mov ecx, dword [ecx + 0x15c]
fxch st(1)
fadd dword [0x67324c]
lea edx, [esp + 0x28]
push edx
movsx edx, word [esp + 0xc8]
lea eax, [esp + 0x1c]
fstp dword [esp + 0x20]
push eax
fadd dword [0x673250]
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.004ab9a0
mov ebx, dword [esp + 0x28]
add esp, 0x10
cmp ebx, esi
je 0x4afc2c
push 1
push esi
mov eax, ebx
call fcn.00444670
add esp, 8
test eax, eax
je 0x4afc2c
fld dword [esp + 0x1c]
call fcn.006392c4
fld dword [esp + 0x20]
mov word [esp + 0x18], ax
call fcn.006392c4
mov edx, dword [ebp + 0x2c]
push edx
mov word [esp + 0x1e], ax
call fcn.004ab660
imul eax, eax, 0xff
add esp, 4
test eax, eax
jge 0x4af952
mov byte [esp + 0x17], 0
jmp 0x4af984
mov eax, dword [ebp + 0x2c]
push eax
call fcn.004ab660
imul eax, eax, 0xff
add esp, 4
cmp eax, 0xff
jle 0x4af972
mov byte [esp + 0x17], 0xff
jmp 0x4af984
mov ecx, dword [ebp + 0x2c]
push ecx
call fcn.004ab660
add esp, 4
neg al
mov byte [esp + 0x17], al
mov ecx, dword [ebp + 0x28]
lea eax, [esp + 0x1c]
call fcn.0043f630
fld dword [0x672afc]
fsub dword [ebp + 0x30]
fcom dword [0x672af8]
fnstsw ax
test ah, 5
jp 0x4af9ae
fld dword [0x672af8]
jmp 0x4af9c5
fcom dword [0x672afc]
fnstsw ax
test ah, 0x41
jne 0x4af9c3
fld dword [0x672afc]
jmp 0x4af9c5
fld st(0)
fmul dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fcom dword [0x672af8]
fnstsw ax
test ah, 5
jp 0x4af9e2
fld dword [0x672af8]
jmp 0x4af9f9
fcom dword [0x672afc]
fnstsw ax
test ah, 0x41
jne 0x4af9f7
fld dword [0x672afc]
jmp 0x4af9f9
fld st(0)
fmul dword [esp + 0x20]
fstp dword [esp + 0x20]
fcom dword [0x672af8]
fnstsw ax
test ah, 5
jp 0x4afa18
fstp st(0)
fld dword [0x672af8]
jmp 0x4afa2d
fcom dword [0x672afc]
fnstsw ax
test ah, 0x41
jne 0x4afa2d
fstp st(0)
fld dword [0x672afc]
fmul dword [esp + 0x24]
mov al, byte [esp + 0xc8]
test al, al
fstp dword [esp + 0x24]
jne 0x4afa58
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.004ab6a0
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.004acc80
add esp, 0x18
cmp word [esp + 0xc4], 1
je 0x4afc2c
mov al, byte [esp + 0xc8]
test al, al
je 0x4afc2c
fld dword [esp + 0x30]
xor ecx, ecx
fmul dword [0x673248]
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.004ab6a0
or eax, ebp
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x20]
push eax
call fcn.004ab6a0
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 [0x672af4]
fmul dword [esp + 0x2c]
fmul dword [0x673254]
fiadd dword [esp + 0x10]
call fcn.006392c4
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 [0x672af4]
fmul dword [esp + 0x2c]
fmul dword [0x673258]
fiadd dword [esp + 0x10]
call fcn.006392c4
fld qword [0x672b40]
mov dx, word [0x7c2ce2]
fld qword [0x672d78]
sub dx, word [0x7c2cea]
mov ecx, dword [0x7c2ce0]
sub ecx, dword [0x7c2ce8]
add di, dx
add ax, cx
mov word [esp + 0x64], di
mov word [esp + 0x66], ax
call fcn.00628600
fst dword [esp + 0x10]
fmul dword [esp + 0x30]
fabs
fld dword [esp + 0x10]
call fcn.00628f0a
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.004ab660
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.004ac180
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret