Function at 0x505380
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
lea r12, [rsp - 0x40]
cmp r12, qword [r14 + 0x10]
jbe 0x505747
push rbp
mov rbp, rsp
sub rsp, 0xb8
mov qword [rsp + 0xd8], rcx
mov qword [rsp + 0xd0], rbx
mov qword [rsp + 0xc8], rax
mov rax, rcx
mov rbx, rdi
call fcn.004f4140
nop dword [rax]
test rsi, rsi
jne 0x505734
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x68], rbx
mov rax, qword [0x005eec08]
nop
lea rbx, [0x006b5c38]
mov rsi, qword [rsp + 0xd0]
mov r8, rcx
mov r9, rdi
lea rcx, [0x00830ba0]
mov rdi, qword [rsp + 0xc8]
call fcn.004f7460
test rbx, rbx
jne 0x505721
mov qword [rsp + 0x60], rax
lea rax, [0x00617d20]
nop dword [rax]
call fcn.0040e5e0
mov qword [rsp + 0xa0], rax
mov rbx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x98]
call fcn.004f2080
movups xmm0, xmmword [rsp]
movups xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rsp + 0x70]
mov rcx, qword [rsp + 0xa0]
movups xmmword [rcx], xmm0
test al, al
je 0x505463
mov eax, 0x10
jmp 0x505467
xor ecx, ecx
xor eax, eax
test rcx, rcx
je 0x50559f
mov rbx, qword [rsp + 0xd0]
nop dword [rax + rax]
cmp rbx, 3
jne 0x505578
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x88], rcx
mov rdx, qword [rsp + 0xc8]
cmp word [rdx], 0x6374
jne 0x50550b
cmp byte [rdx + 2], 0x70
jne 0x50550b
lea rax, [0x006368a0]
call fcn.0040e5e0
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
cmp dword [0x00830f00], 0
jne 0x5054d8
mov rdx, qword [rsp + 0x88]
jmp 0x5054e8
call fcn.00467aa0
mov rdx, qword [rsp + 0x88]
mov qword [r11], rdx
mov qword [rax], rdx
mov rdx, qword [rsp + 0x60]
mov qword [rax + 0x18], rdx
mov rbx, rax
xor ecx, ecx
xor edi, edi
lea rax, [0x006b5578]
add rsp, 0xb8
pop rbp
ret
cmp word [rdx], 0x6475
jne 0x505580
cmp byte [rdx + 2], 0x70
jne 0x505580
lea rax, [0x006367e0]
nop
call fcn.0040e5e0
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
cmp dword [0x00830f00], 0
jne 0x505545
mov rdx, qword [rsp + 0x88]
jmp 0x505555
call fcn.00467aa0
mov rdx, qword [rsp + 0x88]
mov qword [r11], rdx
mov qword [rax], rdx
mov rdx, qword [rsp + 0x60]
mov qword [rax + 0x18], rdx
mov rbx, rax
xor ecx, ecx
xor edi, edi
lea rax, [0x006b5528]
add rsp, 0xb8
pop rbp
ret
mov rdx, qword [rsp + 0xc8]
mov rax, rdx
call fcn.0040bda0
xor ebx, ebx
lea rcx, [0x006b4a80]
mov rdi, rax
xor eax, eax
add rsp, 0xb8
pop rbp
ret
movups xmmword [rsp + 0xa8], xmm15
mov rax, qword [rsp + 0x60]
call fcn.0040bd20
lea rcx, [0x006153e0]
mov qword [rsp + 0xa8], rcx
mov qword [rsp + 0xb0], rax
lea rax, [rsp + 0xa8]
mov ebx, 1
mov rcx, rbx
call fcn.004c2380
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x58], rbx
mov rcx, qword [rsp + 0x98]
mov qword [rsp], rcx
mov rdx, qword [rsp + 0x68]
mov qword [rsp + 8], rdx
mov byte [rsp + 0x10], 0x3a
call fcn.004042e0
xorps xmm15, xmm15
mov r14, qword [0x00830e48]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0
jl 0x505662
xor eax, eax
lea rbx, [0x006b2268]
mov ecx, 1
mov rdi, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x68]
lea r8, [0x006550f2]
mov r9d, 2
mov r10, qword [rsp + 0x90]
mov r11, qword [rsp + 0x58]
call fcn.00450420
nop
jmp 0x50568f
xor eax, eax
mov rbx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x68]
lea rdi, [0x006b2270]
mov esi, 1
mov r8, qword [rsp + 0x90]
mov r9, qword [rsp + 0x58]
call fcn.00450360
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x48], rbx
lea rax, [0x00630b80]
call fcn.0040e5e0
mov rcx, qword [rsp + 0xd0]
mov qword [rax + 8], rcx
cmp dword [0x00830f00], 0
jne 0x5056c7
mov rdx, qword [rsp + 0xc8]
jmp 0x5056d7
call fcn.00467aa0
mov rdx, qword [rsp + 0xc8]
mov qword [r11], rdx
mov qword [rax], rdx
mov rdx, qword [rsp + 0x48]
mov qword [rax + 0x18], rdx
cmp dword [0x00830f00], 0
jne 0x5056f6
mov rdx, qword [rsp + 0x80]
jmp 0x505706
call fcn.00467aa0
mov rdx, qword [rsp + 0x80]
mov qword [r11], rdx
mov qword [rax + 0x10], rdx
mov rbx, rax
xor ecx, ecx
xor edi, edi
lea rax, [0x006b5640]
add rsp, 0xb8
pop rbp
ret
xor eax, eax
mov rdi, rcx
mov rcx, rbx
xor ebx, ebx
add rsp, 0xb8
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rsi
mov rdi, r8
add rsp, 0xb8
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
nop dword [rax + rax]
call fcn.00465b80
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.00505380