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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x67c
fld qword [ebp + 0x14]
fcomp qword [0x585c80]
push ebx
push esi
push edi
mov esi, ecx
fnstsw ax
test ah, 1
je 0x46e85f
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x18], 0
mov cl, byte [ebp + 0x20]
test cl, cl
je 0x46e87a
fld qword [ebp + 0x14]
fcomp qword [0x58e038]
fnstsw ax
test ah, 1
je 0x46ee00
test cl, cl
mov dword [esp + 0x3c], 4
je 0x46e8b6
fld qword [ebp + 0x14]
fcomp qword [0x58e030]
fnstsw ax
test ah, 1
je 0x46e89e
mov dword [esp + 0x3c], 1
fld qword [ebp + 0x14]
fcomp qword [0x58e028]
fnstsw ax
test ah, 0x41
jne 0x46e8b6
mov dword [esp + 0x3c], 6
fld qword [ebp + 0xc]
fadd qword [0x585c78]
fst qword [esp + 0x30]
fcomp qword [0x588958]
fnstsw ax
test ah, 0x41
jne 0x46e8de
fld qword [esp + 0x30]
fsub qword [0x588958]
fstp qword [esp + 0x30]
fld qword [esp + 0x30]
fmul qword [0x585b20]
xor eax, eax
mov dword [esp + 0xc0], 0
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
fst qword [esp + 0x40]
fadd qword [0x58df50]
lea eax, [esp + 0xd8]
mov dword [esp + 0xc4], 0
mov dword [esp + 0x5c], eax
fst qword [esp + 0x50]
fcos
fstp qword [esp + 0x90]
fld qword [esp + 0x40]
fadd qword [0x58df40]
fstp qword [esp + 0x18]
fld qword [ebp + 0x14]
fmul qword [0x585b20]
fst qword [esp + 0x28]
fsin
fld qword [esp + 0x18]
fcos
fmul st(1)
fstp qword [esp + 0x98]
fld qword [esp + 0x28]
fcos
fld qword [esp + 0x40]
fcos
fmul st(1)
fstp qword [esp + 0xa0]
fld qword [esp + 0x50]
fsin
fstp qword [esp + 0xa8]
fld qword [esp + 0x18]
fsin
fmul st(2)
fstp qword [esp + 0xb0]
fld qword [esp + 0x40]
fsin
fmul st(1)
fstp qword [esp + 0xb8]
fstp qword [esp + 0xc8]
fstp qword [esp + 0xd0]
fild dword [esp + 0x4c]
lea eax, [esp + 0x90]
lea ecx, [esp + 0x78]
mov ebx, 3
fmul qword [0x585b20]
fld st(0)
fcos
fstp qword [esp + 0x60]
fsin
fstp qword [esp + 0x68]
mov dword [ecx], 0
mov dword [ecx + 4], 0
fld qword [ecx]
lea edx, [esp + 0x60]
mov edi, 3
fld qword [eax]
fmul qword [edx]
add eax, 8
add edx, 8
dec edi
faddp st(1)
jne 0x46e9ec
fstp qword [ecx]
add ecx, 8
dec ebx
jne 0x46e9d4
fld qword [esp + 0x88]
call sub.MSVCRT.dll__CIasin
fst qword [esp + 0x28]
fmul qword [0x585b28]
fcomp qword [0x588960]
fnstsw ax
test ah, 0x40
jne 0x46ea5a
fld qword [esp + 0x80]
fld qword [esp + 0x78]
fpatan
fst qword [esp + 0x18]
fmul qword [0x585b28]
fcomp qword [0x585c78]
fnstsw ax
test ah, 1
je 0x46ea6a
fld qword [esp + 0x18]
fadd qword [0x58df40]
fstp qword [esp + 0x18]
jmp 0x46ea6a
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
fld qword [ebp + 0x14]
fmul qword [0x585b28]
fcomp qword [0x585c80]
fnstsw ax
test ah, 1
je 0x46eab3
fld qword [esp + 0x28]
fchs
fstp qword [esp + 0x28]
fld qword [esp + 0x18]
fadd qword [0x58df40]
fst qword [esp + 0x18]
fcomp qword [0x58b5c8]
fnstsw ax
test ah, 0x41
jne 0x46eab3
fld qword [esp + 0x18]
fsub qword [0x58b5c8]
fstp qword [esp + 0x18]
mov al, byte [ebp + 0x20]
test al, al
je 0x46eaf1
fld qword [0x58df50]
fsub qword [esp + 0x28]
fstp qword [esp + 0x28]
fld qword [esp + 0x18]
fadd qword [0x58df40]
fst qword [esp + 0x18]
fcomp qword [0x58b5c8]
fnstsw ax
test ah, 0x41
jne 0x46eaf1
fld qword [esp + 0x18]
fsub qword [0x58b5c8]
fstp qword [esp + 0x18]
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esi + 0xe8]
push edi
push ebx
push eax
push ecx
push edx
call fcn.00467aa0
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esi + 0xe8]
push edi
push ebx
push edx
push eax
push ecx
call fcn.00467aa0
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0x94]
push edx
mov edx, dword [esp + 0x5c]
push eax
push ecx
push edx
push edi
call fcn.00468d30
mov eax, dword [esp + 0x94]
mov edx, dword [esp + 0x88]
add esp, 0x4c
inc eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x4c]
add eax, edx
add edi, 8
cmp eax, 0xb4
mov dword [esp + 0x5c], edi
mov dword [esp + 0x4c], eax
jle 0x46e9ac
mov eax, dword [esp + 0x48]
mov edi, dword [ebp + 8]
lea ecx, [esp + 0xd8]
push eax
push ecx
push edi
mov ecx, esi
call fcn.00473090
mov al, byte [ebp + 0x24]
test al, al
jne 0x46ee00
fld qword [0x588960]
fsub qword [ebp + 0x14]
mov ebx, dword [esp + 0x44]
lea edx, [esp + 0x10]
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x20]
fmul qword [0x585b20]
push edx
mov edx, dword [esi + 0xe8]
push eax
sub esp, 8
fstp qword [esp]
push ebx
push ecx
push edx
call fcn.00467aa0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
push ecx
push edx
lea ecx, [esp + 0x100]
push eax
push ecx
call fcn.00468d30
fld qword [0x58e020]
fsub qword [ebp + 0x14]
add esp, 0x30
lea edx, [esp + 0x10]
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x20]
fmul qword [0x585b20]
push edx
mov edx, dword [esi + 0xe8]
push eax
sub esp, 8
fstp qword [esp]
push ebx
push ecx
push edx
call fcn.00467aa0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
push ecx
push edx
lea ecx, [esp + 0x108]
push eax
push ecx
call fcn.00468d30
add esp, 0x30
lea edx, [esp + 0xd8]
mov ecx, esi
push 2
push edx
push edi
call fcn.00473090
mov ebx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esi + 0xe8]
push ecx
push 0
push 0
push ebx
push edx
push eax
call fcn.00467aa0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push edx
push eax
lea edx, [esp + 0x100]
push ecx
push edx
call fcn.00468d30
mov edx, dword [esp + 0x80]
lea eax, [esp + 0x40]
lea ecx, [esp + 0x50]
push eax
mov eax, dword [esi + 0xe8]
push ecx
push 0x3fa1df46
push 0xa2529e84
push ebx
push edx
push eax
call fcn.00467aa0
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x70]
add esp, 0x4c
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
lea edx, [esp + 0xec]
push ecx
push edx
call fcn.00468d30
add esp, 0x14
lea eax, [esp + 0xd8]
mov ecx, esi
push 2
push eax
push edi
call fcn.00473090
fld qword [esp + 0x30]
fsub qword [0x588960]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
push edx
fmul qword [0x585b20]
mov edx, dword [esi + 0xe8]
push 0
push 0
fstp qword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push eax
push ecx
push edx
call fcn.00467aa0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
push ecx
push edx
lea ecx, [esp + 0x100]
push eax
push ecx
call fcn.00468d30
mov ecx, dword [esp + 0x64]
lea edx, [esp + 0x40]
lea eax, [esp + 0x50]
push edx
mov edx, dword [esp + 0x64]
push eax
mov eax, dword [esi + 0xe8]
push 0x3fa1df46
push 0xa2529e84
push ecx
push edx
push eax
call fcn.00467aa0
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
add esp, 0x4c
push ecx
push edx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
lea edx, [esp + 0xec]
push ecx
push edx
call fcn.00468d30
add esp, 0x14
lea eax, [esp + 0xd8]
mov ecx, esi
push 2
push eax
push edi
call fcn.00473090
mov al, byte [ebp + 0x28]
test al, al
je 0x46ee00
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esi + 0xe8]
push edx
push 0
push 0
push ebx
push eax
push ecx
call fcn.00467aa0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24