Function at 0x1400114d0
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.140023f70
sub rsp, rax
mov rax, qword [0x14002dda0]
xor rax, rsp
mov qword [rsp + 0x104a0], rax
mov rdi, rdx
mov rbx, rcx
mov edx, 0x20019
add rcx, 2
call fcn.140010520
mov rsi, rax
test rax, rax
jne 0x14001151a
lea eax, [rsi + 1]
jmp 0x140011cb9
lea rax, [rbx + 0x4042c]
lea r9, [rbx + 0x40410]
lea r8, str.AppEnvironment
lea rcx, [rbx + 2]
test rdi, rdi
mov rdx, rsi
mov qword [rsp + 0x104f0], r14
mov qword [rsp + 0x20], rax
setne r14b
call fcn.14000fa00
lea r11, [rbx + 0x40438]
lea r9, [rbx + 0x40430]
lea r8, str.AppEnvironmentExtra
lea rcx, [rbx + 2]
mov rdx, rsi
mov qword [rsp + 0x20], r11
call fcn.14000fa00
test rdi, rdi
je 0x140011582
mov rcx, rbx
call fcn.1400123a0
mov byte [rsp + 0x30], 1
lea r12, [rbx + 0x1842a]
lea rdx, [0x140026cf0]
mov r9d, 0xfffe
mov rcx, rsi
mov r8, r12
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], r14b
call fcn.14000fbc0
test eax, eax
je 0x1400115c7
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 3
jmp 0x140011cb1
mov byte [rsp + 0x30], 1
lea r8, [rbx + 0x28428]
lea rdx, str.AppParameters
mov r9d, 0x7ffe
mov rcx, rsi
mov qword [rsp + 0x104e8], r13
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], r14b
mov qword [rsp + 0x104f8], r15
call fcn.14000fbc0
xor edi, edi
lea r15d, [rdi + 2]
test eax, eax
je 0x140011643
lea r9, [rbx + 2]
lea r8, str.AppParameters
mov edx, 0x80000405
movzx ecx, r15w
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r12
call fcn.140007190
lea rcx, [rbx + 0x28428]
xor edx, edx
mov r8d, 0x7ffe
call fcn.14001a4c0
mov byte [rsp + 0x30], 1
lea r13, [rbx + 0x30426]
lea rdx, str.AppDirectory
mov r9d, 0xffe6
mov rcx, rsi
mov r8, r13
mov byte [rsp + 0x28], 1
mov byte [rsp + 0x20], r14b
call fcn.14000fbc0
test eax, eax
jne 0x140011680
cmp word [r13], di
jne 0x14001171f
lea r9, [0x140025890]
or r8, 0xffffffffffffffff
mov edx, 0x7ff3
mov rcx, r13
mov qword [rsp + 0x20], r12
call fcn.140019e88
mov rcx, r13
call fcn.14000e200
cmp word [r13], di
jne 0x1400116fc
mov edx, 0xffe6
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x1400116c5
cmp eax, 0xffe6
jbe 0x1400116fc
mov r12d, 1
lea r9, [rbx + 2]
lea r8, str.AppDirectory
mov edx, 0xc0000407
movzx ecx, r12w
mov qword [rsp + 0x20], rdi
call fcn.140007190
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [r12 + 3]
jmp 0x140011ca1
lea r9, [rbx + 2]
lea r8, str.AppDirectory
mov edx, 0x80000406
movzx ecx, r15w
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r13
call fcn.140007190
mov byte [rsp + 0x30], dil
lea r8, [rsp + 0xa0]
lea rdx, str.AppAffinity
mov r9d, 0x400
mov rcx, rsi
mov byte [rsp + 0x28], dil
mov byte [rsp + 0x20], dil
call fcn.14000fbc0
test eax, eax
jne 0x140011865
cmp word [rsp + 0xa0], di
je 0x140011865
lea rdx, [rbx + 0x40418]
lea rcx, [rsp + 0xa0]
call fcn.1400120d0
test eax, eax
je 0x14001179f
lea r9, [rsp + 0xa0]
lea r8, [rbx + 2]
mov edx, 0x8000042b
movzx ecx, r15w
call fcn.140007190
mov qword [rbx + 0x40418], rdi
jmp 0x14001186c
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 0x14001186c
mov rax, qword [rbx + 0x40418]
mov rcx, qword [rsp + 0x70]
mov r12, rax
and r12, rcx
cmp r12, rax
je 0x14001186c
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x50], rdi
call fcn.140011ec0
test eax, eax
jne 0x14001184d
lea rdx, [rsp + 0x60]
mov rcx, r12
mov qword [rsp + 0x60], rdi
call fcn.140011ec0
test eax, eax
jne 0x140011837
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
lea r8, [rbx + 2]
mov edx, 0x8000042c
movzx ecx, r15w
mov qword [rsp + 0x20], rax
call fcn.140007190
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x60]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
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]
jmp 0x14001186c
mov qword [rbx + 0x40418], rdi
lea r8, [rsp + 0x58]
lea rdx, str.AppPriority
xor r9d, r9d
mov rcx, rsi
call fcn.14000ff00
cmp eax, 1
jne 0x1400118bd
call fcn.1400122e0
mov ecx, dword [rsp + 0x58]
and eax, ecx
cmp ecx, eax
jne 0x14001189f
mov dword [rbx + 0x4043c], ecx
jmp 0x1400118bd
lea r9, str.AppPriority
lea r8, [rbx + 2]
mov edx, 0x4000042a
movzx ecx, r15w
mov qword [rsp + 0x20], rdi
call fcn.140007190
lea r8, [rsp + 0x40]
lea rdx, str.AppRotateFiles
xor r9d, r9d
mov rcx, rsi
call fcn.14000ff00
cmp eax, 1
jne 0x1400118e8
cmp dword [rsp + 0x40], edi
setne al
mov byte [rbx + 0x70494], al
jmp 0x1400118ef
mov byte [rbx + 0x70494], dil
lea r8, [rsp + 0x40]
lea rdx, str.AppRotateOnline
xor r9d, r9d
mov rcx, rsi
call fcn.14000ff00
mov r12d, 1
cmp eax, r12d
jne 0x140011935
cmp dword [rsp + 0x40], edi
je 0x140011927
mov dword [rbx + 0x7049c], r12d
mov dword [rbx + 0x70498], r12d
jmp 0x140011941
mov dword [rbx + 0x7049c], edi
mov dword [rbx + 0x70498], edi
jmp 0x140011941
mov dword [rbx + 0x7049c], edi
mov dword [rbx + 0x70498], edi
lea r8, [rbx + 0x704a0]
lea rdx, str.AppRotateSeconds
xor r9d, r9d
mov rcx, rsi
call fcn.14000ff00
cmp eax, r12d
je 0x140011965
mov dword [rbx + 0x704a0], edi
lea r8, [rbx + 0x704a4]
lea rdx, str.AppRotateBytes
xor r9d, r9d
mov rcx, rsi
call fcn.14000ff00
cmp eax, r12d
je 0x140011989
mov dword [rbx + 0x704a4], edi
lea r8, [rbx + 0x704a8]
lea rdx, str.AppRotateBytesHigh
xor r9d, r9d
mov rcx, rsi
call fcn.14000ff00
cmp eax, r12d
je 0x1400119ad
mov dword [rbx + 0x704a8], edi
lea r9, [rbx + 0x704ac]
lea r8, str.AppRotateDelay
lea rcx, [rbx + 2]
mov rdx, rsi
mov dword [rsp + 0x28], 0x8000040c
mov dword [rsp + 0x20], edi
call fcn.140010290
lea r8, [rbx + 0x40440]
lea rdx, str.AppNoConsole
xor r9d, r9d
mov rcx, rsi
call fcn.14000ff00
cmp eax, r12d
je 0x1400119f7
mov dword [rbx + 0x40440], edi
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, rsi
mov rcx, rbx
call fcn.140010530
test eax, eax
je 0x140011a58
lea r8, [rbx + 2]
xor r9d, r9d
mov edx, 0xc000041b
movzx ecx, r12w
call fcn.140007190
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, 5
jmp 0x140011ca1
lea rcx, [rsp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea r9, [rbx + 0x704b4]
lea r8, str.AppRestartDelay
lea rcx, [rbx + 2]
mov rdx, rsi
mov dword [rsp + 0x28], 0x8000042f
mov dword [rsp + 0x20], edi
call fcn.140010290
lea r9, [rbx + 0x704b8]
lea r8, str.AppThrottle
lea rcx, [rbx + 2]
mov rdx, rsi
mov dword [rsp + 0x28], 0x8000040c
mov dword [rsp + 0x20], 0x5dc
call fcn.140010290
lea rax, [rsp + 0x6c]
lea r9, [rsp + 0x48]
lea rdx, str.AppStopMethodSkip
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x6c], 4
mov qword [rsp + 0x20], rax
xor r13b, r13b
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140011b5d
cmp eax, r15d
je 0x140011b61
cmp dword [rsp + 0x48], 4
je 0x140011b31
lea rax, str.NSSM
lea r9, str.AppStopMethodSkip
lea r8, [rbx + 2]
mov edx, 0x8000041c
movzx ecx, r15w
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140007190
jmp 0x140011b61
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140006fd0
lea r8, str.AppStopMethodSkip
mov edx, 0xc00003fa
movzx ecx, r12w
mov r9, rax
mov qword [rsp + 0x20], rdi
call fcn.140007190
jmp 0x140011b61
movzx r13d, r12b
mov dword [rbx + 0x704bc], 0xffffffff
test r13b, r13b
je 0x140011b7c
mov eax, dword [rsp + 0x68]
not eax
mov dword [rbx + 0x704bc], eax
lea r9, [rbx + 0x704c0]
lea r8, str.AppStopMethodConsole
lea rcx, [rbx + 2]
mov rdx, rsi
mov dword [rsp + 0x28], 0x80000420
mov dword [rsp + 0x20], 0x5dc
call fcn.140010290
lea r9, [rbx + 0x704c4]
lea r8, str.AppStopMethodWindow
lea rcx, [rbx + 2]
mov rdx, rsi
mov dword [rsp + 0x28], 0x80000421
mov dword [rsp + 0x20], 0x5dc
call fcn.140010290
lea r9, [rbx + 0x704c8]
lea r8, str.AppStopMethodThreads
lea rcx, [rbx + 2]
mov rdx, rsi
mov dword [rsp + 0x28], 0x80000422
mov dword [rsp + 0x20], 0x5dc
call fcn.140010290
lea r8, [rsp + 0x4c]
lea rdx, str.AppKillProcessTree
xor r9d, r9d
mov rcx, rsi
call fcn.14000ff00
cmp eax, r12d
jne 0x140011c25
cmp dword [rsp + 0x4c], edi
setne al
mov byte [rbx + 0x704cc], al
jmp 0x140011c2c
mov byte [rbx + 0x704cc], r12b
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x80]
lea rcx, [rbx + 2]
xor edx, edx
mov dword [rbx + 0x704b0], edi
call fcn.140010700
test eax, eax
jne 0x140011c96
mov rbp, rdi
cmp qword [0x14002d058], rdi
je 0x140011c96
lea r12, [0x14002d058]
mov rax, r12
mov rdx, qword [rax]
lea rcx, [rsp + 0x80]
mov r8d, 0x10
call fcn.14001a3cc
test eax, eax
je 0x140011c90
inc rbp
inc edi
cmp qword [r12 + rbp*8], 0
lea rax, [r12 + rbp*8]
jne 0x140011c64
jmp 0x140011c96
mov dword [rbx + 0x704b0], edi
mov rcx, rsi
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.14001a490
add rsp, 0x104b0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret