Function at 0x140173324
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 r12, r9
and qword [r9], 0
mov r15, r8
mov r13, rdx
mov rcx, qword [rax + 0x68]
mov eax, dword [rcx]
cmp eax, 6
jne 0x14017340a
mov rax, qword gs:[0x60]
xor r14d, r14d
mov rbx, qword [rax + 0x68]
cmp dword [rbx + 0xc], r14d
jbe 0x1401733f4
lea rdi, [r14 + r14*2]
mov rdx, r15
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 0x1401733eb
mov ecx, dword [rbx + rdi*8 + 0x2c]
mov eax, dword [rbx + rdi*8 + 0x30]
add rcx, rbx
sub eax, 1
movsxd rsi, eax
js 0x1401733eb
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 0x1401733fe
mov ecx, dword [rdi - 4]
mov rdx, r13
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 0x1401733fe
sub rdi, 0x14
sub rsi, 1
jns 0x1401733bd
inc r14d
cmp r14d, dword [rbx + 0xc]
jb 0x14017337b
xor ebp, ebp
mov rax, rbp
jmp 0x140173554
mov eax, dword [rdi + 8]
shr rax, 1
mov qword [r12], rax
jmp 0x1401733f6
cmp eax, 4
jne 0x1401734a9
mov rax, qword gs:[0x60]
xor r14d, r14d
mov rbx, qword [rax + 0x68]
cmp dword [rbx + 0xc], r14d
jbe 0x1401733f4
lea rdi, [r14 + r14*2]
mov ecx, dword [rbx + rdi*8 + 0x14]
lea rdx, [r15 + 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 0x14017349a
mov ecx, dword [rbx + rdi*8 + 0x24]
add rcx, rbx
mov eax, dword [rcx + 4]
sub eax, 1
movsxd rsi, eax
js 0x14017349a
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 0x1401733fe
mov ecx, dword [rdi - 4]
mov rdx, r13
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 0x1401733fe
sub rdi, 0x14
sub rsi, 1
jns 0x140173468
inc r14d
cmp r14d, dword [rbx + 0xc]
jae 0x1401733f4
jmp 0x140173429
cmp eax, 2
jne 0x140173552
mov rax, qword gs:[0x60]
xor r14d, r14d
mov rbx, qword [rax + 0x68]
cmp dword [rbx + 4], r14d
jbe 0x1401733f4
lea rdi, [r14 + r14*2]
mov ecx, dword [rbx + rdi*4 + 8]
lea rdx, [r15 + 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 0x14017353b
mov ecx, dword [rbx + rdi*4 + 0x10]
add rcx, rbx
mov eax, dword [rcx]
sub eax, 1
movsxd rsi, eax
js 0x14017353b
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 0x14017354a
mov ecx, dword [rdi]
mov rdx, r13
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 0x14017354a
sub rdi, 0x10
sub rsi, 1
jns 0x14017350c
inc r14d
cmp r14d, dword [rbx + 4]
jae 0x1401733f4
jmp 0x1401734cc
mov eax, dword [rdi + 0xc]
jmp 0x140173401
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