Function at 0x51e480
Capabilities:
Access peb ldr_data

Disassembly:
lea r12, [rsp - 0x70]
cmp r12, qword [r14 + 0x10]
jbe 0x51e9d3
sub rsp, 0xf0
mov qword [rsp + 0xe8], rbp
lea rbp, [rsp + 0xe8]
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x110], rdi
bt esi, 0
jb 0x51e4cf
nop dword [rax]
cmp qword [0x00903300], rsi
jg 0x51e4cf
cmp rsi, 2
jge 0x51e4f5
mov rbx, rsi
shl rbx, 1
cmp rcx, rbx
jb 0x51e9c7
nop
call fcn.0051e040
mov rbp, qword [rsp + 0xe8]
add rsp, 0xf0
ret
mov rdx, rsi
sar rsi, 1
nop dword [rax + rax]
cmp rdx, rsi
jb 0x51e9bc
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x100], rbx
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0x120], r8
mov qword [rsp + 0xa8], rdx
mov qword [rsp + 0xd8], rdi
mov qword [rsp + 0x108], rcx
nop
call fcn.0051e480
mov r8, qword [rsp + 0x120]
mov rdx, qword [rsp + 0x60]
sub r8, rdx
mov rsi, qword [rsp + 0xa8]
mov rax, rsi
sub rsi, rdx
shl rdx, 3
mov r11, r8
neg r8
sar r8, 0x3f
and r8, rdx
mov r12, qword [rsp + 0xd8]
lea rdi, [r12 + r8]
mov rcx, qword [rsp + 0x100]
cmp rax, rcx
ja 0x51e9b7
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0xa0], r11
mov qword [rsp + 0xb8], rdi
mov qword [rsp + 0x98], rdx
mov rdx, qword [rsp + 0x108]
sub rdx, rax
mov rbx, rcx
sub rbx, rax
shl rax, 3
mov qword [rsp + 0x90], rax
mov r12, rdx
neg rdx
sar rdx, 0x3f
and rdx, rax
mov r13, qword [rsp + 0xe0]
add rdx, r13
mov r8, r11
mov rax, rdx
mov rcx, r12
call fcn.0051e480
mov rax, qword [rsp + 0xa8]
mov rdx, qword [rsp + 0x60]
lea rcx, [rdx + rax*2]
mov r9, qword [rsp + 0x108]
cmp r9, rcx
jb 0x51e9af
mov rbx, rax
shl rax, 1
nop dword [rax]
cmp rcx, rax
jb 0x51e9aa
mov qword [rsp + 0x88], rax
sub r9, rax
mov qword [rsp + 0x50], r9
mov rsi, r9
neg r9
shl rbx, 4
sar r9, 0x3f
and r9, rbx
mov rbx, qword [rsp + 0xe0]
lea r8, [rbx + r9]
mov qword [rsp + 0xb0], r8
mov qword [rsp], r8
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rsi
mov r9, qword [rsp + 0xb8]
mov qword [rsp + 0x18], r9
mov r10, qword [rsp + 0x58]
mov qword [rsp + 0x20], r10
mov r11, qword [rsp + 0xa0]
mov qword [rsp + 0x28], r11
mov r12, qword [rsp + 0xd8]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], rdx
mov r13, qword [rsp + 0x120]
mov qword [rsp + 0x40], r13
call fcn.00527b80
xorps xmm15, xmm15
mov r14, qword [0x0097c110]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x48], 0
je 0x51e748
mov rax, qword [rsp + 0xb0]
mov qword [rsp], rax
mov rcx, qword [rsp + 0x60]
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 + 0x120]
mov qword [rsp + 0x28], rbx
mov rbx, qword [rsp + 0xb8]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsp + 0x58]
mov qword [rsp + 0x38], rbx
mov rbx, qword [rsp + 0xa0]
mov qword [rsp + 0x40], rbx
call fcn.00527b80
xorps xmm15, xmm15
mov r14, qword [0x0097c110]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rdx, qword [rsp + 0xa8]
lea rax, [rdx + rdx*2]
mov rcx, qword [rsp + 0x100]
nop dword [rax]
cmp rcx, rax
jb 0x51e9a5
mov rdx, qword [rsp + 0x108]
sub rdx, rax
mov qword [rsp + 0x70], rdx
mov rbx, rcx
sub rbx, rax
mov qword [rsp + 0x68], rbx
mov r10, rdx
neg rdx
shl rax, 3
sar rdx, 0x3f
and rax, rdx
mov rdx, qword [rsp + 0xe0]
add rax, rdx
mov qword [rsp + 0xc0], rax
mov rdi, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0x60]
mov r8, qword [rsp + 0x50]
mov rcx, r10
nop dword [rax]
call fcn.0051e480
mov rax, qword [rsp + 0xa8]
mov r9, rax
shl rax, 2
mov rcx, qword [rsp + 0x100]
nop dword [rax]
cmp rcx, rax
jb 0x51e9a0
mov rsi, rcx
sub rsi, rax
mov qword [rsp + 0x78], rsi
mov rdx, qword [rsp + 0x88]
cmp rdx, rsi
mov r10, rsi
cmovl rsi, rdx
mov r8, qword [rsp + 0x108]
mov rdx, r8
sub r8, rax
mov qword [rsp + 0x80], r8
mov r11, r8
neg r8
mov r12, r9
shl r9, 5
sar r8, 0x3f
and r9, r8
mov rbx, qword [rsp + 0xe0]
lea rdi, [rbx + r9]
mov qword [rsp + 0xc8], rdi
test r9, r9
je 0x51e88d
shl rsi, 3
mov rax, rdi
mov rcx, rsi
call fcn.00466800
mov rcx, qword [rsp + 0x100]
mov rdx, qword [rsp + 0x108]
mov rbx, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xc8]
mov r10, qword [rsp + 0x78]
mov r11, qword [rsp + 0x80]
mov r12, qword [rsp + 0xa8]
mov r13, qword [rsp + 0x60]
sub rdx, r13
mov qword [rsp + 0xa0], rdx
mov r15, rdx
neg rdx
sar rdx, 0x3f
mov rax, r10
mov r10, qword [rsp + 0x98]
and r10, rdx
lea rdx, [r10 + rbx]
mov qword [rsp + 0xd0], rdx
sub rcx, r13
mov qword [rsp + 0x98], rcx
mov rbx, rcx
mov rcx, r15
mov rsi, rax
mov r8, r11
mov r9, r12
mov rax, rdx
nop
call fcn.0051c9a0
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x78]
cmp rax, rcx
ja 0x51e997
mov r8, qword [rsp + 0x80]
sub r8, rax
sub rcx, rax
mov rdx, r8
neg r8
sar r8, 0x3f
mov r10, qword [rsp + 0x90]
and r8, r10
mov r10, qword [rsp + 0xc8]
lea rdi, [r10 + r8]
mov rbx, qword [rsp + 0x98]
mov rsi, rcx
mov r8, rdx
mov r9, rax
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xa0]
call fcn.0051c9a0
mov rax, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0xc0]
mov rsi, qword [rsp + 0x68]
mov r8, qword [rsp + 0x70]
mov r9, qword [rsp + 0xa8]
call fcn.0051cb60
mov rbp, qword [rsp + 0xe8]
add rsp, 0xf0
ret
call fcn.00465f20
nop dword [rax]
call fcn.00465f20
call fcn.00465f20
call fcn.00465f20
mov rdx, r9
call fcn.00465ee0
call fcn.00465f20
mov rax, rsi
mov rcx, rdx
call fcn.00465f20
mov rdx, rcx
mov rcx, rbx
call fcn.00465ee0
nop
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.00463800
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.0051e480