Function at 0x14002b6e0
Capabilities:
Get common file path
Get disk information
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x790
mov qword [rsp + 0xc8], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14010bfc0]
xor rax, rsp
mov qword [rsp + 0x780], rax
mov rbp, rdx
mov rbx, rcx
lea r8, str.CPrinterUninstaller::FindGhoulPath____r_n
mov edx, 2
lea r14, [0x14010f570]
mov rcx, r14
call fcn.140001000
xor r13d, r13d
mov esi, r13d
lea rdi, [rbx + 0x19c]
mov rcx, rdi
call fcn.1400980d0
cmp rax, r13
jbe 0x14002b75b
lea esi, [r13 + 1]
jmp 0x14002be0d
mov byte [rsp + 0x120], r13b
mov r15d, 0x103
mov r8, r15
xor edx, edx
lea rcx, [rsp + 0x121]
call fcn.1400988d0
lea rcx, [rsp + 0x98]
call fcn.14007035c
nop
mov qword [rsp + reloc.OLEAUT32.dll_SafeArrayDestroy0], 0xf
mov qword [rsp + 0xe8], r13
mov byte [rsp + 0xd8], r13b
lea r12, [0x1400c49dc]
mov rcx, r12
call fcn.1400980d0
mov r8, rax
mov rdx, r12
lea rcx, [rsp + 0xd0]
call fcn.14000352c
nop
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x40], r13d
mov qword [rsp + 0x118], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rsp + 0x110], r13
mov byte [rsp + 0x100], r13b
mov rcx, r12
call fcn.1400980d0
mov r8, rax
mov rdx, r12
lea rcx, [rsp + 0xf8]
call fcn.14000352c
nop
mov byte [rsp + 0x340], r13b
mov r8, r15
xor edx, edx
lea rcx, [rsp + 0x341]
call fcn.1400988d0
lea r12d, [r15 + 1]
mov dword [rsp + 0x34], r12d
mov byte [rsp + 0x670], r13b
mov r8, r15
xor edx, edx
lea rcx, [rsp + 0x671]
call fcn.1400988d0
mov rax, qword [rbx + 0x88]
mov r8, qword [rax + 0x1c8]
mov rdx, r12
lea rcx, [rsp + 0x670]
call fcn.1400986e0
mov r9, qword [rbx + 0x88]
cmp qword [r9 + 0x360], 0x10
jb 0x14002b87f
mov r9, qword [r9 + 0x348]
jmp 0x14002b886
add r9, 0x348
mov qword [rsp + 0x20], rbp
lea r8, str.SOFTWARE_sHPZGlue_s
mov rdx, r12
lea rcx, [rsp + 0x120]
call fcn.14009841c
lea rcx, [rsp + 0x120]
call fcn.1400980d0
mov r8, rax
lea rdx, [rsp + 0x120]
lea rcx, [rsp + 0xf8]
call fcn.14000352c
lea r8, [rsp + 0x100]
cmp qword [rsp + 0x118], 0x10
cmovae r8, qword [rsp + 0x100]
mov rdx, 0xffffffff80000002
mov r9d, 0x20019
lea rcx, [rsp + 0x38]
call fcn.14000bc38
cmp eax, r13d
jne 0x14002b9c5
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x340]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ghoulpathname
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, r13d
jne 0x14002b9c5
xor r8d, r8d
lea rdx, [rsp + 0x340]
lea rcx, [rsp + 0x98]
call fcn.14007045c
cmp eax, r13d
je 0x14002b9c5
lea rcx, [rsp + 0x98]
call fcn.14006ffa8
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x98]
call fcn.14007081c
mov r8d, r12d
mov rdx, rdi
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, r13d
jg 0x14002b9a5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
mov r9, rdi
lea r8, str.Found_Ghoul_in___s__n
mov ebx, 1
mov edx, ebx
mov rcx, r14
call fcn.140001000
mov esi, ebx
jmp 0x14002bd8b
mov byte [rsp + 0x230], r13b
mov r8, r15
xor edx, edx
lea rcx, [rsp + 0x231]
call fcn.1400988d0
mov r11, qword [rbx + 0x88]
mov eax, dword [r11 + 0x76c]
cmp qword [r11 + 0x7f8], 0x10
jb 0x14002ba00
mov r9, qword [r11 + 0x7e0]
jmp 0x14002ba07
lea r9, [r11 + 0x7e0]
mov dword [rsp + 0x20], eax
lea r8, str._sghl_02d.exe
mov rdx, r12
lea rcx, [rsp + 0x230]
call fcn.14009841c
mov byte [rsp + 0x560], r13b
mov r8, r15
xor edx, edx
lea rcx, [rsp + 0x561]
call fcn.1400988d0
mov edx, r12d
lea rcx, [rsp + 0x560]
call fcn.14003ea68
mov ecx, 8
call fcn.140061238
cmp rax, r13
je 0x14002ba65
lea rcx, [rsp + 0x60]
mov qword [rax], rcx
jmp 0x14002ba68
mov rax, r13
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x60]
call fcn.140005ed4
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], r13
mov r9, qword [rbx + 8]
mov r9, qword [r9 + 0x368]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x560]
lea rcx, [rsp + 0x230]
call fcn.140055b88
cmp qword [rsp + 0x90], r13
je 0x14002bb20
mov rax, qword [rsp + 0x88]
mov rbx, qword [rax]
mov r11, qword [rsp + 0x60]
cmp r11, r13
jne 0x14002bad5
call fcn.14009861c
mov r11, r13
jmp 0x14002bad8
mov r11, qword [r11]
cmp rbx, qword [r11 + 0x28]
jne 0x14002bae3
call fcn.14009861c
cmp qword [rbx + 0x30], 0x10
jb 0x14002baf0
mov rcx, qword [rbx + 0x18]
jmp 0x14002baf4
lea rcx, [rbx + 0x18]
mov r8d, r12d
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov r9, rdi
lea r8, str.Found_Ghoul_in___s__n
mov ebx, 1
mov edx, ebx
mov rcx, r14
call fcn.140001000
mov esi, ebx
jmp 0x14002bd61
mov byte [rsp + 0x450], r13b
mov r8, r15
xor edx, edx
lea rcx, [rsp + 0x451]
call fcn.1400988d0
lea rdx, [rsp + 0x450]
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea r11, [rsp + 0x230]
mov qword [rsp + 0x20], r11
lea r9, [rsp + 0x450]
lea r8, [0x1400c63b8]
mov rdx, r12
lea rcx, [rsp + 0x120]
call fcn.14009841c
lea rcx, [rsp + 0x120]
call fcn.1400980d0
mov r8, rax
lea rdx, [rsp + 0x120]
lea rcx, [rsp + 0xd0]
call fcn.14000352c
lea rdx, [rsp + 0xd8]
cmp qword [rsp + 0xf0], 0x10
cmovae rdx, qword [rsp + 0xd8]
xor r8d, r8d
lea rcx, [rsp + 0x98]
call fcn.14007045c
cmp eax, r13d
je 0x14002bc3a
lea rcx, [rsp + 0x98]
call fcn.14006ffa8
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x98]
call fcn.14007081c
mov r8d, r12d
mov rdx, rdi
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, r13d
jg 0x14002bc1a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
mov r9, rdi
lea r8, str.Found_Ghoul_in___s__n
mov ebx, 1
mov edx, ebx
mov rcx, r14
call fcn.140001000
mov esi, ebx
jmp 0x14002bd61
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, eax
mov dword [rsp + 0x30], 0x5c3a61
cmp eax, r13d
je 0x14002bd61
mov ebx, 1
test bl, bpl
je 0x14002bcef
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x14002bcef
movsx r9d, byte [rsp + 0x30]
lea rax, [rsp + 0x230]
mov qword [rsp + 0x20], rax
lea r8, str._c:utilhid_s
mov rdx, r12
lea rcx, [rsp + 0x120]
call fcn.14009841c
lea rcx, [rsp + 0x120]
call fcn.1400980d0
mov r8, rax
lea rdx, [rsp + 0x120]
lea rcx, [rsp + 0xd0]
call fcn.14000352c
lea rdx, [rsp + 0xd8]
cmp qword [rsp + 0xf0], 0x10
cmovae rdx, qword [rsp + 0xd8]
xor r8d, r8d
lea rcx, [rsp + 0x98]
call fcn.14007045c
cmp eax, r13d
jne 0x14002bcfc
add byte [rsp + 0x30], bl
shr ebp, 1
je 0x14002bd61
jmp 0x14002bc58
lea rcx, [rsp + 0x98]
call fcn.14006ffa8
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x98]
call fcn.14007081c
mov r8d, r12d
mov rdx, rdi
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, r13d
jg 0x14002bd4b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
mov r9, rdi
lea r8, str.Found_Ghoul_in___s__n
mov edx, ebx
mov rcx, r14
call fcn.140001000
mov esi, ebx
lea rcx, [rsp + 0x60]
call fcn.140007328
mov rcx, qword [rsp + 0x88]
call fcn.14006127c
mov qword [rsp + 0x88], r13
mov rcx, qword [rsp + 0x60]
call fcn.14006127c
nop
cmp qword [rsp + 0x118], 0x10
jb 0x14002bda3
mov rcx, qword [rsp + 0x100]
call fcn.14006127c
mov ebx, reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rsp + 0x118], rbx
mov qword [rsp + 0x110], r13
mov byte [rsp + 0x100], r13b
mov rcx, qword [rsp + 0x38]
cmp rcx, r13
je 0x14002bdd0
call fcn.14004e608
nop
cmp qword [rsp + 0xf0], 0x10
jb 0x14002bde8
mov rcx, qword [rsp + 0xd8]
call fcn.14006127c
mov qword [rsp + 0xf0], rbx
mov qword [rsp + 0xe8], r13
mov byte [rsp + 0xd8], r13b
lea rcx, [rsp + 0x98]
call fcn.1400703b4
lea r8, str.CPrinterUninstaller::FindGhoulPath____r_n
mov edx, 4
mov rcx, r14
call fcn.140001000
mov eax, esi
mov rcx, qword [rsp + 0x780]
xor rcx, rsp
call fcn.140061100
mov rbx, qword [rsp + 0x7e0]
add rsp, 0x790
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret