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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
push esi
push ebx
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
call dword [0x50090c]
fst qword [esp + 0x30]
fabs
fcomp qword [0x504eb8]
add esp, 8
fnstsw ax
test ah, 1
je 0x46c5cf
mov eax, 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x100]
push eax
push ebx
push esi
call dword [0x500938]
mov esi, dword [ebp + 0xc]
lea ecx, [esp + 0x10c]
push ecx
push esi
call fcn.0046a000
fst qword [esp + 0x24]
fabs
fcomp qword [0x502918]
add esp, 0x14
fnstsw ax
test ah, 1
jne 0x46c6c4
mov edx, dword [ebp + 0x14]
push edx
push esi
call fcn.0046a000
fstp qword [esp + 0x40]
fld qword [esp + 0x18]
fcomp qword [0x5028c8]
add esp, 8
fnstsw ax
test ah, 0x41
jne 0x46c63f
lea eax, [esp + 0xa0]
lea ecx, [esp + 0x100]
push eax
push esi
push ecx
jmp 0x46c650
lea edx, [esp + 0xa0]
lea eax, [esp + 0x100]
push edx
push eax
push esi
call dword [0x500a9c]
fld qword [esp + 0xac]
fabs
fcomp qword [0x502918]
add esp, 0xc
fnstsw ax
test ah, 1
je 0x46c6ec
fld qword [esp + 0xa8]
fabs
fcomp qword [0x502918]
fnstsw ax
test ah, 1
je 0x46c6ec
fld qword [esp + 0xb0]
fabs
fcomp qword [0x502918]
fnstsw ax
test ah, 1
je 0x46c6ec
fld qword [0x5028c8]
fabs
fcomp qword [0x502918]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
fnstsw ax
test ah, 1
je 0x46c60a
mov eax, dword [ebp + 0x18]
mov ecx, 6
mov esi, ebx
lea edi, [eax + 0x68]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x10]
lea edi, [eax + 0x80]
mov ecx, 6
xor eax, eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0x24]
test edi, edi
je 0x46c7c3
lea ecx, [esp + 0x48]
lea edx, [esp + 0xa0]
push ecx
lea eax, [esp + 0x104]
push edx
push eax
call dword [0x500aa0]
fld qword [esp + 0x54]
fadd qword [ebx]
mov eax, dword [ebp + 0x10]
lea ecx, [esp + 0x1b4]
lea edx, [esp + 0x54]
push ecx
push edx
push eax
fstp qword [esp + 0x60]
fld qword [esp + 0x68]
fadd qword [ebx + 8]
push ebx
fstp qword [esp + 0x6c]
fld qword [esp + 0x74]
fadd qword [ebx + 0x10]
fstp qword [esp + 0x74]
call dword [0x500a68]
add esp, 0x1c
test eax, eax
je 0x46cc94
lea ecx, [esp + 0x48]
lea edx, [esp + 0x1a8]
push ecx
push edx
push edi
call dword [0x500a6c]
add esp, 0xc
lea eax, [esp + 0x60]
fld qword [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x58]
lea edx, [esp + 0x6c]
fsub qword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x40]
push eax
push ecx
push edx
sub esp, 8
fstp qword [esp]
fld qword [esp + 0x3c]
sub esp, 8
fchs
fstp qword [esp]
call fcn.0046cca0
add esp, 0x34
test eax, eax
je 0x46cc94
fld qword [esp + 0x38]
fmul qword [0x502630]
fld qword [esp + 0x10]
fadd st(0), st(0)
fsub st(1)
fsub qword [esp + 0x68]
fstp qword [esp + 0x18]
fld qword [esp + 0x38]
fsub qword [esp + 0x18]
fstp qword [esp + 0x30]
fld qword [esp + 0x38]
fabs
fst qword [esp + 0x90]
fcomp qword [0x504eb8]
fnstsw ax
test ah, 1
je 0x46c83d
fstp st(0)
fld qword [esp + 0x10]
fsin
fadd st(0), st(0)
fld st(0)
fabs
fcomp qword [0x504eb8]
fnstsw ax
test ah, 0x41
jne 0x46cc92
test edi, edi
jne 0x46c8e6
fld qword [esp + 0x10]
fmul qword [esp + 0x28]
fdivrp st(1)
fst qword [esp + 0x40]
jmp 0x46c8ec
fld qword [esp + 0x18]
fmul qword [0x502630]
fstp qword [esp + 0x88]
fsin
fld qword [esp + 0x88]
fsin
fmul st(1)
fadd st(0), st(0)
fst qword [esp + 0x98]
fabs
fcomp qword [0x504eb8]
fnstsw ax
test ah, 0x41
jne 0x46cc92
fld qword [esp + 0x30]
fmul qword [0x502630]
fsin
fmul st(1)
fadd st(0), st(0)
fstp qword [esp + 0x40]
fstp st(0)
fld qword [esp + 0x40]
fabs
fcomp qword [0x504eb8]
fnstsw ax
test ah, 0x41
jne 0x46cc94
fld qword [esp + 0x18]
fadd qword [esp + 0x38]
fmul qword [0x502630]
fsub qword [esp + 0x10]
fsin
fmul qword [esp + 0x18]
fmul qword [esp + 0x28]
fdiv qword [esp + 0x98]
fld qword [esp + 0x10]
fsub qword [esp + 0x88]
fsin
fmul qword [esp + 0x30]
fmul qword [esp + 0x28]
fdiv qword [esp + 0x40]
fstp qword [esp + 0x40]
jmp 0x46c8ec
fstp st(0)
fld qword [esp + 0x60]
fld qword [esp + 0x18]
fabs
fcomp qword [0x504eb8]
fnstsw ax
test ah, 0x41
jne 0x46cc92
test edi, edi
je 0x46c91b
fld qword [esp + 0x90]
fcomp qword [0x502918]
fnstsw ax
test ah, 0x41
jne 0x46c925
fdiv qword [esp + 0x18]
fstp qword [esp + 0x20]
jmp 0x46c927
fstp st(0)
fld qword [esp + 0x30]
fabs
fcomp qword [0x504eb8]
fnstsw ax
test ah, 0x41
jne 0x46cc94
test edi, edi
je 0x46c956
fld qword [esp + 0x90]
fcomp qword [0x502918]
fnstsw ax
test ah, 0x41
jne 0x46c962
fld qword [esp + 0x40]
fdiv qword [esp + 0x30]
fstp qword [esp + 0x60]
lea eax, [esp + 0xe8]
lea ecx, [esp + 0xa0]
push eax
push ecx
push esi
call dword [0x500a9c]
fld qword [esp + 0xf4]
fabs
fcomp qword [0x502918]
add esp, 0xc
fnstsw ax
test ah, 1
je 0x46c9c2
fld qword [esp + 0xf0]
fabs
fcomp qword [0x502918]
fnstsw ax
test ah, 1
je 0x46c9c2
fld qword [esp + 0xf8]
fabs
fcomp qword [0x502918]
fnstsw ax
test ah, 1
jne 0x46cc94
fld qword [esp + 0xe8]
fmul qword [esp + 0x20]
mov ecx, 6
mov esi, ebx
lea edi, [esp + 0x148]
lea edx, [esp + 0xb8]
fadd qword [ebx]
rep movsd dword es:[edi], dword [esi]
fstp qword [esp + 0x70]
fld qword [esp + 0xf0]
fmul qword [esp + 0x20]
fadd qword [ebx + 8]
fstp qword [esp + 0x78]
fld qword [esp + 0xf8]
fmul qword [esp + 0x20]
mov ecx, dword [ebp + 0x14]
lea eax, [esp + 0xa0]
push edx
push eax
fadd qword [ebx + 0x10]
push ecx
fstp qword [esp + 0x8c]
call dword [0x500a9c]
fld qword [esp + 0xc4]
fabs
fcomp qword [0x502918]
add esp, 0xc
fnstsw ax
test ah, 1
je 0x46ca6d
fld qword [esp + 0xc0]
fabs
fcomp qword [0x502918]
fnstsw ax
test ah, 1
je 0x46ca6d
fld qword [esp + 0xc8]
fabs
fcomp qword [0x502918]
fnstsw ax
test ah, 1
jne 0x46cc94
fld qword [esp + 0x60]
fld qword [esp + 0xb8]
mov eax, dword [ebp + 0x10]
mov ecx, 6
fmul st(1)
mov esi, eax
lea edi, [esp + 0x130]
rep movsd dword es:[edi], dword [esi]
fadd qword [eax]
fstp qword [esp + 0xd0]
fld qword [esp + 0xc0]
fmul st(1)
fadd qword [eax + 8]
fstp qword [esp + 0xd8]
fld qword [esp + 0xc8]
fmul st(1)
fadd qword [eax + 0x10]
fstp qword [esp + 0xe0]
fsubr qword [esp + 0x20]
fld st(0)
fabs
fcomp qword [0x504eb8]
fnstsw ax
test ah, 0x41
jne 0x46cc3d
fld qword [esp + 0xd0]
fsub qword [esp + 0x70]
mov edi, dword [ebp + 0x1c]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edi
fmul qword [esp + 0x24]
push edx
lea ecx, [esp + 0x120]
push eax
lea edx, [esp + 0x154]
fdiv st(1)
push ecx
lea eax, [esp + 0x80]
push edx
push eax
fadd qword [esp + 0x88]
fstp qword [esp + 0x130]
fld qword [esp + 0xf0]
fsub qword [esp + 0x90]
fmul qword [esp + 0x38]
fdiv st(1)
fadd qword [esp + 0x90]
fstp qword [esp + 0x138]
fld qword [esp + 0xf8]
fsub qword [esp + 0x98]
fmul qword [esp + 0x38]
fdiv st(1)
fadd qword [esp + 0x98]
fstp qword [esp + 0x140]
fstp st(0)
call fcn.00469ea0
add esp, 0x18
test eax, eax
je 0x46cc94
mov esi, dword [ebp + 0x20]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push esi
push ecx
lea eax, [esp + 0x138]
push edx
lea ecx, [esp + 0x124]
push eax
lea edx, [esp + 0xe0]
push ecx
push edx
call fcn.00469ea0
add esp, 0x18
test eax, eax
je 0x46cc94
lea eax, [esp + 0x178]
lea ecx, [esp + 0x190]
push eax
push ecx
push 0x3ff00000
push 0
push edi
call fcn.0046a050
lea edx, [esp + 0x174]
lea eax, [esp + 0x1a4]
push edx
push eax
push 0
push 0
push esi
call fcn.0046a050
lea ecx, [esp + 0x188]
lea edx, [esp + 0x1a0]
push ecx
push edx
call dword [0x500a70]
fcomp qword [0x5028c8]
add esp, 0x30
fnstsw ax
test ah, 1
jne 0x46cc94
fld qword [edi + 0xb8]
fabs
fcomp qword [0x5028a8]
fnstsw ax
test ah, 0x41
je 0x46cc94
fld qword [esi + 0xb8]
fabs
fcomp qword [0x5028a8]
fnstsw ax
test ah, 0x41
je 0x46cc94
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x1c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push esi
push eax
lea edx, [esp + 0x138]
push ecx
lea eax, [esp + 0x154]
push edx
lea ecx, [esp + 0x80]
push eax
push ecx
fstp st(0)
call fcn.00469ea0
add esp, 0x18
test eax, eax
je 0x46cc94
fld qword [esi + 0xb8]
fabs
fcomp qword [0x5028a8]
fnstsw ax
test ah, 0x41
je 0x46cc94
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fstp st(0)
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret