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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, esi
and ebx, 7
mov eax, ebx
cmp eax, 7
mov dword [esp + 0x14], ecx
push edi
mov ecx, esi
jne 0x4a6add
mov eax, esi
and eax, 0xfffffff8
mov ecx, dword [eax + 4]
mov eax, ecx
and eax, ebx
cmp eax, 2
jne 0x4a6ae7
and ecx, 0x1f
mov eax, ecx
test eax, eax
mov edi, dword [ebp + 0xc]
jne 0x4a6b40
mov edx, edi
and edx, 7
mov eax, edx
cmp eax, 7
mov ecx, edi
jne 0x4a6b06
and ecx, 0xfffffff8
mov ecx, dword [ecx + 4]
mov eax, ecx
and eax, edx
cmp eax, 2
jne 0x4a6b10
and ecx, 0x1f
mov eax, ecx
test eax, eax
jne 0x4a6b40
cmp ebx, 7
jne 0x4a6b1f
and esi, 0xfffffff8
mov esi, dword [esi + 4]
cmp edx, 7
jne 0x4a6b2a
and edi, 0xfffffff8
mov edi, dword [edi + 4]
and edi, 0xfffffff8
and esi, 0xfffffff8
xor eax, eax
cmp esi, edi
setl al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp + 8]
call fcn.004023e0
test al, al
je 0x4a6c08
lea ecx, [ebp + 0xc]
call fcn.004023e0
test al, al
je 0x4a6c08
cmp ebx, 7
mov eax, esi
jne 0x4a6b6d
and esi, 0xfffffff8
mov eax, dword [esi + 4]
test al, 7
je 0x4a6b78
and eax, 0xfffffff8
fld qword [eax]
jmp 0x4a6b83
sar eax, 3
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
mov edx, edi
fstp qword [esp + 0x20]
and edx, 7
cmp dl, 7
mov eax, edi
jne 0x4a6b99
and edi, 0xfffffff8
mov eax, dword [edi + 4]
test al, 7
je 0x4a6ba4
and eax, 0xfffffff8
fld qword [eax]
jmp 0x4a6baf
sar eax, 3
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fstp qword [esp + 0x18]
sub esp, 8
fld qword [esp + 0x28]
fstp qword [esp]
call fcn.00434980
add esp, 8
test eax, eax
jne 0x4a6cf1
fld qword [esp + 0x18]
sub esp, 8
fstp qword [esp]
call fcn.00434980
add esp, 8
test eax, eax
jne 0x4a6cf1
fld qword [esp + 0x20]
fcomp qword [esp + 0x18]
fnstsw ax
test ah, 5
jp 0x4a6cfd
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, 2
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
push 1
lea eax, [esp + 0x14]
push eax
push esi
mov esi, dword [esp + 0x24]
mov ecx, esi
call fcn.004a5800
test eax, eax
je 0x4a6cfd
push 1
lea ecx, [esp + 0x18]
push ecx
push edi
mov ecx, esi
call fcn.004a5800
test eax, eax
je 0x4a6cfd
lea ecx, [esp + 0x10]
call fcn.0040c310
test al, al
je 0x4a6c9d
lea ecx, [esp + 0x14]
call fcn.0040c310
test al, al
je 0x4a6c9d
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x14]
call fcn.004630b0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
call fcn.004630b0
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x24]
call fcn.00436410
xor edx, edx
test eax, eax
setl dl
mov eax, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esp + 0x10]
push 0
push eax
mov ecx, esi
call fcn.00405770
fstp qword [esp + 0x20]
mov ecx, dword [esp + 0x14]
push 0
push ecx
mov ecx, esi
call fcn.00405770
fstp qword [esp + 0x18]
fld qword [esp + 0x20]
sub esp, 8
fstp qword [esp]
call fcn.00434980
add esp, 8
test eax, eax
jne 0x4a6cf1
fld qword [esp + 0x18]
sub esp, 8
fstp qword [esp]
call fcn.00434980
add esp, 8
test eax, eax
je 0x4a6be7
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8