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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x134
fldz
push ebx
fst qword [esp + 0xb8]
push esi
mov esi, dword [ebp + 8]
fst qword [esp + 0xc4]
fst qword [esp + 0xcc]
mov ebx, ecx
fst qword [esp + 0xd4]
push edi
fst qword [esp + 0xe0]
mov ecx, esi
fstp qword [esp + 0xe8]
call fcn.004f41c0
fstp qword [esp + 0xf0]
test word [esi + 0x20], 0xfff9
mov edi, dword [ebp + 0x14]
fild dword [edi + 0x10]
lea eax, [esi + 0x1c]
mov dword [esp + 0x64], eax
fst qword [esp + 0x110]
fild dword [edi + 0x14]
fstp qword [esp + 0x118]
fild dword [edi + 0x18]
fstp qword [esp + 0x120]
fild dword [eax]
fst qword [esp + 0x58]
fdivp st(1)
jne 0x5af31e
fst qword [esp + 0x28]
call sub.MSVCR90.dll__CIcos
fstp qword [esp + 0x48]
fld qword [esp + 0x28]
call sub.MSVCR90.dll__CIsin
fld qword [esp + 0x48]
fstp qword [esp + 0x90]
fstp qword [esp + 0x98]
fld qword [esp + 0x118]
fdiv qword [esp + 0x58]
fst qword [esp + 0x28]
call sub.MSVCR90.dll__CIcos
fstp qword [esp + 0x48]
fld qword [esp + 0x28]
call sub.MSVCR90.dll__CIsin
fld qword [esp + 0x48]
fstp qword [esp + 0xa0]
fstp qword [esp + 0xa8]
fld qword [esp + 0x120]
fdiv qword [esp + 0x58]
jmp 0x5af38a
fchs
fst qword [esp + 0x28]
call sub.MSVCR90.dll__CIcos
fstp qword [esp + 0x48]
fld qword [esp + 0x28]
call sub.MSVCR90.dll__CIsin
fld qword [esp + 0x48]
fstp qword [esp + 0x90]
fstp qword [esp + 0x98]
fld qword [esp + 0x118]
fdiv qword [esp + 0x58]
fchs
fst qword [esp + 0x28]
call sub.MSVCR90.dll__CIcos
fstp qword [esp + 0x48]
fld qword [esp + 0x28]
call sub.MSVCR90.dll__CIsin
fld qword [esp + 0x48]
fstp qword [esp + 0xa0]
fstp qword [esp + 0xa8]
fld qword [esp + 0x120]
fdiv qword [esp + 0x58]
fchs
fst qword [esp + 0x28]
call sub.MSVCR90.dll__CIcos
fstp qword [esp + 0x48]
fld qword [esp + 0x28]
call sub.MSVCR90.dll__CIsin
fld qword [esp + 0x48]
movzx eax, byte [edi + 8]
fstp qword [esp + 0xb0]
and eax, 0xf
sub eax, 1
fstp qword [esp + 0xb8]
je 0x5af4e4
sub eax, 1
je 0x5af494
sub eax, 1
jne 0x5af4ec
mov edi, dword [esp + 0xac]
fld qword [esp + 0x118]
mov eax, dword [esp + 0xa0]
fst qword [esp + 0x128]
fld qword [esp + 0x120]
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0xa8]
fstp qword [esp + 0x130]
mov dword [esp + 0xcc], edi
mov edi, dword [esp + 0xb0]
fstp qword [esp + 0x138]
mov dword [esp + 0xd0], edi
mov edi, dword [esp + 0xb4]
mov dword [esp + 0xd4], edi
mov edi, dword [esp + 0xb8]
mov dword [esp + 0xc0], eax
mov dword [esp + 0xd8], edi
mov edi, dword [esp + 0xbc]
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc8], edx
mov dword [esp + 0xdc], edi
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xe8], edx
mov dword [esp + 0xec], eax
mov dword [esp + 0x60], 4
jmp 0x5af4ec
mov ecx, dword [esp + 0xa0]
fld qword [esp + 0x118]
mov edx, dword [esp + 0xa4]
fstp qword [esp + 0x128]
mov eax, dword [esp + 0xa8]
mov dword [esp + 0xc0], ecx
mov ecx, dword [esp + 0xac]
mov dword [esp + 0xc4], edx
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], ecx
mov dword [esp + 0x60], 2
jmp 0x5af4ec
mov dword [esp + 0x60], 0
mov edx, dword [esi]
mov eax, dword [edx + 0x38]
mov ecx, esi
call eax
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fcom qword [edi]
fnstsw ax
test ah, 0x41
jp 0x5af54a
fsubr qword [edi]
mov ecx, dword [ebp + 0x10]
fstp qword [edi]
test byte [ecx], 1
jne 0x5afa7e
mov ecx, dword [0x6390ac]
push esi
call fcn.0056fa50
mov edx, dword [0x6390ac]
push 0
push 3
push edx
mov ecx, ebx
mov dword [0x6390bc], 3
call fcn.0056c870
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
fsub qword [edi]
lea eax, [esp + 0xf8]
push eax
mov ecx, esi
fstp qword [esp + 0x6c]
fild dword [esi + 0x14]
fld qword [0x601ef0]
fmul st(1), st(0)
fxch st(1)
fchs
fst qword [esp + 0x74]
fild dword [esi + 0x18]
fmulp st(2)
fxch st(1)
fchs
fst qword [esp + 0x7c]
fstp qword [esp + 0x8c]
fstp qword [esp + 0x84]
call fcn.004f2ea0
lea ecx, [esp + 0x30]
call fcn.00501a20
lea ecx, [esp + 0x38]
call fcn.00501a20
fld qword [edi]
fdiv qword [esp + 0x58]
xor eax, eax
test word [esi + 0x20], 0xfff9
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
je 0x5af5b9
fchs
fst qword [esp + 0x28]
call sub.MSVCR90.dll__CIcos
fstp qword [esp + 0x48]
fld qword [esp + 0x28]
call sub.MSVCR90.dll__CIsin
fld qword [esp + 0x48]
fld st(0)
mov edi, dword [ebp + 0x10]
test byte [edi], 1
fld qword [esp + 0x70]
fmul st(1), st(0)
fld st(3)
fld qword [esp + 0x78]
fmul st(1), st(0)
fxch st(3)
fsubrp st(1)
fxch st(2)
fmulp st(3)
fmulp st(3)
fxch st(1)
faddp st(2)
fst qword [esp + 0x48]
fstp qword [esp + 0x70]
fst qword [esp + 0x50]
fstp qword [esp + 0x78]
fld qword [0x5f3df0]
jne 0x5af732
fld qword [esp + 0x80]
fld st(0)
fld qword [esp + 0x58]
fmul st(1), st(0)
fxch st(1)
fadd qword [esp + 0xf8]
fldz
fcom st(1)
fnstsw ax
fxch st(1)
test ah, 0x41
jp 0x5af63c
fadd st(4)
jmp 0x5af63e
fsub st(4)
call fcn.005c3ce0
fld qword [esp + 0x88]
fld st(0)
mov dword [esp + 0x40], eax
fmulp st(3)
fxch st(2)
fadd qword [esp + 0x100]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 1
jne 0x5af66a
faddp st(3)
jmp 0x5af66c
fsubrp st(3)
fxch st(2)
call fcn.005c3ce0
fxch st(1)
sub esp, 0x10
fstp qword [esp + 8]
lea ecx, [esp + 0x38]
mov dword [esp + 0x54], eax
fstp qword [esp]
call fcn.004f0ec0
push eax
lea ecx, [esp + 0x34]
call fcn.00508610
fld qword [esp + 0x78]
sub esp, 0x10
fstp qword [esp + 8]
lea ecx, [esp + 0x38]
fld qword [esp + 0x80]
fstp qword [esp]
call fcn.004f0ec0
push eax
lea ecx, [esp + 0x3c]
call fcn.00508610
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
cmp eax, dword [esp + 0x38]
jne 0x5af6d2
cmp ecx, dword [esp + 0x3c]
je 0x5af734
mov edx, dword [esp + 0x64]
fld qword [esp + 0xf0]
neg ecx
mov dword [esp + 0x34], ecx
mov cx, word [esi + 0x20]
neg eax
and cx, 0xfff9
sub esp, 8
mov dword [esp + 0x38], eax
fstp qword [esp]
movzx eax, cx
mov ecx, dword [edx]
push eax
push ecx
lea eax, [esp + 0x48]
push eax
mov eax, dword [0x6390ac]
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x58]
push edx
push eax
mov ecx, ebx
call fcn.0056bd70
test eax, eax
je 0x5af734
mov ecx, dword [0x6390ac]
push 0
push 3
push ecx
mov ecx, ebx
call fcn.0056c870
jmp 0x5af734
fstp st(0)
mov eax, dword [edi]
cmp eax, dword [esp + 0x60]
jle 0x5af740
xor eax, eax
jmp 0x5af741
inc eax
lea edx, [esp + 0x70]
push edx
lea ecx, [esp + 0x84]
mov dword [edi], eax
call fcn.005c58d0
fld qword [esp + 0x68]
mov eax, dword [edi]
fsub qword [esp + eax*8 + 0x110]
fst qword [esp + 0x68]
fldz
fcom st(1)
fnstsw ax
test ah, 1
je 0x5af92a
mov eax, dword [edi]
fstp st(1)
mov ecx, eax
shl ecx, 4
fld qword [esp + ecx + 0x90]
lea ecx, [esp + ecx + 0x90]
fld qword [ecx + 8]
fld st(1)
fld qword [esp + 0x48]
fmul st(1), st(0)
fld qword [esp + 0x50]
fld st(0)
fmul st(4)
fsubp st(3)
fmulp st(4)
fmulp st(2)
fxch st(2)
faddp st(1)
fxch st(1)
fst qword [esp + 0x48]
fstp qword [esp + 0x70]
fst qword [esp + 0x50]
fstp qword [esp + 0x78]
test al, 1
jne 0x5af8e8
fld qword [esp + 0x80]
fld st(0)
fld qword [esp + 0x58]
fmul st(1), st(0)
fxch st(1)
fadd qword [esp + 0xf8]
fcom st(3)
fnstsw ax
fld qword [0x5f3df0]
test ah, 1
jne 0x5af7ed
fadd st(1), st(0)
jmp 0x5af7ef
fsub st(1), st(0)
fxch st(1)
call fcn.005c3ce0
fld qword [esp + 0x88]
fld st(0)
mov dword [esp + 0x40], eax
fmulp st(3)
fxch st(2)
fadd qword [esp + 0x100]
fcom st(4)
fnstsw ax
fstp st(4)
test ah, 1
jne 0x5af81d
faddp st(3)
jmp 0x5af81f
fsubp st(3)
fxch st(2)
call fcn.005c3ce0
fxch st(1)
sub esp, 0x10
fstp qword [esp + 8]
lea ecx, [esp + 0x38]
mov dword [esp + 0x54], eax
fstp qword [esp]
call fcn.004f0ec0
push eax
lea ecx, [esp + 0x34]
call fcn.00508610
fld qword [esp + 0x78]
sub esp, 0x10
fstp qword [esp + 8]
lea ecx, [esp + 0x118]
fld qword [esp + 0x80]
fstp qword [esp]
call fcn.004f0ec0
push eax
lea ecx, [esp + 0x3c]
call fcn.00508610
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
cmp eax, dword [esp + 0x38]
jne 0x5af888
cmp ecx, dword [esp + 0x3c]
je 0x5af8ea
mov dx, word [esi + 0x20]
fld qword [esp + 0xf0]
neg eax
neg ecx
sub esp, 8
and dx, 0xfff9
fstp qword [esp]
mov dword [esp + 0x38], eax
movzx eax, dx
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x6c]
mov ecx, dword [ecx]
push eax
push ecx
lea edx, [esp + 0x48]
push edx
mov edx, dword [0x6390ac]
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x58]
push ecx
push edx
mov ecx, ebx
call fcn.0056bd70
test eax, eax
je 0x5af8ea
mov eax, dword [0x6390ac]
push 0
push 3
push eax
mov ecx, ebx
call fcn.0056c870
jmp 0x5af8ea
fstp st(0)
mov eax, dword [edi]
cmp eax, dword [esp + 0x60]
jle 0x5af8f6
xor eax, eax
jmp 0x5af8f7
inc eax
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x84]
mov dword [edi], eax
call fcn.005c58d0
fld qword [esp + 0x68]
mov edx, dword [edi]
fsub qword [esp + edx*8 + 0x110]
fst qword [esp + 0x68]
fldz
fcom st(1)
fnstsw ax
test ah, 1
jne 0x5af774
test byte [edi], 1
jne 0x5afa75
fstp st(1)
fld qword [esp + 0x80]
fld st(0)
fld qword [esp + 0x58]
fmul st(1), st(0)
fxch st(1)
fadd qword [esp + 0xf8]
fcom st(3)
fnstsw ax
fld qword [0x5f3df0]
test ah, 1
jne 0x5af960
fadd st(1), st(0)
jmp 0x5af962
fsub st(1), st(0)
fxch st(1)
call fcn.005c3ce0
fld qword [esp + 0x88]
fld st(0)
mov dword [esp + 0x40], eax
fmulp st(3)
fxch st(2)
fadd qword [esp + 0x100]
fcom st(4)
fnstsw ax
fstp st(4)
test ah, 1
jne 0x5af990
faddp st(3)
jmp 0x5af992
fsubp st(3)
fxch st(2)
call fcn.005c3ce0
fxch st(1)
sub esp, 0x10
fstp qword [esp + 8]
lea ecx, [esp + 0x118]
mov dword [esp + 0x54], eax
fstp qword [esp]
call fcn.004f0ec0
push eax
lea ecx, [esp + 0x34]
call fcn.00508610
mov ecx, esi
call fcn.004f1ba0
sub esp, 8
mov ecx, esi
fstp qword [esp]
call fcn.004f1b70
sub esp, 8
lea ecx, [esp + 0x118]
fstp qword [esp]
call fcn.004f0ec0
push eax
lea ecx, [esp + 0x3c]
call fcn.00508610
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
cmp eax, dword [esp + 0x38]
jne 0x5afa03
cmp ecx, dword [esp + 0x3c]
je 0x5afa61
fld qword [esp + 0xf0]
neg eax
mov dword [esp + 0x30], eax
mov ax, word [esi + 0x20]
neg ecx
sub esp, 8
and ax, 0xfff9
fstp qword [esp]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x6c]
mov ecx, dword [ecx]
movzx eax, ax
push eax
push ecx
lea edx, [esp + 0x48]
push edx
mov edx, dword [0x6390ac]
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x58]
push ecx
push edx
mov ecx, ebx
call fcn.0056bd70
test eax, eax
je 0x5afa61
mov eax, dword [0x6390ac]
push 0
push 3
push eax
mov ecx, ebx
call fcn.0056c870
fld qword [esp + 0x68]
mov ecx, dword [ebp + 0xc]
fchs
fstp qword [ecx]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp + 0xc]
fstp st(0)
fchs
fstp qword [ecx]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10