Function at 0x4a2160
Capabilities:
Access peb ldr_data

Disassembly:
lea r12, [rsp - 0x68]
cmp r12, qword [r14 + 0x10]
jbe 0x4a2608
push rbp
mov rbp, rsp
sub rsp, 0xe0
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0x108], rdi
bt esi, 0
jb 0x4a219f
cmp qword [0x005a6458], rsi
jg 0x4a219f
cmp rsi, 2
jge 0x4a21b3
mov rbx, rsi
shl rbx, 1
call fcn.004a1e80
add rsp, 0xe0
pop rbp
ret
mov qword [rsp + 0x100], rcx
mov qword [rsp + 0xf8], rbx
mov qword [rsp + 0x118], r8
mov qword [rsp + 0x110], rsi
mov qword [rsp + 0xd8], rdi
mov qword [rsp + 0xd0], rax
mov rdx, rsi
sar rdx, 1
mov qword [rsp + 0x88], rdx
mov rsi, rdx
call fcn.004a2160
mov r8, qword [rsp + 0x118]
mov rdx, qword [rsp + 0x88]
mov r9, r8
sub r9, rdx
mov qword [rsp + 0x60], r9
mov r10, rdx
shl rdx, 3
mov qword [rsp + 0xa0], rdx
mov r11, r9
neg r9
sar r9, 0x3f
and r9, rdx
mov r12, qword [rsp + 0xd8]
lea rdi, [r12 + r9]
mov qword [rsp + 0xb0], rdi
mov rsi, qword [rsp + 0x110]
mov r9, rsi
sub r9, r10
mov qword [rsp + 0x58], r9
mov rcx, qword [rsp + 0x100]
mov r13, rcx
sub r13, rsi
mov qword [rsp + 0x98], r13
mov r15, rsi
shl rsi, 3
mov qword [rsp + 0x90], rsi
neg r13
sar r13, 0x3f
and r13, rsi
mov rdx, qword [rsp + 0xd0]
add r13, rdx
mov r12, qword [rsp + 0xf8]
sub r12, r15
mov rax, r13
mov rbx, r12
mov rcx, qword [rsp + 0x98]
mov rsi, r9
mov r8, r11
call fcn.004a2160
mov rdx, qword [rsp + 0x110]
mov r9, rdx
shl rdx, 4
shl r9, 1
mov qword [rsp + 0x98], r9
mov r11, qword [rsp + 0x100]
sub r11, r9
mov qword [rsp + 0x50], r11
mov r13, r11
neg r11
sar r11, 0x3f
and rdx, r11
mov r11, qword [rsp + 0xd0]
add rdx, r11
mov qword [rsp + 0xa8], rdx
mov qword [rsp], rdx
mov r15, qword [rsp + 0x88]
mov qword [rsp + 8], r15
mov qword [rsp + 0x10], r13
mov r9, qword [rsp + 0xb0]
mov qword [rsp + 0x18], r9
mov r9, qword [rsp + 0x58]
mov qword [rsp + 0x20], r9
mov r9, qword [rsp + 0x60]
mov qword [rsp + 0x28], r9
mov r9, qword [rsp + 0xd8]
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x38], r15
mov r9, qword [rsp + 0x118]
mov qword [rsp + 0x40], r9
call fcn.004a8b60
xorps xmm15, xmm15
mov r14, qword [0x0060a418]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x48], 0
je 0x4a23ee
mov rax, qword [rsp + 0xa8]
mov qword [rsp], rax
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 8], rcx
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x10], rdx
mov rbx, qword [rsp + 0xd8]
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rcx
mov rbx, qword [rsp + 0x118]
mov qword [rsp + 0x28], rbx
mov rbx, qword [rsp + 0xb0]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsp + 0x58]
mov qword [rsp + 0x38], rbx
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x40], rbx
call fcn.004a8b60
xorps xmm15, xmm15
mov r14, qword [0x0060a418]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rdx, qword [rsp + 0x110]
lea r9, [rdx + rdx*2]
mov rcx, qword [rsp + 0x100]
mov r10, rcx
sub r10, r9
mov qword [rsp + 0x80], r10
mov rbx, qword [rsp + 0xf8]
mov r11, rbx
sub r11, r9
mov qword [rsp + 0x78], r11
mov r12, r10
neg r10
shl r9, 3
sar r10, 0x3f
and r10, r9
mov r9, qword [rsp + 0xd0]
lea rax, [r9 + r10]
mov qword [rsp + 0xc0], rax
mov rdi, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0x88]
mov r8, qword [rsp + 0x50]
mov rbx, r11
mov rcx, r12
call fcn.004a2160
mov r9, qword [rsp + 0x110]
mov rdx, r9
shl rdx, 5
mov r10, r9
shl r10, 2
mov rcx, qword [rsp + 0xf8]
mov rsi, rcx
sub rsi, r10
mov qword [rsp + 0x68], rsi
mov r8, qword [rsp + 0x100]
mov r11, r8
sub r11, r10
mov qword [rsp + 0x70], r11
mov r10, r11
neg r11
sar r11, 0x3f
and rdx, r11
mov rbx, qword [rsp + 0xd0]
lea rdi, [rbx + rdx]
mov qword [rsp + 0xb8], rdi
mov r11, qword [rsp + 0x98]
cmp r11, rsi
mov r12, rsi
cmovl r12, r11
test rdx, rdx
je 0x4a251d
shl r12, 3
mov rax, rdi
mov rcx, r12
call fcn.00466940
mov rcx, qword [rsp + 0xf8]
mov rbx, qword [rsp + 0xd0]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0xb8]
mov r8, qword [rsp + 0x100]
mov r9, qword [rsp + 0x110]
mov r10, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x88]
sub r8, rdx
mov qword [rsp + 0x98], r8
mov r11, r8
neg r8
sar r8, 0x3f
mov r12, qword [rsp + 0xa0]
and r8, r12
lea rax, [rbx + r8]
mov qword [rsp + 0xc8], rax
sub rcx, rdx
mov qword [rsp + 0xa0], rcx
mov rbx, rcx
mov rcx, r11
mov r8, r10
call fcn.004a0b00
mov r8, qword [rsp + 0x70]
mov r9, qword [rsp + 0x110]
sub r8, r9
mov rsi, qword [rsp + 0x68]
sub rsi, r9
mov rdx, r8
neg rdx
sar rdx, 0x3f
mov r10, qword [rsp + 0x90]
and rdx, r10
mov r10, qword [rsp + 0xb8]
lea rdi, [r10 + rdx]
mov rax, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x98]
nop dword [rax + rax]
call fcn.004a0b00
mov rax, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xc0]
mov rsi, qword [rsp + 0x78]
mov r8, qword [rsp + 0x80]
mov r9, qword [rsp + 0x110]
call fcn.004a0c60
add rsp, 0xe0
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], r8
call fcn.00463e80
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov r8, qword [rsp + 0x30]
jmp fcn.004a2160