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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x180091010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword gs:[0x58]
xor ebx, ebx
mov edx, dword [0x1800919b4]
mov r14, rcx
mov qword [r11 + 0x18], r15
mov ecx, 4
mov qword [r11 - 0x38], rbx
mov r15, qword [rax + rdx*8]
add r15, rcx
mov qword [r11 - 0x30], rbx
mov eax, dword [r15]
cmp dword [0x1800a39e0], eax
jle 0x1800503d4
lea rcx, [0x1800a39e0]
call fcn.180059360
cmp dword [0x1800a39e0], 0xffffffff
jne 0x1800503d4
mov rax, qword [0x180091d68]
lea rcx, [0x1800a39e0]
mov qword [0x1800a39c0], rax
call fcn.180059300
mov rax, qword [0x1800a39c0]
test rax, rax
je 0x1800503ee
lea rdx, [rsp + 0x50]
lea rcx, [r14 + 0xb8]
call rax
mov eax, dword [r15]
cmp dword [0x1800a39e0], eax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
jle 0x180050432
lea rcx, [0x1800a39e0]
call fcn.180059360
cmp dword [0x1800a39e0], 0xffffffff
jne 0x180050432
mov rax, qword [0x180091d68]
lea rcx, [0x1800a39e0]
mov qword [0x1800a39c0], rax
call fcn.180059300
mov rax, qword [0x1800a39c0]
test rax, rax
je 0x18005044c
lea rdx, [rsp + 0x40]
lea rcx, [r14 + 0xd0]
call rax
mov eax, dword [r15]
cmp dword [0x1800a39e0], eax
mov r15, qword [rsp + 0xa0]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbx
jle 0x180050498
lea rcx, [0x1800a39e0]
call fcn.180059360
cmp dword [0x1800a39e0], 0xffffffff
jne 0x180050498
mov rax, qword [0x180091d68]
lea rcx, [0x1800a39e0]
mov qword [0x1800a39c0], rax
call fcn.180059300
mov rax, qword [0x1800a39c0]
test rax, rax
je 0x1800504b2
lea rdx, [rsp + 0x30]
lea rcx, [r14 + 0xd8]
call rax
mov rax, qword [0x180091df0]
cmp dword [rax + 0x84], 1
jne 0x180050506
cmp byte [rax + 0x17], bl
je 0x180050506
xor edx, edx
call fcn.180054950
cmp dword [r14 + 0xb8], eax
jne 0x180050506
mov edx, 1
call fcn.180054950
mov dword [r14 + 0xb8], eax
mov rax, qword [0x180091df0]
cmp byte [rax + 0x19], bl
je 0x180050506
xor edx, edx
call fcn.180054ea0
test eax, eax
jle 0x180050506
mov dword [r14 + 0xd0], eax
mov rax, qword [0x180091ca8]
mov rcx, qword [0x180091c98]
test rax, rax
je 0x180050636
test rcx, rcx
je 0x180050636
mov r9, qword [rsp + 0x50]
lea rdx, str.Setting_P_d_as__ws__Skin:__ws___Extra_Moveset:__ws_
mov qword [rsp + 0x98], rbp
lea rbp, [rax + 0x80]
mov rax, rbp
sub rax, r14
neg rax
lea rax, [rcx + 0x80]
sbb ebx, ebx
lea rcx, str.CharacterDefinitionV2::LoadHook
cmp rax, r14
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
jne 0x180050582
mov ebx, 1
mov r8d, ebx
call fcn.18004e370
jmp 0x180050593
mov r8d, ebx
call fcn.18004e370
cmp rbp, r14
jne 0x18005062e
mov rax, qword [0x180091df0]
cmp dword [rax + 0x84], 0
jne 0x18005062e
cmp byte [rax + 0x17], 0
je 0x1800505c3
test ebx, ebx
jne 0x1800505c3
xor edx, edx
call fcn.180054950
test eax, eax
jle 0x1800505c3
mov dword [r14 + 0xb8], eax
mov rax, qword [0x180091df0]
cmp byte [rax + 0x18], 0
je 0x1800505e7
cmp ebx, 1
jne 0x1800505e7
mov edx, ebx
call fcn.180054950
test eax, eax
jle 0x1800505e7
mov dword [r14 + 0xb8], eax
mov rax, qword [0x180091df0]
cmp byte [rax + 0x19], 0
je 0x18005060a
test ebx, ebx
jne 0x18005060a
xor edx, edx
call fcn.180054ea0
test eax, eax
jle 0x18005060a
mov dword [r14 + 0xd0], eax
mov rax, qword [0x180091df0]
cmp byte [rax + 0x1a], 0
je 0x18005062e
cmp ebx, 1
jne 0x18005062e
mov edx, ebx
call fcn.180054ea0
test eax, eax
jle 0x18005062e
mov dword [r14 + 0xd0], eax
mov rbp, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180058a80
mov rbx, qword [rsp + 0xa8]
add rsp, 0x70
pop r14
pop rdi
pop rsi
ret