Function at 0x507ea0
Capabilities:
Access peb ldr_data

Disassembly:
lea r12, [rsp - 0x30]
cmp r12, qword [r14 + 0x10]
jbe 0x508213
sub rsp, 0xb0
mov qword [rsp + 0xa8], rbp
lea rbp, [rsp + 0xa8]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0xd0], rdi
nop
test r9, r9
jne 0x507ff5
cmp rsi, rbx
jne 0x507f08
test rbx, rbx
jle 0x507f08
cmp rdi, rax
jne 0x507f08
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
test rcx, rcx
jle 0x507f2b
test r8, r8
jle 0x507f2b
lea r10, [rax + rcx*8]
lea r10, [r10 - 8]
lea r11, [rdi + r8*8]
lea r11, [r11 - 8]
cmp r11, r10
je 0x507ff5
cmp rsi, rcx
jg 0x507f35
mov rdx, rsi
jmp 0x507f9d
cmp rsi, 1
jne 0x507f6b
lea rax, [0x006475e0]
mov ebx, 1
mov rcx, rbx
call fcn.00449540
mov rdx, qword [rsp + 0x90]
mov rdi, qword [rsp + 0xd0]
mov esi, 1
mov ecx, 1
jmp 0x507f9d
lea rcx, [rsi + 4]
mov qword [rsp + 0x50], rcx
lea rax, [0x006475e0]
mov rbx, rsi
nop
call fcn.00449540
mov rdx, qword [rsp + 0x90]
mov rdi, qword [rsp + 0xd0]
mov rsi, rdx
mov rcx, qword [rsp + 0x50]
cmp rdx, rsi
mov rbx, rsi
cmovl rsi, rdx
cmp rdi, rax
je 0x507fe5
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0xa0], rax
shl rsi, 3
mov rbx, rdi
mov rcx, rsi
call fcn.00463e40
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x88]
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
test rsi, rsi
je 0x50819a
mov r10, r9
shr r9, 6
mov qword [rsp + 0x80], r9
lea r11, [r9 + rsi]
mov qword [rsp + 0x60], r11
lea rbx, [r9 + rsi]
lea rbx, [rbx + 1]
nop
cmp rcx, rbx
jl 0x508030
jae 0x5080d6
jmp 0x508207
mov qword [rsp + 0x78], r10
mov qword [rsp + 0x70], r8
test r11, r11
jne 0x508086
lea rax, [0x006475e0]
mov ebx, 1
mov rcx, rbx
call fcn.00449540
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0xd0]
mov r8, qword [rsp + 0x70]
mov r9, qword [rsp + 0x80]
mov r10, qword [rsp + 0x78]
mov r11, qword [rsp + 0x60]
mov ecx, 1
mov ebx, 1
jmp 0x5080d6
mov qword [rsp + 0x68], rbx
lea rcx, [r9 + rsi]
lea rcx, [rcx + 5]
mov qword [rsp + 0x48], rcx
lea rax, [0x006475e0]
nop
call fcn.00449540
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0xd0]
mov r8, qword [rsp + 0x70]
mov r9, qword [rsp + 0x80]
mov r10, qword [rsp + 0x78]
mov r11, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x68]
cmp rcx, r11
jb 0x5081fc
nop
cmp r9, r11
ja 0x5081f1
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x98], rax
sub rcx, r9
mov rbx, rcx
neg rcx
shl r9, 3
sar rcx, 0x3f
and r9, rcx
lea rcx, [rax + r9]
mov qword [rsp], rcx
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], r8
and r10, 0x3f
mov qword [rsp + 0x30], r10
call fcn.0050f800
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x60]
cmp rcx, rdx
jbe 0x5081e9
mov rsi, qword [rsp + 0x98]
mov qword [rsi + rdx*8], rax
mov rax, rsi
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
call fcn.00504220
mov rax, qword [rsp + 0x98]
mov rdx, qword [rsp + 0x40]
jmp 0x5081af
xor ebx, ebx
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
dec rdx
test rdx, rdx
jle 0x5081be
mov rsi, qword [rax + rdx*8 - 8]
test rsi, rsi
je 0x5081ac
mov rcx, qword [rsp + 0x48]
cmp rdx, rcx
ja 0x5081db
mov rbx, rdx
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
mov rax, rcx
mov rcx, rdx
mov rdx, rax
call fcn.00463560
mov rax, rdx
call fcn.004634e0
mov rax, r9
mov rcx, r11
call fcn.004635a0
mov rdx, rcx
mov rcx, r11
call fcn.00463560
mov rdx, rcx
mov rcx, rbx
call fcn.00463560
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
mov qword [rsp + 0x38], r9
call fcn.00460de0
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]
mov r9, qword [rsp + 0x38]
nop
jmp fcn.00507ea0