Function at 0x140009220
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x140029040]
xor rax, rsp
mov qword [rbp + 0x210], rax
lea rdx, str.C:WindowsSystem32_
lea rcx, [rsp + 0x50]
call fcn.140013470
nop
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
sub rax, rdi
xor esi, esi
cmp rax, 9
jb 0x1400092af
lea rax, [rdi + 9]
mov qword [rsp + 0x60], rax
lea rbx, [rsp + 0x50]
cmp rcx, 7
cmova rbx, qword [rsp + 0x50]
lea rcx, [rbx + rdi*2]
mov r8d, 0x12
lea rdx, str.ntdll.dll
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2 + 0x12], si
jmp 0x1400092ce
mov qword [rsp + 0x20], 9
lea r9, str.ntdll.dll
mov edx, 9
lea rcx, [rsp + 0x50]
call fcn.140014f40
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 7
cmova rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x140009322
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._ERR_GetCurrentDirectoryW_failed:_n_terror__0x_08X_n
call fcn.140001180
jmp 0x1400094c1
lea rdx, [rbp]
lea rcx, str._INFO_NTDLLPath:_ls_n
call fcn.140001180
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 7
cmova rdx, qword [rsp + 0x50]
lea rcx, str._INFO_NTDLL___ls_n
call fcn.140001180
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movdqa xmm1, xmmword [0x1400220e0]
movdqu xmmword [rbp - 0x80], xmm1
mov word [rsp + 0x70], si
xor eax, eax
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x10], rax
movups xmmword [rbp - 0x60], xmm0
movdqa xmmword [rbp - 0x50], xmm1
mov word [rbp - 0x60], si
movups xmmword [rbp - 0x30], xmm0
movdqa xmmword [rbp - 0x20], xmm1
mov word [rbp - 0x30], si
mov byte [rbp - 0x10], al
mov qword [rbp - 0x38], rsi
mov dword [rbp - 0x40], esi
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x70], rsi
mov dword [rbp - 0xc], esi
lea rdx, [rbp]
lea rcx, [rsp + 0x30]
call fcn.140013470
nop
mov byte [rsp + 0x20], 0
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x70]
call fcn.140016a20
mov ebx, eax
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x140009419
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009414
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009414
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140018b60
test ebx, ebx
je 0x14000950a
lea rcx, str._ERR_SYMBOL_PARSER::Initialize_failed:_n
call fcn.140001180
mov edx, ebx
lea rcx, str._tSymbolErr_____0x_08X_n
call fcn.140001180
mov edx, dword [rbp - 0xc]
lea rcx, str._tLastWin32Err___08X_n
call fcn.140001180
mov eax, dword [rbp - 0xc]
add eax, 0x7ff3fffb
cmp eax, 1
ja 0x140009464
lea rcx, str._tSymbol_file_not_found_on_Microsoft_Public_Symbol_Server_n
call fcn.140001180
nop
lea rcx, [rbp - 0x70]
call fcn.140016200
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 7
jbe 0x1400094af
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400094aa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009569
call fcn.140018b60
movdqa xmm0, xmmword [0x1400220e0]
movdqu xmmword [rbp - 0x80], xmm0
mov word [rsp + 0x70], si
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140009503
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400094fe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400095c0
call fcn.140018b60
xor eax, eax
jmp 0x1400095cc
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 7
cmova rdx, qword [rsp + 0x70]
lea rcx, str._INFO_DownLoad_NTDLL_PDB_Success:_n_INFO_path___ls_n
call fcn.140001180
nop
lea rcx, [rbp - 0x70]
call fcn.140016200
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 7
jbe 0x140009575
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009570
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009570
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140018b60
movdqa xmm0, xmmword [0x1400220e0]
movdqu xmmword [rbp - 0x80], xmm0
mov word [rsp + 0x70], si
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x1400095cc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400095c7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400095c7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140018b60
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.140018b40
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret