Function at 0x14000f1e0
Capabilities:
Get common file path
Query or enumerate registry value
Set current directory

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
mov eax, 0x104b0
call fcn.140020f60
sub rsp, rax
mov rax, qword [0x140029c30]
xor rax, rsp
mov qword [rsp + 0x104a0], rax
mov rbx, rdx
mov rdi, rcx
mov edx, 0x20019
add rcx, 2
call fcn.14000e630
mov rbp, rax
test rax, rax
jne 0x14000f22a
lea eax, [rbp + 1]
jmp 0x14000f955
mov byte [rsp + 0x30], 1
mov qword [rsp + 0x104f0], r14
lea r14, [rdi + 0x1842a]
test rbx, rbx
lea rdx, [0x140023680]
mov r9d, 0xfffe
setne sil
mov r8, r14
mov rcx, rax
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], sil
call fcn.14000dcc0
test eax, eax
je 0x14000f27e
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 3
jmp 0x14000f94d
mov byte [rsp + 0x30], 1
lea r8, [rdi + 0x28428]
lea rdx, str.AppParameters
mov r9d, 0x7ffe
mov rcx, rbp
mov qword [rsp + 0x104e8], r13
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], sil
mov qword [rsp + 0x104f8], r15
call fcn.14000dcc0
xor ebx, ebx
lea r15d, [rbx + 2]
test eax, eax
je 0x14000f2fa
lea r9, [rdi + 2]
lea r8, str.AppParameters
mov edx, 0x80000405
movzx ecx, r15w
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r14
call fcn.140007160
lea rcx, [rdi + 0x28428]
xor edx, edx
mov r8d, 0x7ffe
call fcn.1400174b0
mov byte [rsp + 0x30], 1
lea r13, [rdi + 0x30426]
lea rdx, str.AppDirectory
mov r9d, 0xffe6
mov rcx, rbp
mov r8, r13
mov byte [rsp + 0x28], 1
mov byte [rsp + 0x20], sil
call fcn.14000dcc0
test eax, eax
jne 0x14000f337
cmp word [r13], bx
jne 0x14000f3d2
lea r9, [0x140022870]
or r8, 0xffffffffffffffff
mov edx, 0x7ff3
mov rcx, r13
mov qword [rsp + 0x20], r14
call fcn.140016e78
mov rcx, r13
call fcn.14000c520
cmp word [r13], bx
jne 0x14000f3af
mov edx, 0xffe6
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x14000f37c
cmp eax, 0xffe6
jbe 0x14000f3af
mov esi, 1
lea r9, [rdi + 2]
lea r8, str.AppDirectory
mov edx, 0xc0000407
movzx ecx, si
mov qword [rsp + 0x20], rbx
call fcn.140007160
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [rsi + 3]
jmp 0x14000f93d
lea r9, [rdi + 2]
lea r8, str.AppDirectory
mov edx, 0x80000406
movzx ecx, r15w
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r13
call fcn.140007160
mov byte [rsp + 0x30], bl
lea r8, [rsp + 0xa0]
lea rdx, str.AppAffinity
mov r9d, 0x400
mov rcx, rbp
mov byte [rsp + 0x28], bl
mov byte [rsp + 0x20], bl
call fcn.14000dcc0
test eax, eax
jne 0x14000f515
cmp word [rsp + 0xa0], bx
je 0x14000f515
lea rdx, [rdi + 0x40418]
lea rcx, [rsp + 0xa0]
call fcn.14000fc80
test eax, eax
je 0x14000f44f
lea r9, [rsp + 0xa0]
lea r8, [rdi + 2]
mov edx, 0x8000042b
movzx ecx, r15w
call fcn.140007160
mov qword [rdi + 0x40418], rbx
jmp 0x14000f51c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x78]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
test eax, eax
je 0x14000f51c
mov rax, qword [rdi + 0x40418]
mov rcx, qword [rsp + 0x70]
mov rsi, rax
and rsi, rcx
cmp rsi, rax
je 0x14000f51c
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x68], rbx
call fcn.14000fa70
test eax, eax
jne 0x14000f4fd
lea rdx, [rsp + 0x50]
mov rcx, rsi
mov qword [rsp + 0x50], rbx
call fcn.14000fa70
test eax, eax
jne 0x14000f4e7
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
lea r8, [rdi + 2]
mov edx, 0x8000042c
movzx ecx, r15w
mov qword [rsp + 0x20], rax
call fcn.140007160
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x50]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x68]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14000f51c
mov qword [rdi + 0x40418], rbx
lea rax, [rdi + 0x4042c]
lea r9, [rdi + 0x40410]
lea r8, str.AppEnvironment
lea rcx, [rdi + 2]
mov rdx, rbp
mov qword [rsp + 0x20], rax
call fcn.14000db00
lea r11, [rdi + 0x40438]
lea r9, [rdi + 0x40430]
lea r8, str.AppEnvironmentExtra
lea rcx, [rdi + 2]
mov rdx, rbp
mov qword [rsp + 0x20], r11
call fcn.14000db00
lea r8, [rsp + 0x5c]
lea rdx, str.AppPriority
xor r9d, r9d
mov rcx, rbp
call fcn.14000e000
cmp eax, 1
jne 0x14000f5b9
call fcn.14000fe90
mov ecx, dword [rsp + 0x5c]
and eax, ecx
cmp ecx, eax
jne 0x14000f59b
mov dword [rdi + 0x4043c], ecx
jmp 0x14000f5b9
lea r9, str.AppPriority
lea r8, [rdi + 2]
mov edx, 0x4000042a
movzx ecx, r15w
mov qword [rsp + 0x20], rbx
call fcn.140007160
lea r8, [rsp + 0x40]
lea rdx, str.AppRotateFiles
xor r9d, r9d
mov rcx, rbp
call fcn.14000e000
cmp eax, 1
jne 0x14000f5e4
cmp dword [rsp + 0x40], ebx
setne al
mov byte [rdi + 0x70494], al
jmp 0x14000f5ea
mov byte [rdi + 0x70494], bl
lea r8, [rsp + 0x40]
lea rdx, str.AppRotateOnline
xor r9d, r9d
mov rcx, rbp
call fcn.14000e000
mov esi, 1
cmp eax, esi
jne 0x14000f62c
cmp dword [rsp + 0x40], ebx
je 0x14000f61e
mov dword [rdi + 0x7049c], esi
mov dword [rdi + 0x70498], esi
jmp 0x14000f638
mov dword [rdi + 0x7049c], ebx
mov dword [rdi + 0x70498], ebx
jmp 0x14000f638
mov dword [rdi + 0x7049c], ebx
mov dword [rdi + 0x70498], ebx
lea r8, [rdi + 0x704a0]
lea rdx, str.AppRotateSeconds
xor r9d, r9d
mov rcx, rbp
call fcn.14000e000
cmp eax, esi
je 0x14000f65b
mov dword [rdi + 0x704a0], ebx
lea r8, [rdi + 0x704a4]
lea rdx, str.AppRotateBytes
xor r9d, r9d
mov rcx, rbp
call fcn.14000e000
cmp eax, esi
je 0x14000f67e
mov dword [rdi + 0x704a4], ebx
lea r8, [rdi + 0x704a8]
lea rdx, str.AppRotateBytesHigh
xor r9d, r9d
mov rcx, rbp
call fcn.14000e000
cmp eax, esi
je 0x14000f6a1
mov dword [rdi + 0x704a8], ebx
lea r8, [rdi + 0x40440]
lea rdx, str.AppNoConsole
xor r9d, r9d
mov rcx, rbp
call fcn.14000e000
cmp eax, esi
je 0x14000f6c4
mov dword [rdi + 0x40440], ebx
lea rdx, [rsp + 0x4a0]
mov ecx, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rdx, rbp
mov rcx, rdi
call fcn.14000e640
test eax, eax
je 0x14000f724
lea r8, [rdi + 2]
xor r9d, r9d
mov edx, 0xc000041b
movzx ecx, si
call fcn.140007160
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, 5
jmp 0x14000f93d
lea rcx, [rsp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea r9, [rdi + 0x704b0]
lea r8, str.AppRestartDelay
lea rcx, [rdi + 2]
mov rdx, rbp
mov dword [rsp + 0x28], 0x8000042f
mov dword [rsp + 0x20], ebx
call fcn.14000e390
lea r9, [rdi + 0x704b4]
lea r8, str.AppThrottle
lea rcx, [rdi + 2]
mov rdx, rbp
mov dword [rsp + 0x28], 0x8000040c
mov dword [rsp + 0x20], 0x5dc
call fcn.14000e390
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x48]
lea rdx, str.AppStopMethodSkip
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
xor r8d, r8d
mov rcx, rbp
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x60], 4
mov qword [rsp + 0x20], rax
xor r13b, r13b
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14000f828
cmp eax, r15d
je 0x14000f82c
cmp dword [rsp + 0x48], 4
je 0x14000f7fd
lea rax, str.NSSM
lea r9, str.AppStopMethodSkip
lea r8, [rdi + 2]
mov edx, 0x8000041c
movzx ecx, r15w
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call fcn.140007160
jmp 0x14000f82c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140006fa0
lea r8, str.AppStopMethodSkip
mov edx, 0xc00003fa
movzx ecx, si
mov r9, rax
mov qword [rsp + 0x20], rbx
call fcn.140007160
jmp 0x14000f82c
movzx r13d, sil
mov dword [rdi + 0x704b8], 0xffffffff
test r13b, r13b
je 0x14000f847
mov eax, dword [rsp + 0x58]
not eax
mov dword [rdi + 0x704b8], eax
lea r9, [rdi + 0x704bc]
lea r8, str.AppStopMethodConsole
lea rcx, [rdi + 2]
mov rdx, rbp
mov dword [rsp + 0x28], 0x80000420
mov dword [rsp + 0x20], 0x5dc
call fcn.14000e390
lea r9, [rdi + 0x704c0]
lea r8, str.AppStopMethodWindow
lea rcx, [rdi + 2]
mov rdx, rbp
mov dword [rsp + 0x28], 0x80000421
mov dword [rsp + 0x20], 0x5dc
call fcn.14000e390
lea r9, [rdi + 0x704c4]
lea r8, str.AppStopMethodThreads
lea rcx, [rdi + 2]
mov rdx, rbp
mov dword [rsp + 0x28], 0x80000422
mov dword [rsp + 0x20], 0x5dc
call fcn.14000e390
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x80]
lea rcx, [rdi + 2]
xor edx, edx
mov dword [rdi + 0x704ac], ebx
call fcn.14000e7f0
test eax, eax
jne 0x14000f932
mov rsi, rbx
cmp qword [section..data], rbx
je 0x14000f932
lea r12, section..data
mov rax, r12
nop dword [rax]
mov rdx, qword [rax]
lea rcx, [rsp + 0x80]
mov r8d, 0x10
call fcn.1400173bc
test eax, eax
je 0x14000f92c
inc rsi
inc ebx
cmp qword [r12 + rsi*8], 0
lea rax, [r12 + rsi*8]
jne 0x14000f900
jmp 0x14000f932
mov dword [rdi + 0x704ac], ebx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov r13, qword [rsp + 0x104e8]
mov r15, qword [rsp + 0x104f8]
mov r14, qword [rsp + 0x104f0]
mov rcx, qword [rsp + 0x104a0]
xor rcx, rsp
call fcn.140017480
add rsp, 0x104b0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret