Function at 0x50d380
Capabilities:
Access peb ldr_data

Disassembly:
lea r12, [rsp - 0x18]
cmp r12, qword [r14 + 0x10]
jbe 0x50d6ec
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xe0], rdi
mov qword [rsp + 0xf8], r9
mov rdx, qword [rsp + 0xc0]
nop word [rax + rax]
cmp rsi, rdx
jne 0x50d6d8
cmp r10, rdx
jne 0x50d6d8
mov r10, qword [rsp + 0xa8]
nop word [rax + rax]
cmp r10, rdx
jne 0x50d6d8
mov qword [rsp + 0xf0], r8
mov qword [rsp + 0xe8], rsi
mov qword [rsp + 0xe0], rdi
mov qword [rsp + 0xf8], r9
mov rdi, rdx
shl rdi, 1
call fcn.0050c860
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x70], rcx
test rbx, rbx
je 0x50d44c
mov rcx, rbx
shl rcx, 3
mov rbx, rcx
call fcn.00476b20
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
xor edx, edx
xor esi, esi
jmp 0x50d466
lea rdx, [rdi + 1]
mov rcx, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
mov rsi, rax
mov rax, r9
mov rdi, qword [rsp + 0xc0]
cmp rdi, rdx
jle 0x50d5e0
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x60], rsi
mov rbx, qword [rsp + 0xf8]
mov rsi, qword [rbx + rdx*8]
sub rcx, rdx
mov qword [rsp + 0x68], rcx
mov r9, rcx
neg rcx
shl rdx, 3
sar rcx, 0x3f
and rdx, rcx
lea rcx, [rax + rdx]
mov qword [rsp + 0x80], rcx
mov qword [rsp], rcx
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], r9
mov rdx, qword [rsp + 0xe0]
mov qword [rsp + 0x18], rdx
mov r11, qword [rsp + 0xe8]
mov qword [rsp + 0x20], r11
mov r12, qword [rsp + 0xf0]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x30], rsi
call fcn.005169a0
xorps xmm15, xmm15
mov r14, qword [0x00bef178]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x88]
mov rbx, qword [rdx + rcx*8]
mov rsi, qword [rsp + 0x80]
mov qword [rsp], rsi
mov rsi, qword [rsp + 0xc0]
mov qword [rsp + 8], rsi
mov rdi, qword [rsp + 0x68]
mov qword [rsp + 0x10], rdi
mov rdi, qword [rsp + 0xa0]
mov qword [rsp + 0x18], rdi
mov r8, qword [rsp + 0xa8]
mov qword [rsp + 0x20], r8
mov r9, qword [rsp + 0xb0]
mov qword [rsp + 0x28], r9
mov r10, qword [rsp + 0xb8]
imul rbx, r10
mov qword [rsp + 0x30], rbx
call fcn.005169a0
xorps xmm15, xmm15
mov r14, qword [0x00bef178]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
add rdx, rcx
lea rbx, [rdx + rax]
mov rsi, qword [rsp + 0xc0]
mov rdi, qword [rsp + 0x50]
lea r8, [rdi + rsi]
mov r9, qword [rsp + 0x88]
mov qword [r9 + r8*8], rbx
cmp rcx, rdx
ja 0x50d5cd
cmp rax, rbx
jbe 0x50d5d7
mov eax, 1
jmp 0x50d452
xor eax, eax
jmp 0x50d452
test rsi, rsi
jne 0x50d63f
mov rdx, rdi
sub rdi, rcx
mov rsi, rdx
shl rdx, 3
sar rdi, 0x3f
and rdi, rdx
sub rbx, rsi
lea rdx, [rdi + rax]
cmp rsi, rbx
mov r8, rsi
cmovg rsi, rbx
test rdi, rdi
je 0x50d6cc
shl rsi, 3
mov rbx, rdx
mov rcx, rsi
nop dword [rax]
call fcn.00476e20
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x70]
mov r8, qword [rsp + 0xc0]
jmp 0x50d6cc
mov qword [rsp], rax
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rcx
sub rcx, rdi
mov rsi, rcx
neg rcx
mov r8, rdi
shl rdi, 3
sar rcx, 0x3f
and rcx, rdi
add rcx, rax
mov qword [rsp + 0x18], rcx
sub rbx, r8
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rsi
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0x40], rcx
call fcn.00516620
xorps xmm15, xmm15
mov r14, qword [0x00bef178]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x70]
mov r8, qword [rsp + 0xc0]
mov rbx, r8
add rsp, 0x90
pop rbp
ret
lea rax, [0x00675ee0]
lea rbx, [0x00735420]
call fcn.0046e2c0
nop
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x60], r9
mov qword [rsp + 0x68], r10
mov qword [rsp + 0x70], r11
call fcn.00474300
mov rax, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov r9, qword [rsp + 0x60]
mov r10, qword [rsp + 0x68]
mov r11, qword [rsp + 0x70]
jmp fcn.0050d380