Function at 0x1400013c0
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
push rdi
push r14
push r15
sub rsp, 0x560
mov rax, qword [0x140005040]
xor rax, rsp
mov qword [rsp + 0x550], rax
lea rcx, [0x140001090]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov ecx, 9
call fcn.1400017c4
xor ebp, ebp
mov rdi, rax
test rax, rax
je 0x140001418
xor eax, eax
mov qword [rdi], rax
mov byte [rdi + 8], al
jmp 0x140001420
mov rdi, rbp
nop dword [rax + rax]
mov dword [rdi], 0x6e72656b
mov ecx, 0xd
mov dword [rdi + 4], 0x32336c65
mov byte [rdi + 8], bpl
call fcn.1400017c4
mov rsi, rax
test rax, rax
je 0x140001450
xor eax, eax
mov qword [rsi], rax
mov dword [rsi + 8], eax
mov byte [rsi + 0xc], al
jmp 0x140001453
mov rsi, rbp
lea rax, [rsp + 0x28]
mov dword [rsi], 0x64616f4c
mov dword [rsi + 4], 0x7262694c
lea rcx, [rsp + 0x20]
mov dword [rsi + 8], 0x41797261
mov r8d, 3
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov byte [rsi + 0xc], bpl
call fcn.1400010d0
mov rax, qword gs:[0x30]
xor edx, edx
mov r15, qword [rsp + 0x20]
mov r8d, 0x208
mov rcx, qword [rax + 0x60]
mov r14, qword [rcx + 0x18]
lea rcx, [rsp + 0x340]
add r14, 0x20
mov rbx, qword [r14]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rsp + 0x130]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
cmp rbx, r14
je 0x140001588
nop dword [rax + 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 [rbx + 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, r15
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 0x140001605
mov rbx, qword [rbx]
cmp rbx, r14
jne 0x1400014e0
mov rdx, r15
lea rcx, str.failed_to_get_a_handle_to__ls_n
call fcn.140001690
mov r11, rbp
movsxd rax, dword [r11 + 0x3c]
mov r10d, ebp
mov ecx, dword [rax + r11 + 0x88]
add rcx, r11
mov r14d, dword [rcx + 0x1c]
mov r15d, dword [rcx + 0x24]
add r14, r11
mov r9d, dword [rcx + 0x20]
add r15, r11
mov ebx, dword [rcx + 0x18]
add r9, r11
test ebx, ebx
je 0x14000161a
nop dword [rax + rax]
mov r8d, dword [r9]
mov rax, rsi
add r8, r11
sub r8, rsi
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1400015f3
inc rax
test ecx, ecx
jne 0x1400015e0
test edx, edx
je 0x14000160b
inc r10d
add r9, 4
cmp r10d, ebx
jb 0x1400015d0
jmp 0x14000161a
mov r11, qword [rbx + 0x20]
jmp 0x14000159a
mov eax, r10d
movzx ecx, word [r15 + rax*2]
mov ebp, dword [r14 + rcx*4]
add rbp, r11
mov rcx, qword [rsp + 0x20]
lea rax, [rsp + 0x28]
mov qword [0x140005190], rbp
cmp rcx, rax
je 0x140001636
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rdi
call fcn.1400017cc
mov rcx, rsi
call fcn.1400017cc
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
mov ecx, 0xc000008e
call qword [sym.imp.KERNEL32.dll_RaiseException]