Function at 0x140001930
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
sub rsp, 0x2a0
mov rax, qword [0x140052010]
xor rax, rsp
mov qword [rsp + 0x290], rax
xor esi, esi
lea rcx, [rsp + 0x80]
xor edx, edx
mov dword [rsp + 0x50], esi
mov r8d, 0x208
call fcn.14001bd50
lea rax, [rsp + 0x78]
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x40], rax
lea rdx, str.SoftwareAtheros
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rsi
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400019e8
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rdx, str.EnableServiceDebug
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x50], esi
je 0x140001bf0
mov qword [rsp + 0x2b0], rbx
lea r8, str.C:AthSvc
mov edx, 0x104
mov qword [rsp + 0x2b8], rdi
lea rcx, [rsp + 0x80]
call fcn.140025408
lea rax, [rsp + 0x7c]
mov dword [rsp + 0x60], 0x208
mov qword [rsp + 0x40], rax
lea rdx, str.SoftwareAtheros
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rsi
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140001aa0
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rdx, str.ServiceLogPath
lea rax, [rsp + 0x80]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x140053bec], eax
mov ebx, eax
je 0x140001ad5
xor eax, eax
lock cmpxchg dword [0x140053bec], ebx
cmp dword [0x140053bec], ebx
je 0x140001ad5
mov ecx, 0x19
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x140053bec], ebx
jne 0x140001ab0
mov rcx, qword [0x140053be0]
cmp rcx, 0xffffffffffffffff
je 0x140001ae8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, 0xffffffffffffffff
lea rax, [rsp + 0x80]
mov qword [0x140053be0], rdi
mov rbx, rdi
inc rbx
cmp word [rax + rbx*2], si
jne 0x140001b01
mov rcx, qword [0x140053bf0]
call fcn.1400198f4
movsxd rcx, ebx
mov eax, 2
inc rcx
mul rcx
cmovo rax, rdi
mov rcx, rax
call fcn.1400198fc
mov rdx, rax
mov qword [0x140053bf0], rax
test ebx, ebx
lea rax, [0x14004b968]
lea rcx, [rsp + 0x80]
cmovle rcx, rax
sub rdx, rcx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140001b60
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lock cmpxchg dword [0x140053bec], esi
mov edi, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x140053bec], eax
mov ebx, eax
je 0x140001bc5
nop dword [rax]
nop word [rax + rax]
xor eax, eax
lock cmpxchg dword [0x140053bec], ebx
cmp dword [0x140053bec], ebx
je 0x140001bc5
mov ecx, 0x19
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x140053bec], ebx
jne 0x140001ba0
test edi, edi
mov eax, esi
cmovg eax, edi
mov dword [0x140053be8], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lock cmpxchg dword [0x140053bec], esi
mov rdi, qword [rsp + 0x2b8]
mov rbx, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1400198d0
add rsp, 0x2a0
pop rsi
ret