Function at 0x18014d748
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 0x18014d82d
mov rax, qword gs:[0x60]
xor r14d, r14d
mov rbx, qword [rax + 0x68]
cmp dword [rbx + 0xc], r14d
jbe 0x18014d818
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 0x18014d80f
mov ecx, dword [rbx + rdi*8 + 0x2c]
mov eax, dword [rbx + rdi*8 + 0x30]
add rcx, rbx
sub eax, 1
movsxd rsi, eax
js 0x18014d80f
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 0x18014d822
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 0x18014d822
sub rdi, 0x14
sub rsi, 1
jns 0x18014d7e1
inc r14d
cmp r14d, dword [rbx + 0xc]
jb 0x18014d79f
xor ebp, ebp
mov rax, rbp
jmp 0x18014d977
mov eax, dword [rdi + 8]
shr rax, 1
mov qword [r15], rax
jmp 0x18014d81a
cmp eax, 4
jne 0x18014d8cc
mov rax, qword gs:[0x60]
xor r14d, r14d
mov rbx, qword [rax + 0x68]
cmp dword [rbx + 0xc], r14d
jbe 0x18014d818
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 0x18014d8bd
mov ecx, dword [rbx + rdi*8 + 0x24]
add rcx, rbx
mov eax, dword [rcx + 4]
sub eax, 1
movsxd rsi, eax
js 0x18014d8bd
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 0x18014d822
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 0x18014d822
sub rdi, 0x14
sub rsi, 1
jns 0x18014d88b
inc r14d
cmp r14d, dword [rbx + 0xc]
jae 0x18014d818
jmp 0x18014d84c
cmp eax, 2
jne 0x18014d975
mov rax, qword gs:[0x60]
xor r14d, r14d
mov rbx, qword [rax + 0x68]
cmp dword [rbx + 4], r14d
jbe 0x18014d818
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 0x18014d95e
mov ecx, dword [rbx + rdi*4 + 0x10]
add rcx, rbx
mov eax, dword [rcx]
sub eax, 1
movsxd rsi, eax
js 0x18014d95e
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 0x18014d96d
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 0x18014d96d
sub rdi, 0x10
sub rsi, 1
jns 0x18014d92f
inc r14d
cmp r14d, dword [rbx + 4]
jae 0x18014d818
jmp 0x18014d8ef
mov eax, dword [rdi + 0xc]
jmp 0x18014d825
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