Function at 0x504850
Capabilities:
Execute anti-debugging instructions
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xc4
mov eax, dword [0x961870]
push ebx
mov dword [esp + 0x18], ecx
mov ecx, dword [0x96186c]
cmp ecx, eax
push esi
push edi
jae 0x50488e
mov dword [ecx], str.TtmultiRay_cvx
rdtsc
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [ecx + 4], eax
add ecx, 0xc
mov dword [0x96186c], ecx
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov eax, dword [eax + 8]
mov ecx, dword [ecx + 8]
add eax, 0x20
add ecx, 0x20
push eax
push ecx
lea ecx, [esp + 0x68]
mov dword [esp + 0x34], edx
call fcn.0054c890
mov eax, dword [esi + 0x14]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov ebx, dword [esi + 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ebx
jle 0x504bb4
lea esi, [ebx + 0x18]
mov dword [esp + 0x18], esi
fld dword [ebx]
mov ecx, dword [esp + 0x2c]
fld dword [esi - 0x14]
lea eax, [esp + 0xb0]
fld dword [esi - 0x10]
mov dword [esp + 0x3c], 0
fld dword [esp + 0x80]
push eax
fmul st(1)
lea eax, [esp + 0x34]
fld dword [esp + 0x74]
mov dword [esp + 0xc8], 0x3f800000
fmul st(3)
push eax
faddp st(1)
fld dword [esp + 0x68]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x98]
fstp dword [esp + 0x38]
fld dword [esp + 0x8c]
fmul st(1)
fld dword [esp + 0x7c]
fmul st(3)
faddp st(1)
fld dword [esp + 0x6c]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x9c]
fstp dword [esp + 0x3c]
fld dword [esp + 0x90]
fmul st(1)
fld dword [esp + 0x80]
fmul st(3)
faddp st(1)
fld dword [esp + 0x70]
fmul st(4)
faddp st(1)
fadd dword [esp + 0xa0]
fstp dword [esp + 0x40]
fstp st(0)
fstp st(0)
fstp st(0)
fld dword [esi - 8]
fld dword [esi - 4]
fld dword [esi]
mov dword [esp + 0x54], 0
fld dword [esp + 0x88]
fmul st(1)
fld dword [esp + 0x78]
fmul st(3)
faddp st(1)
fld dword [esp + 0x68]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x98]
fstp dword [esp + 0x48]
fld dword [esp + 0x8c]
fmul st(1)
fld dword [esp + 0x7c]
fmul st(3)
faddp st(1)
fld dword [esp + 0x6c]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x9c]
fstp dword [esp + 0x4c]
fld dword [esp + 0x90]
fmul st(1)
fld dword [esp + 0x80]
fmul st(3)
faddp st(1)
fld dword [esp + 0x70]
fmul st(4)
faddp st(1)
fadd dword [esp + 0xa0]
fstp dword [esp + 0x50]
mov edx, dword [ecx]
fstp st(0)
fstp st(0)
fstp st(0)
lea eax, [esp + 0x30]
push eax
call dword [edx + 0x20]
mov al, byte [esp + 0x28]
test al, al
jne 0x504a3e
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0xc]
lea eax, [edx + edi*4]
cmp byte [eax], 0
je 0x504b99
movzx eax, word [eax + 2]
mov ecx, dword [ecx + 8]
mov edx, dword [ecx]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0xc]
mov byte [edx + edi*4], 0
jmp 0x504b99
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax]
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 4]
and ecx, 0x7fffffff
cmp eax, ecx
jne 0x504a5e
push 0x30
push ebx
call fcn.0054d2c0
add esp, 8
mov eax, dword [ebx + 4]
fld dword [0x6419bc]
mov ecx, dword [ebx]
lea esi, [eax + eax*2]
shl esi, 4
add esi, ecx
inc eax
mov dword [ebx + 4], eax
fsub dword [esp + 0xc4]
fld dword [esp + 0x30]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 8]
fmul st(1)
lea edx, [esp + 0xa0]
fld dword [esp + 0x40]
push edx
fmul dword [esp + 0xc8]
add eax, 0x20
push eax
mov ecx, esi
faddp st(1)
fstp dword [esp + 0xa8]
fld dword [esp + 0x3c]
fmul st(1)
fld dword [esp + 0x4c]
fmul dword [esp + 0xcc]
faddp st(1)
fstp dword [esp + 0xac]
fld dword [esp + 0x40]
fmul st(1)
fld dword [esp + 0x50]
fmul dword [esp + 0xcc]
faddp st(1)
fstp dword [esp + 0xb0]
fld dword [esp + 0x44]
fmul st(1)
fld dword [esp + 0x54]
fmul dword [esp + 0xcc]
faddp st(1)
fstp dword [esp + 0xb4]
fstp st(0)
call fcn.0054cdc0
mov edx, dword [ebx + 8]
lea ecx, [esp + 0xb0]
push ecx
add edx, 0x20
push edx
lea ecx, [esi + 0x10]
call fcn.0054ce90
fld dword [esp + 0xc4]
fsub dword [0x6419bc]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
fmul dword [eax - 0xc]
fstp dword [esi + 0xc]
mov ecx, dword [ebx + 0xc]
lea eax, [ecx + edi*4]
cmp byte [eax], 0
mov dword [esp + 0x24], eax
jne 0x504b85
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebx + 8]
mov edx, dword [ecx]
push esi
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x24]
mov word [ecx + 2], ax
mov edx, dword [ebx + 0xc]
cmp word [edx + edi*4 + 2], 0xffff
lea eax, [edx + edi*4]
je 0x504b7d
mov byte [eax], 1
mov eax, dword [ebx + 0xc]
mov cx, word [eax + edi*4 + 2]
mov word [esi + 0x20], cx
jmp 0x504b85
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
dec dword [eax + 4]
mov eax, dword [ebx + 0xc]
mov cx, word [eax + edi*4 + 2]
mov ebx, dword [esp + 0x14]
mov word [esi + 0x20], cx
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
add ebx, 0x20
add esi, 0x20
inc edi
cmp edi, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
jl 0x5048d6
mov ecx, dword [0x96186c]
cmp ecx, dword [0x961870]
jae 0x504bde
mov dword [ecx], 0x6594f4
rdtsc
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x1c]
mov dword [ecx + 4], edx
add ecx, 0xc
mov dword [0x96186c], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10