Function at 0x14000a870
Capabilities:
Get common file path
Read .ini file

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10e70]
mov eax, 0x10f70
call fcn.14019e810
sub rsp, rax
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x10fc0], rbx
mov rax, qword [0x14026fdb0]
xor rax, rsp
mov qword [rbp + 0x10e60], rax
mov r14, rdx
mov qword [rbp - 0x78], rdx
mov rdi, rcx
mov qword [rbp - 0x68], rdx
lea rcx, [rsp + 0x60]
call fcn.140058a98
nop
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x660]
call fcn.14019d7c0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x450]
call fcn.14019d7c0
mov edx, 0x104
lea rcx, [rbp + 0x450]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rbx, [rdi + 0x38]
mov qword [rbp - 0x70], rbx
mov rcx, rbx
call fcn.140005970
lea r12, [rdi + 0x40]
mov qword [rsp + 0x58], r12
mov rcx, r12
call fcn.140005970
lea rcx, [rbp + 0x450]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rbp + rcx*2 + 0x44e], 0x5c
je 0x14000a955
lea rdx, [0x14021d21c]
lea rcx, [rbp + 0x450]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
add rdi, 0x30
mov qword [rsp + 0x38], rdi
mov rcx, qword [rdi]
or rsi, 0xffffffffffffffff
cmp dword [rcx - 0x10], 0
jne 0x14000aa4b
lea rdx, [0x14021d220]
lea rcx, [rbp + 0x450]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [rbp + 0x200]
lea rcx, [rbp + 0x450]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, rsi
jne 0x14000aa16
mov rax, qword [rdi]
lea rdx, [rax - 0x18]
mov rdi, qword [rdx]
or rsi, rsi
cmp dword [rdx + 8], 0
je 0x14000aa06
cmp dword [rdx + 0x10], 0
jge 0x14000a9db
cmp dword [rax - 0xc], 0
jge 0x14000a9c6
mov ecx, 0x80070057
call fcn.140004550
int3
xor r13d, r13d
mov dword [rax - 0x10], r13d
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
mov word [rax], r13w
jmp 0x14000aa06
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14000a9f1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
add rax, 0x18
mov rcx, qword [rsp + 0x38]
mov qword [rcx], rax
lea rcx, [rsp + 0x60]
call fcn.140058fc0
nop
jmp 0x14000ae92
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov rcx, rsi
lea rdi, [rbp + 0x450]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rbp + 0x450]
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
call fcn.1400059f0
jmp 0x14000aa81
lea rdx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x14000aa78
mov rcx, rdi
call fcn.140005970
nop
lea rcx, [rsp + 0x60]
call fcn.140058fc0
nop
or rsi, 0xffffffffffffffff
jmp 0x14000ae92
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
xor edx, edx
mov r8d, 0xfffe
lea rcx, [rbp + 0xe60]
call fcn.14019d7c0
mov rdx, qword [rdi]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x7fff
lea r9, [rbp + 0xe60]
lea r8, [0x1402209ac]
xor edx, edx
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x14000aae3
mov rcx, rbx
call fcn.140005970
mov rcx, r12
call fcn.140005970
nop
lea rcx, [rsp + 0x60]
call fcn.140058fc0
nop
jmp 0x14000ae92
call fcn.140056384
mov rdx, rax
xor r13d, r13d
mov ecx, r13d
test rax, rax
setne cl
test ecx, ecx
jne 0x14000ab06
mov ecx, 0x80004005
call fcn.140004550
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
lea rax, [rbp + 0xe60]
mov ecx, 9
cmp word [rax], 0
jne 0x14000ab34
cmp word [rax + 2], 0
je 0x14000ab3a
mov word [rax], cx
add rax, 2
jmp 0x14000ab24
mov qword [rsp + 0x50], r13
lea r8, [rsp + 0x50]
lea rdx, [0x14021d23c]
lea rcx, [rbp + 0xe60]
call fcn.14019a1c0
mov r12, rax
test rax, rax
je 0x14000ac4c
call fcn.140056384
mov ecx, r13d
test rax, rax
setne cl
test ecx, ecx
je 0x14000ac41
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
test r12, r12
je 0x14000abce
test r12, 0xffffffffffff0000
jne 0x14000abbb
movzx edi, r12w
mov ecx, edi
call fcn.140056158
test rax, rax
je 0x14000abe2
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140005730
jmp 0x14000abe2
xor eax, eax
mov rcx, rsi
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
dec rcx
jmp 0x14000abd1
mov ecx, r13d
mov r8d, ecx
mov rdx, r12
lea rcx, [rsp + 0x40]
call fcn.1400059f0
nop
lea r8, [rsp + 0x40]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x60]
call fcn.140059134
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14000ac16
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, [rsp + 0x50]
lea rdx, [0x14021d23c]
xor ecx, ecx
call fcn.14019a1c0
mov r12, rax
test rax, rax
jne 0x14000ab63
mov rbx, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x38]
jmp 0x14000ac4c
mov ecx, 0x80004005
call fcn.140004550
int3
mov r12d, r13d
mov dword [rsp + 0x30], r13d
mov r15, r13
mov rcx, qword [rsp + 0x70]
test rcx, rcx
jle 0x14000ae6c
nop word [rax + rax]
mov rdx, qword [rdi]
test r15, r15
js 0x14000ae66
cmp r15, rcx
jge 0x14000ae66
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x400
lea r9, [rbp + 0x660]
lea r8, [0x1402209ac]
mov rdx, qword [rax + r15*8]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov rcx, rsi
lea rdi, [rbp + 0x660]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x14000ad26
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14000adab
cmp dword [rdx + 0x10], eax
jge 0x14000acf9
cmp dword [rbx - 0xc], eax
jl 0x14000ae45
mov dword [rbx - 0x10], r13d
mov word [rbx], r13w
jmp 0x14000adab
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14000ad0f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
jmp 0x14000adab
mov r14d, dword [rbx - 0x10]
lea r12, [rbp + 0x660]
sub r12, rbx
sar r12, 1
test ecx, ecx
js 0x14000ae5b
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14000ad61
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.140005ae0
mov rbx, qword [rsp + 0x48]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r12, r14
lea r14, [rax + rax]
mov r9, r14
ja 0x14000ad85
lea r8, [rbx + r12*2]
call fcn.140199418
jmp 0x14000ad91
lea r8, [rbp + 0x660]
call fcn.140199918
cmp edi, dword [rbx - 0xc]
jg 0x14000ae50
mov dword [rbx - 0x10], edi
mov word [r14 + rbx], r13w
mov r12d, dword [rsp + 0x30]
mov r14, qword [rbp - 0x78]
cmp dword [rbx - 0x10], 1
jl 0x14000ae23
lea rdx, str.Delete_Printer_Name
mov rcx, qword [r14]
call fcn.140199570
test eax, eax
jne 0x14000add9
xor eax, eax
mov rcx, rsi
lea rdi, [rbp + 0x660]
repne scasw ax, word [rdi]
mov rdi, qword [rbp - 0x70]
jmp 0x14000ae00
lea rdx, str.Delete_Driver_Name
mov rcx, qword [r14]
call fcn.140199570
test eax, eax
jne 0x14000ae23
xor eax, eax
mov rcx, rsi
lea rdi, [rbp + 0x660]
repne scasw ax, word [rdi]
mov rdi, qword [rsp + 0x58]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rbp + 0x660]
mov rcx, rdi
call fcn.14000bed0
mov edx, 9
mov rcx, rdi
call fcn.14000bcd0
inc r12d
mov dword [rsp + 0x30], r12d
inc r15
movsxd rax, r12d
mov rcx, qword [rsp + 0x70]
cmp rax, rcx
jge 0x14000ae6c
mov rdi, qword [rsp + 0x38]
jmp 0x14000ac70
mov ecx, 0x80070057
call fcn.140004550
int3
mov ecx, 0x80070057
call fcn.140004550
int3
mov ecx, 0x80070057
call fcn.140004550
int3
call fcn.14005694c
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14000ae87
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x60]
call fcn.140058fc0
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x14000aead
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp + 0x10e60]
xor rcx, rsp
call fcn.140198b40
mov rbx, qword [rsp + 0x10fc0]
add rsp, 0x10f70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret