Function at 0x140001380
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, [fcn.140001090]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov ecx, 9
call fcn.140001774
xor ebp, ebp
mov rdi, rax
test rax, rax
je 0x1400013d8
xor eax, eax
mov qword [rdi], rax
mov byte [rdi + 8], al
jmp 0x1400013e0
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.140001774
mov rsi, rax
test rax, rax
je 0x140001410
xor eax, eax
mov qword [rsi], rax
mov dword [rsi + 8], eax
mov byte [rsi + 0xc], al
jmp 0x140001413
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 0x140001548
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 0x1400015c5
mov rbx, qword [rbx]
cmp rbx, r14
jne 0x1400014a0
mov rdx, r15
lea rcx, str.failed_to_get_a_handle_to__ls_n
call fcn.140001640
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 0x1400015da
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 0x1400015b3
inc rax
test ecx, ecx
jne 0x1400015a0
test edx, edx
je 0x1400015cb
inc r10d
add r9, 4
cmp r10d, ebx
jb 0x140001590
jmp 0x1400015da
mov r11, qword [rbx + 0x20]
jmp 0x14000155a
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 0x1400015f6
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rdi
call fcn.14000177c
mov rcx, rsi
call fcn.14000177c
call fcn.140001310
xor eax, eax
mov rcx, qword [rsp + 0x550]
xor rcx, rsp
call fcn.140001a50
lea r11, [rsp + 0x560]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret