Function at 0x140001300
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x560
mov rax, qword [0x140005040]
xor rax, rsp
mov qword [rsp + 0x550], rax
mov ecx, 9
call fcn.140001714
xor esi, esi
mov rdi, rax
test rax, rax
je 0x14000134d
xor eax, eax
mov qword [rdi], rax
mov byte [rdi + 8], al
jmp 0x140001350
mov rdi, rsi
mov dword [rdi], 0x6e72656b
mov ecx, 0xd
mov dword [rdi + 4], 0x32336c65
mov byte [rdi + 8], sil
call fcn.140001714
mov rbx, rax
test rax, rax
je 0x140001380
xor eax, eax
mov qword [rbx], rax
mov dword [rbx + 8], eax
mov byte [rbx + 0xc], al
jmp 0x140001383
mov rbx, rsi
mov dword [rbx], 0x64616f4c
mov ecx, 6
mov dword [rbx + 4], 0x7262694c
mov dword [rbx + 8], 0x41797261
mov byte [rbx + 0xc], sil
call fcn.140001714
test rax, rax
je 0x1400013b4
xor ecx, ecx
mov dword [rax], ecx
mov word [rax + 4], cx
jmp 0x1400013c0
mov rax, rsi
nop word [rax + rax]
mov dword [rax], 0x6c64746e
lea rcx, [rsp + 0x20]
mov word [rax + 4], 0x6c
mov r8d, 3
lea rax, [rsp + 0x28]
mov rdx, rdi
mov qword [rsp + 0x20], rax
call fcn.1400010a0
mov rax, qword gs:[0x30]
xor edx, edx
mov rbp, qword [rsp + 0x20]
mov r8d, 0x208
mov rcx, qword [rax + 0x60]
mov r14, qword [rcx + 0x18]
lea rcx, [rsp + 0x340]
add r14, 0x20
mov rdi, qword [r14]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rsp + 0x130]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
cmp rdi, r14
je 0x1400014e8
nop dword [rax]
xor edx, edx
lea rcx, [rsp + 0x340]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rsp + 0x130]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov r8, qword [rdi + 0x40]
lea rcx, [rsp + 0x340]
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov r8, rbp
lea rcx, [rsp + 0x130]
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov edx, 0x104
lea rcx, [rsp + 0x130]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr_s]
mov edx, 0x104
lea rcx, [rsp + 0x340]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr_s]
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x340]
call qword [sym.imp.SHLWAPI.dll_StrStrW]
test rax, rax
jne 0x140001565
mov rdi, qword [rdi]
cmp rdi, r14
jne 0x140001440
mov rdx, rbp
lea rcx, str.failed_to_get_a_handle_to__ls_n
call fcn.1400015e0
mov r11, rsi
movsxd rax, dword [r11 + 0x3c]
mov r10d, esi
mov ecx, dword [rax + r11 + 0x88]
add rcx, r11
mov ebp, dword [rcx + 0x1c]
mov r14d, dword [rcx + 0x24]
add rbp, r11
mov r9d, dword [rcx + 0x20]
add r14, r11
mov edi, dword [rcx + 0x18]
add r9, r11
test edi, edi
je 0x14000157a
nop word [rax + rax]
mov r8d, dword [r9]
mov rax, rbx
add r8, r11
sub r8, rbx
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140001553
inc rax
test ecx, ecx
jne 0x140001540
test edx, edx
je 0x14000156b
inc r10d
add r9, 4
cmp r10d, edi
jb 0x140001530
jmp 0x14000157a
mov r11, qword [rdi + 0x20]
jmp 0x1400014fa
mov eax, r10d
movzx ecx, word [r14 + rax*2]
mov esi, dword [rbp + rcx*4]
add rsi, r11
mov rcx, qword [rsp + 0x20]
lea rax, [rsp + 0x28]
mov qword [0x140005180], rsi
cmp rcx, rax
je 0x14000159d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rsi, qword [0x140005180]
lea rcx, str.advapi32
call rsi
xor eax, eax
mov rcx, qword [rsp + 0x550]
xor rcx, rsp
call fcn.1400019f0
lea r11, [rsp + 0x560]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret