Function at 0x140004350
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.1401945e0
sub rsp, rax
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x10fc0], rbx
mov rax, qword [0x14027bbd0]
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.1400538bc
nop
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x660]
call fcn.140192cb0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x450]
call fcn.140192cb0
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.140001870
lea r12, [rdi + 0x40]
mov qword [rsp + 0x58], r12
mov rcx, r12
call fcn.140001870
lea rcx, [rbp + 0x450]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rbp + rcx*2 + 0x44e], 0x5c
je 0x140004435
lea rdx, [0x1401c7444]
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 0x14000452b
lea rdx, str.UninstSi.ini
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 0x1400044f6
mov rax, qword [rdi]
lea rdx, [rax - 0x18]
mov rdi, qword [rdx]
or rsi, rsi
cmp dword [rdx + 8], 0
je 0x1400044e6
cmp dword [rdx + 0x10], 0
jge 0x1400044bb
cmp dword [rax - 0xc], 0
jge 0x1400044a6
mov ecx, 0x80070057
call fcn.140001010
int3
xor r13d, r13d
mov dword [rax - 0x10], r13d
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
mov word [rax], r13w
jmp 0x1400044e6
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400044d1
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.140053d58
nop
jmp 0x140004972
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.140001c20
jmp 0x140004561
lea rdx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x140004558
mov rcx, rdi
call fcn.140001870
nop
lea rcx, [rsp + 0x60]
call fcn.140053d58
nop
or rsi, 0xffffffffffffffff
jmp 0x140004972
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
xor edx, edx
mov r8d, 0xfffe
lea rcx, [rbp + 0xe60]
call fcn.140192cb0
mov rdx, qword [rdi]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x7fff
lea r9, [rbp + 0xe60]
lea r8, [0x1401c6ea8]
xor edx, edx
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x1400045c3
mov rcx, rbx
call fcn.140001870
mov rcx, r12
call fcn.140001870
nop
lea rcx, [rsp + 0x60]
call fcn.140053d58
nop
jmp 0x140004972
call fcn.140051e58
mov rdx, rax
xor r13d, r13d
mov ecx, r13d
test rax, rax
setne cl
test ecx, ecx
jne 0x1400045e6
mov ecx, 0x80004005
call fcn.140001010
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 0x140004614
cmp word [rax + 2], 0
je 0x14000461a
mov word [rax], cx
add rax, 2
jmp 0x140004604
mov qword [rsp + 0x50], r13
lea r8, [rsp + 0x50]
lea rdx, reloc.OLEAUT32.dll_VariantCopy
lea rcx, [rbp + 0xe60]
call fcn.1401944dc
mov r12, rax
test rax, rax
je 0x14000472c
call fcn.140051e58
mov ecx, r13d
test rax, rax
setne cl
test ecx, ecx
je 0x140004721
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
test r12, r12
je 0x1400046ae
test r12, 0xffffffffffff0000
jne 0x14000469b
movzx edi, r12w
mov ecx, edi
call fcn.140051c2c
test rax, rax
je 0x1400046c2
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140001b00
jmp 0x1400046c2
xor eax, eax
mov rcx, rsi
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
dec rcx
jmp 0x1400046b1
mov ecx, r13d
mov r8d, ecx
mov rdx, r12
lea rcx, [rsp + 0x40]
call fcn.140001c20
nop
lea r8, [rsp + 0x40]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x60]
call fcn.140053ecc
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400046f6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, [rsp + 0x50]
lea rdx, reloc.OLEAUT32.dll_VariantCopy
xor ecx, ecx
call fcn.1401944dc
mov r12, rax
test rax, rax
jne 0x140004643
mov rbx, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x38]
jmp 0x14000472c
mov ecx, 0x80004005
call fcn.140001010
int3
mov r12d, r13d
mov dword [rsp + 0x30], r13d
mov r15, r13
mov rcx, qword [rsp + 0x70]
test rcx, rcx
jle 0x14000494c
nop word [rax + rax]
mov rdx, qword [rdi]
test r15, r15
js 0x140004946
cmp r15, rcx
jge 0x140004946
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x400
lea r9, [rbp + 0x660]
lea r8, [0x1401c6ea8]
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 0x140004806
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14000488b
cmp dword [rdx + 0x10], eax
jge 0x1400047d9
cmp dword [rbx - 0xc], eax
jl 0x140004925
mov dword [rbx - 0x10], r13d
mov word [rbx], r13w
jmp 0x14000488b
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400047ef
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 0x14000488b
mov r14d, dword [rbx - 0x10]
lea r12, [rbp + 0x660]
sub r12, rbx
sar r12, 1
test ecx, ecx
js 0x14000493b
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140004841
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.1400018f0
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 0x140004865
lea r8, [rbx + r12*2]
call fcn.140192c44
jmp 0x140004871
lea r8, [rbp + 0x660]
call fcn.140192bbc
cmp edi, dword [rbx - 0xc]
jg 0x140004930
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 0x140004903
lea rdx, str.Delete_Printer_Name
mov rcx, qword [r14]
call fcn.1401936c8
test eax, eax
jne 0x1400048b9
xor eax, eax
mov rcx, rsi
lea rdi, [rbp + 0x660]
repne scasw ax, word [rdi]
mov rdi, qword [rbp - 0x70]
jmp 0x1400048e0
lea rdx, str.Delete_Driver_Name
mov rcx, qword [r14]
call fcn.1401936c8
test eax, eax
jne 0x140004903
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.140006c60
mov edx, 9
mov rcx, rdi
call fcn.140006af0
inc r12d
mov dword [rsp + 0x30], r12d
inc r15
movsxd rax, r12d
mov rcx, qword [rsp + 0x70]
cmp rax, rcx
jge 0x14000494c
mov rdi, qword [rsp + 0x38]
jmp 0x140004750
mov ecx, 0x80070057
call fcn.140001010
int3
mov ecx, 0x80070057
call fcn.140001010
int3
mov ecx, 0x80070057
call fcn.140001010
int3
call fcn.140050fc8
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140004967
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x60]
call fcn.140053d58
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x14000498d
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.1401945b0
mov rbx, qword [rsp + 0x10fc0]
add rsp, 0x10f70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret