Function at 0x1800a9088
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov r15, r9
and qword [r9], 0
mov r13, r8
mov r12, rdx
mov rcx, qword [rax + 0x68]
mov eax, dword [rcx]
cmp eax, 6
jne 0x1800a916d
mov rax, qword gs:[0x60]
xor r14d, r14d
mov rbx, qword [rax + 0x68]
cmp dword [rbx + 0xc], r14d
jbe 0x1800a9158
lea rdi, [r14 + r14*2]
mov rdx, r13
mov ecx, dword [rbx + rdi*8 + 0x20]
mov r8d, dword [rbx + rdi*8 + 0x28]
add rcx, rbx
shr r8, 1
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x1800a914f
mov ecx, dword [rbx + rdi*8 + 0x2c]
mov eax, dword [rbx + rdi*8 + 0x30]
add rcx, rbx
sub eax, 1
movsxd rsi, eax
js 0x1800a914f
lea rdi, [rsi*4 + 2]
add rdi, rsi
lea rdi, [rcx + rdi*4]
mov ebp, dword [rdi + 4]
add rbp, rbx
cmp dword [rdi], 0
je 0x1800a9162
mov ecx, dword [rdi - 4]
mov rdx, r12
mov r8d, dword [rdi]
add rcx, rbx
shr r8, 1
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
je 0x1800a9162
sub rdi, 0x14
sub rsi, 1
jns 0x1800a9121
inc r14d
cmp r14d, dword [rbx + 0xc]
jb 0x1800a90df
xor ebp, ebp
mov rax, rbp
jmp 0x1800a92b7
mov eax, dword [rdi + 8]
shr rax, 1
mov qword [r15], rax
jmp 0x1800a915a
cmp eax, 4
jne 0x1800a920c
mov rax, qword gs:[0x60]
xor r14d, r14d
mov rbx, qword [rax + 0x68]
cmp dword [rbx + 0xc], r14d
jbe 0x1800a9158
lea rdi, [r14 + r14*2]
mov ecx, dword [rbx + rdi*8 + 0x14]
lea rdx, [r13 + 8]
mov r8d, dword [rbx + rdi*8 + 0x18]
add rcx, rbx
shr r8, 1
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x1800a91fd
mov ecx, dword [rbx + rdi*8 + 0x24]
add rcx, rbx
mov eax, dword [rcx + 4]
sub eax, 1
movsxd rsi, eax
js 0x1800a91fd
lea rdi, [rsi + 1]
lea rdi, [rsi + rdi*4]
lea rdi, [rcx + rdi*4]
mov ebp, dword [rdi + 4]
add rbp, rbx
cmp dword [rdi], 0
je 0x1800a9162
mov ecx, dword [rdi - 4]
mov rdx, r12
mov r8d, dword [rdi]
add rcx, rbx
shr r8, 1
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
je 0x1800a9162
sub rdi, 0x14
sub rsi, 1
jns 0x1800a91cb
inc r14d
cmp r14d, dword [rbx + 0xc]
jae 0x1800a9158
jmp 0x1800a918c
cmp eax, 2
jne 0x1800a92b5
mov rax, qword gs:[0x60]
xor r14d, r14d
mov rbx, qword [rax + 0x68]
cmp dword [rbx + 4], r14d
jbe 0x1800a9158
lea rdi, [r14 + r14*2]
mov ecx, dword [rbx + rdi*4 + 8]
lea rdx, [r13 + 8]
mov r8d, dword [rbx + rdi*4 + 0xc]
add rcx, rbx
shr r8, 1
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x1800a929e
mov ecx, dword [rbx + rdi*4 + 0x10]
add rcx, rbx
mov eax, dword [rcx]
sub eax, 1
movsxd rsi, eax
js 0x1800a929e
mov rdi, rsi
shl rdi, 4
add rdi, 4
add rdi, rcx
mov ebp, dword [rdi + 8]
add rbp, rbx
cmp dword [rdi + 4], 0
je 0x1800a92ad
mov ecx, dword [rdi]
mov rdx, r12
mov r8d, dword [rdi + 4]
add rcx, rbx
shr r8, 1
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
je 0x1800a92ad
sub rdi, 0x10
sub rsi, 1
jns 0x1800a926f
inc r14d
cmp r14d, dword [rbx + 4]
jae 0x1800a9158
jmp 0x1800a922f
mov eax, dword [rdi + 0xc]
jmp 0x1800a9165
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret