Function at 0x140039c74
Capabilities:
Get common file path
Get program files directory
Get startup folder
Read .ini file

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
sub rsp, 0x2f0
mov qword [rsp + 0xa8], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov rax, qword [0x140099938]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
mov rdi, rdx
mov rbx, rcx
mov qword [r11 - 0x250], rcx
mov qword [r11 - 0x240], rdx
lea rax, vtable.CUninstallActions.0
mov qword [rcx], rax
add rcx, 8
call fcn.140027d00
nop
lea rcx, [rbx + 0x48]
call fcn.14004c4d8
nop
lea rcx, [rbx + 0x88]
call fcn.14004c4d8
nop
lea rcx, [rbx + 0xc8]
call fcn.140016ad8
nop
lea rcx, [0x1400998c0]
mov rax, qword [0x1400998c0]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
mov rax, qword [rdi]
mov qword [rbx + 0x108], rax
lea r9, str.deldrv.debug.ini
xor r8d, r8d
lea rdx, str.AlwaysReboot
lea rcx, str.Setup
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor r12d, r12d
cmp eax, r12d
je 0x140039d5f
lea rdx, str.SET_VARSIGNED_0x00000000_REBOOT_DIRECT___1
lea rcx, [rsp + 0xb0]
call fcn.14000b470
mov rdx, rax
mov rcx, rbx
call fcn.14002f8d0
jmp 0x140039d7e
lea rdx, str.SET_VARSIGNED_0x00000000_REBOOT_DIRECT___0
lea rcx, [rsp + 0xc0]
call fcn.14000b470
mov rdx, rax
mov rcx, rbx
call fcn.14002f8d0
mov esi, 0x105
mov edx, esi
lea rcx, [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, r12d
je 0x140039e04
lea rcx, str.SET_VARSTRING_0x00000000_FLD_WINDOWS_DIRECT___
call fcn.14005b1c0
mov r8d, eax
lea rdx, str.SET_VARSTRING_0x00000000_FLD_WINDOWS_DIRECT___
lea rcx, [rsp + 0x50]
call fcn.14000a188
lea rcx, [rsp + 0xd0]
call fcn.14005b1c0
mov r8d, eax
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x50]
call fcn.14000a8b0
mov rcx, qword [rsp + 0x50]
add rcx, 0xffffffffffffffe8
call fcn.140009ef0
add rax, 0x18
mov qword [rsp + 0x80], rax
lea rdx, [rsp + 0x80]
mov rcx, rbx
call fcn.14002f8d0
mov edx, esi
lea rcx, [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rcx, str.SET_VARSTRING_0x00000000_FLD_SYSTEM_DIRECT___
call fcn.14005b1c0
mov r8d, eax
lea rdx, str.SET_VARSTRING_0x00000000_FLD_SYSTEM_DIRECT___
lea rcx, [rsp + 0x50]
call fcn.14000a188
lea rcx, [rsp + 0xd0]
call fcn.14005b1c0
mov r8d, eax
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x50]
call fcn.14000a8b0
mov rcx, qword [rsp + 0x50]
add rcx, 0xffffffffffffffe8
call fcn.140009ef0
add rax, 0x18
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x68]
mov rcx, rbx
call fcn.14002f8d0
mov edx, esi
lea rcx, [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, r12d
je 0x140039f33
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov r8, rsi
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0xd0]
call fcn.14005cbe4
lea rcx, str.SET_VARSTRING_0x00000000_FLD_SYSTEMROOT_DIRECT___
call fcn.14005b1c0
mov r8d, eax
lea rdx, str.SET_VARSTRING_0x00000000_FLD_SYSTEMROOT_DIRECT___
lea rcx, [rsp + 0x50]
call fcn.14000a188
lea rcx, [rsp + 0xd0]
call fcn.14005b1c0
mov r8d, eax
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x50]
call fcn.14000a8b0
mov rcx, qword [rsp + 0x50]
add rcx, 0xffffffffffffffe8
call fcn.140009ef0
add rax, 0x18
mov qword [rsp + 0x90], rax
lea rdx, [rsp + 0x90]
mov rcx, rbx
call fcn.14002f8d0
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0xd0]
call fcn.14005bb90
xor r9d, r9d
lea r8d, [r9 + 0x26]
lea rdx, [rsp + 0xd0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rcx, str.SET_VARSTRING_0x00000000_FLD_PROGRAM_FILES_DIRECT___
call fcn.14005b1c0
mov r8d, eax
lea rdx, str.SET_VARSTRING_0x00000000_FLD_PROGRAM_FILES_DIRECT___
lea rcx, [rsp + 0x50]
call fcn.14000a188
lea rcx, [rsp + 0xd0]
call fcn.14005b1c0
mov r8d, eax
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x50]
call fcn.14000a8b0
mov rcx, qword [rsp + 0x50]
add rcx, 0xffffffffffffffe8
call fcn.140009ef0
add rax, 0x18
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x78]
mov rcx, rbx
call fcn.14002f8d0
mov r8d, dword [rdi + 0xc]
lea rdx, str.SET_VARSIGNED_0x00000000_UNINSTLEVEL_DIRECT____d
lea rcx, [rsp + 0x50]
call fcn.14000b0cc
mov rcx, qword [rsp + 0x50]
add rcx, 0xffffffffffffffe8
call fcn.140009ef0
add rax, 0x18
mov qword [rsp + 0xa0], rax
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.14002f8d0
mov r8d, dword [rdi + 8]
lea rdx, str.SET_VARSIGNED_0x00000000_UILEVEL_DIRECT____d
lea rcx, [rsp + 0x50]
call fcn.14000b0cc
mov rcx, qword [rsp + 0x50]
add rcx, 0xffffffffffffffe8
call fcn.140009ef0
add rax, 0x18
mov qword [rsp + 0x88], rax
lea rdx, [rsp + 0x88]
mov rcx, rbx
call fcn.14002f8d0
mov r8d, dword [rdi + 0x14]
lea rdx, str.SET_VARSIGNED_0x00000000_RESTART_DIRECT____d
lea rcx, [rsp + 0x50]
call fcn.14000b0cc
mov rcx, qword [rsp + 0x50]
add rcx, 0xffffffffffffffe8
call fcn.140009ef0
add rax, 0x18
mov qword [rsp + 0x98], rax
lea rdx, [rsp + 0x98]
mov rcx, rbx
call fcn.14002f8d0
lea rcx, str.SET_VARSTRING_0x00000000_UNINSTGUID_DIRECT___
call fcn.14005b1c0
mov r8d, eax
lea rdx, str.SET_VARSTRING_0x00000000_UNINSTGUID_DIRECT___
lea rcx, [rsp + 0x50]
call fcn.14000a188
cmp qword [rdi + 0x38], 8
jb 0x14003a0af
mov rsi, qword [rdi + 0x20]
jmp 0x14003a0b3
lea rsi, [rdi + 0x20]
cmp rsi, r12
jne 0x14003a0bd
mov eax, r12d
jmp 0x14003a0c5
mov rcx, rsi
call fcn.14005b1c0
mov r8d, eax
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.14000a8b0
mov rcx, qword [rsp + 0x50]
add rcx, 0xffffffffffffffe8
call fcn.140009ef0
add rax, 0x18
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.14002f8d0
mov esi, 0x1f40
lea rcx, [rsp + 0x50]
call fcn.140009e38
mov rbp, qword [0x14009bc40]
mov rax, qword [0x14009bc38]
xchg qword [0x14009bc40], rax
xor edx, edx
mov ecx, esi
call fcn.140009afc
cmp rax, r12
jne 0x14003a130
mov eax, r12d
jmp 0x14003a140
mov r8d, esi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14000a0b4
xchg qword [0x14009bc40], rbp
cmp eax, r12d
je 0x14003a170
mov rcx, qword [rsp + 0x50]
add rcx, 0xffffffffffffffe8
call fcn.140009ef0
add rax, 0x18
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.140038ecc
inc esi
cmp eax, r12d
jne 0x14003a0fe
mov r8d, dword [rdi + 0x10]
lea rdx, str.SET_VARUNSIGNED_0x00000000_LEAVE_FUNC_NETSCN_DIRECT____d
lea rcx, [rsp + 0x50]
call fcn.14000b0cc
mov rsi, qword [rsp + 0x50]
lea rcx, [rsi - 0x18]
call fcn.140009ef0
add rax, 0x18
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.14002f8d0
nop
or eax, 0xffffffff
lock xadd dword [rsi - 8], eax
dec eax
cmp eax, r12d
jg 0x14003a1cf
mov rcx, qword [rsi - 0x18]
mov rax, qword [rcx]
lea rdx, [rsi - 0x18]
call qword [rax + 8]
nop
cmp qword [rdi + 0x38], 8
jb 0x14003a1df
mov rcx, qword [rdi + 0x20]
call fcn.14005ab0c
mov qword [rdi + 0x38], 7
mov qword [rdi + 0x30], r12
mov word [rdi + 0x20], r12w
mov rax, rbx
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.14005bad0
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret