Function at 0x140005c70
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5b0]
sub rsp, 0x6b0
mov rax, qword [0x14000e088]
xor rax, rsp
mov qword [rbp + 0x5a0], rax
mov r15, rdx
mov r14, rcx
mov edi, 0x105
lea rcx, [rbp + 0x60]
mov r12d, 1
mov r8d, edi
xor edx, edx
mov esi, r12d
call sub.msvcrt.dll_memset
xor r8d, r8d
lea rcx, str.Shell32.dll
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
nop dword [rax + rax]
xor r13d, r13d
mov rbx, rax
test rax, rax
je 0x140005d69
lea rdx, str.SHGetSpecialFolderPathA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
je 0x140005d5a
xor r9d, r9d
lea r8d, [r12 + 0x19]
lea rdx, [rbp + 0x170]
xor ecx, ecx
call qword [0x140009690]
cmp eax, r12d
jne 0x140005d5a
mov r8, qword [r14 + 0x10]
lea rcx, [rbp + 0x280]
mov edx, edi
mov dword [rsp + 0x28], 0x900
call fcn.140001da4
lea rdx, [rbp + 0x170]
lea rcx, [rbp + 0x280]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
nop dword [rax + rax]
test eax, eax
cmove esi, r13d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
lea rax, str.SOFTWAREMicrosoftConnection_ManagerUserInfo_
test esi, esi
lea r9, str.SOFTWAREMicrosoftConnection_ManagerSingleUserInfo_
mov edx, 0x208
cmovne r9, rax
lea r8, [0x140009ae0]
mov rax, qword [r14 + 0x60]
lea rcx, [rbp + 0x390]
mov qword [rsp + 0x20], rax
mov edi, r12d
mov ebx, r13d
call fcn.140001008
test eax, eax
jns 0x140005daf
xor eax, eax
jmp 0x140005f6f
lea rax, [rsp + 0x38]
mov r9d, r12d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x390]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
nop dword [rax + rax]
test eax, eax
jne 0x140005e41
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x34]
mov dword [rsp + 0x30], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.EnableLogging
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop dword [rax + rax]
test eax, eax
jne 0x140005e2c
cmp dword [rsp + 0x34], r13d
mov edi, r13d
mov ebx, r12d
setne dil
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
jne 0x140005e63
mov r9, r15
lea rdx, str.EnableLogging
mov r8d, r12d
lea rcx, str.Connection_Manager
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
nop dword [rax + rax]
mov edi, eax
mov r9, r15
lea rdx, str.MaxFileSize
mov r8d, 0x64
lea rcx, str.Logging
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
nop dword [rax + rax]
mov ebx, 0x104
mov qword [rsp + 0x28], r15
lea r9, [rbp + 0x60]
mov dword [rsp + 0x20], ebx
lea r8, str._Temp_
mov r12d, eax
lea rdx, str.FileDirectory
lea rcx, str.Logging
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
nop dword [rax + rax]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], r15
lea r8, [0x140009da3]
mov dword [rsp + 0x20], ebx
lea rdx, str.ServiceName
lea rcx, str.Connection_Manager
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
nop dword [rax + rax]
cmp byte [rsp + 0x50], r13b
jne 0x140005f09
mov ecx, dword [0x14000e0a0]
lea rdx, str.InitLogging___could_not_find_servicename_in_.CMS_file__exiting.
call fcn.140007c34
jmp 0x140005da8
mov rdx, qword [r14]
lea rbx, [r14 + 0x88]
mov rcx, rbx
lea r9, [rsp + 0x50]
mov r8d, esi
call qword [sym.imp.cmutil.dll_public:_long_int___cdecl_CmLogFile::Init_struct_HINSTANCE______ptr64__int__char_const____ptr64____ptr64]
nop dword [rax + rax]
lea r9, [rbp + 0x60]
mov r8d, r12d
mov edx, edi
mov rcx, rbx
call qword [sym.imp.cmutil.dll_public:_long_int___cdecl_CmLogFile::SetParams_int__unsigned_long_int__char_const____ptr64____ptr64]
nop dword [rax + rax]
mov rcx, rbx
cmp dword [r14 + 0xdc], r13d
je 0x140005f5e
xor edx, edx
call qword [sym.imp.cmutil.dll_public:_long_int___cdecl_CmLogFile::Start_int____ptr64]
nop dword [rax + rax]
jmp 0x140005f6a
call qword [sym.imp.cmutil.dll_public:_long_int___cdecl_CmLogFile::Stop_void____ptr64]
nop dword [rax + rax]
mov eax, 1
mov rcx, qword [rbp + 0x5a0]
xor rcx, rsp
call fcn.1400080a0
mov rbx, qword [rsp + 0x700]
add rsp, 0x6b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret