Function at 0x180050860
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x180097010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword gs:[0x58]
xor ebx, ebx
mov edx, dword [0x1800979b4]
mov r14, rcx
mov ecx, 4
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
mov r15, qword [rax + rdx*8]
add r15, rcx
mov eax, dword [r15]
cmp dword [0x1800aa680], eax
jle 0x1800508eb
lea rcx, [0x1800aa680]
call fcn.18005e2d0
cmp dword [0x1800aa680], 0xffffffff
jne 0x1800508eb
mov rax, qword [0x180097d70]
lea rcx, [0x1800aa680]
mov qword [0x1800aa660], rax
call fcn.18005e270
mov rax, qword [0x1800aa660]
test rax, rax
je 0x180050905
lea rdx, [rsp + 0x50]
lea rcx, [r14 + 0xc0]
call rax
mov eax, dword [r15]
cmp dword [0x1800aa680], eax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
jle 0x180050949
lea rcx, [0x1800aa680]
call fcn.18005e2d0
cmp dword [0x1800aa680], 0xffffffff
jne 0x180050949
mov rax, qword [0x180097d70]
lea rcx, [0x1800aa680]
mov qword [0x1800aa660], rax
call fcn.18005e270
mov rax, qword [0x1800aa660]
test rax, rax
je 0x180050963
lea rdx, [rsp + 0x40]
lea rcx, [r14 + 0xd8]
call rax
mov eax, dword [r15]
cmp dword [0x1800aa680], eax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbx
jle 0x1800509a7
lea rcx, [0x1800aa680]
call fcn.18005e2d0
cmp dword [0x1800aa680], 0xffffffff
jne 0x1800509a7
mov rax, qword [0x180097d70]
lea rcx, [0x1800aa680]
mov qword [0x1800aa660], rax
call fcn.18005e270
mov rax, qword [0x1800aa660]
test rax, rax
je 0x1800509c1
lea rdx, [rsp + 0x30]
lea rcx, [r14 + 0xe0]
call rax
mov rax, qword [0x180097e48]
cmp dword [rax + 0xa4], 1
jne 0x180050a15
cmp byte [rax + 0x19], bl
je 0x180050a15
xor edx, edx
call fcn.180058290
cmp dword [r14 + 0xc0], eax
jne 0x180050a15
mov edx, 1
call fcn.180058290
mov dword [r14 + 0xc0], eax
mov rax, qword [0x180097e48]
cmp byte [rax + 0x1b], bl
je 0x180050a15
xor edx, edx
call fcn.180058810
test eax, eax
jle 0x180050a15
mov dword [r14 + 0xd8], eax
xor edx, edx
call fcn.180052270
mov edx, 1
mov rbp, rax
call fcn.180052270
test rbp, rbp
je 0x180050b37
test rax, rax
je 0x180050b37
mov r9, qword [rsp + 0x50]
lea rdx, str.Setting_P_d_as__ws__Skin:__ws___Extra_Moveset:__ws_
sub rbp, 0xffffffffffffff80
mov rcx, rbp
sub rcx, r14
neg rcx
lea rcx, str.CharacterDefinitionV2::LoadHook
sbb ebx, ebx
sub rax, 0xffffffffffffff80
cmp rax, r14
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
jne 0x180050a8a
mov ebx, 1
lea r8d, [rbx + 1]
call fcn.18004e880
jmp 0x180050a9c
lea r8d, [rbx + 1]
call fcn.18004e880
cmp rbp, r14
jne 0x180050b37
mov rax, qword [0x180097e48]
cmp dword [rax + 0xa4], 0
jne 0x180050b37
cmp byte [rax + 0x19], 0
je 0x180050acc
test ebx, ebx
jne 0x180050acc
xor edx, edx
call fcn.180058290
test eax, eax
jle 0x180050acc
mov dword [r14 + 0xc0], eax
mov rax, qword [0x180097e48]
cmp byte [rax + 0x1a], 0
je 0x180050af0
cmp ebx, 1
jne 0x180050af0
mov edx, ebx
call fcn.180058290
test eax, eax
jle 0x180050af0
mov dword [r14 + 0xc0], eax
mov rax, qword [0x180097e48]
cmp byte [rax + 0x1b], 0
je 0x180050b13
test ebx, ebx
jne 0x180050b13
xor edx, edx
call fcn.180058810
test eax, eax
jle 0x180050b13
mov dword [r14 + 0xd8], eax
mov rax, qword [0x180097e48]
cmp byte [rax + 0x1c], 0
je 0x180050b37
cmp ebx, 1
jne 0x180050b37
mov edx, ebx
call fcn.180058810
test eax, eax
jle 0x180050b37
mov dword [r14 + 0xd8], eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18005d9c0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret