Function at 0x164ca72b0
Capabilities:
Get common file path
Get disk information

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xcb0
mov rax, qword [0x164cf5010]
xor rax, rsp
mov qword [rsp + 0xca0], rax
mov r12, rcx
mov r13, rdx
mov rax, r8
mov qword [rsp + 0x38], rax
xor edi, edi
mov esi, edi
mov dword [rsp + 0x20], edi
mov r14, 0xffffffffffffffff
mov qword [rsp + 0x28], r14
movups xmm0, xmmword [str.SystemRoot_]
movups xmmword [rsp + 0x48], xmm0
movsd xmm0, qword [0x164ce0828]
movsd qword [rsp + 0x58], xmm0
movzx eax, word [0x164ce0830]
mov word [rsp + 0x60], ax
lea r8d, [rdi + 0xc]
lea rdx, [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x164ca7466
mov edx, 0x208
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x206
ja 0x164ca744a
mov eax, dword [0x164ce088c]
mov dword [rsp + 0x40], eax
movzx eax, word [0x164ce0890]
mov word [rsp + 0x44], ax
movzx eax, word [rsp + 0x70]
mov word [rsp + 0x40], ax
lea ebx, [rdi + 1]
mov r8d, 0x208
lea rdx, [rsp + 0x890]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov eax, eax
dec rax
cmp rax, 0x206
ja 0x164ca7440
mov edx, 0x208
lea rcx, [rsp + 0x480]
lea r8, [rsp + 0x890]
lea rax, [rsp + 0x480]
sub r8, rax
nop dword [rax]
lea rax, [rdx + 0x7ffffdf6]
test rax, rax
je 0x164ca73f2
movzx eax, word [r8 + rcx]
test ax, ax
je 0x164ca73f2
mov word [rcx], ax
add rcx, 2
sub rdx, rbx
jne 0x164ca73d0
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], di
mov ebx, 0x8007007a
cmovne ebx, edi
je 0x164ca7440
lea r8, [rsp + 0x74]
mov edx, 0x208
lea rcx, [rsp + 0x480]
call fcn.164ca78c0
mov ebx, eax
test eax, eax
js 0x164ca7440
lea r8, [r12 + 0x16]
mov edx, 0x208
lea rcx, [rsp + 0x480]
call fcn.164ca78c0
mov ebx, eax
test ebx, ebx
sete sil
mov dword [rsp + 0x20], esi
test esi, esi
jne 0x164ca745e
lea ecx, [rsi + 0x7a]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
jmp 0x164ca77aa
lea r12, [rsp + 0x480]
mov r8, qword [0x164cf5d20]
test r8, r8
je 0x164ca7487
cmp qword [0x164cf5d18], rdi
je 0x164ca7487
mov rax, qword [0x164cf5d10]
test rax, rax
jne 0x164ca74f1
lea rcx, str.KERNEL32.DLL
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x164ca74e3
lea rdx, str.FindFirstVolumeW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x164cf5d20], rax
lea rdx, str.FindNextVolumeW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x164cf5d18], rax
lea rdx, str.FindVolumeClose
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x164cf5d10], rax
jmp 0x164ca74ea
mov rax, qword [0x164cf5d10]
mov r8, qword [0x164cf5d20]
test r8, r8
je 0x164ca77a8
cmp qword [0x164cf5d18], rdi
je 0x164ca77a8
test rax, rax
je 0x164ca77a8
test r12, r12
jne 0x164ca7525
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x164ca777a
mov edx, 0x207
lea rcx, [rsp + 0x70]
mov rax, r8
call qword [0x164cdeeb8]
mov r14, rax
mov qword [rsp + 0x28], rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x164ca777a
mov rsi, 0xffffffffffffffff
inc rsi
cmp word [r12 + rsi*2], 0
jne 0x164ca7555
lea rax, [rsp + 0x47e]
nop dword [rax + rax]
mov word [rax], di
mov r8d, 8
lea rdx, str._UNC_
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x164ca759d
lea rcx, [rsp + 0x80]
lea r15d, [rax + 8]
jmp 0x164ca75cc
mov r8d, 4
lea rdx, [0x164ce0880]
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
jne 0x164ca75c4
lea rcx, [rsp + 0x78]
lea r15d, [rax + 4]
jmp 0x164ca75cc
lea rcx, [rsp + 0x70]
mov r15, rdi
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rcx + rbx*2], 0
jne 0x164ca75d3
mov qword [rsp + 0x30], rbx
test rbx, rbx
je 0x164ca7737
cmp word [rcx + rbx*2 - 2], 0x5c
jne 0x164ca75ff
dec rbx
mov qword [rsp + 0x30], rbx
mov word [rcx + rbx*2], di
mov r8d, 0x208
lea rdx, [rsp + 0x890]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov eax, eax
dec rax
cmp rax, 0x205
ja 0x164ca7737
lea rax, [rsp + 0x890]
mov rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], 0
jne 0x164ca7633
test rdi, rdi
je 0x164ca7735
mov r8, rdi
lea rdx, [rsp + 0x890]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x164ca7735
lea r14, [r12 + rdi*2]
movzx ecx, word [r14]
cmp ecx, 0x3a
ja 0x164ca767f
movabs rdx, 0x400800000000001
bt rdx, rcx
jb 0x164ca7688
cmp ecx, 0x5c
jne 0x164ca7730
test r13, r13
jne 0x164ca76a2
mov ecx, 0x6f8
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsp + 0x28]
jmp 0x164ca7776
add rbx, r15
mov qword [rsp + 0x30], rbx
cmp rsi, rdi
jae 0x164ca76c4
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsp + 0x28]
jmp 0x164ca7776
sub rsi, rdi
lea rdi, [rbx + rsi]
lea rax, [rdi + 1]
mov rcx, qword [rsp + 0x38]
cmp rcx, rax
jae 0x164ca76ee
mov ecx, 0x7a
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsp + 0x28]
jmp 0x164ca7776
mov r8, rcx
lea rdx, [rsp + 0x70]
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
lea rcx, [rbx*2]
add rcx, r13
mov r8, rsi
mov rdx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
xor eax, eax
mov word [r13 + rdi*2], ax
lea esi, [rax + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsp + 0x28]
jmp 0x164ca777a
mov r14, qword [rsp + 0x28]
xor edi, edi
mov r8d, 0x208
lea rdx, [rsp + 0x70]
mov rcx, r14
mov rax, qword [0x164cf5d18]
call qword [0x164cdeeb8]
test eax, eax
lea rax, [rsp + 0x47e]
jne 0x164ca7570
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x164ca7776
lea ecx, [rax - 0xf]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [rsp + 0x20]
lea rax, [r14 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x164ca77a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, r14
mov rax, qword [0x164cf5d10]
call qword [0x164cdeeb8]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
jmp 0x164ca77aa
xor eax, eax
mov rcx, qword [rsp + 0xca0]
xor rcx, rsp
call fcn.164cd6f70
add rsp, 0xcb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret