Function at 0x1400019e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
sub rsp, 0x2a0
mov rax, qword [0x14004e010]
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.14001c4c0
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 0x140001a98
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 0x140001c90
mov qword [rsp + 0x2b0], rbx
lea r8, str.C:AthSvc
mov edx, 0x104
mov qword [rsp + 0x2b8], rdi
lea rcx, [rsp + 0x80]
call fcn.1400223c4
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 0x140001b50
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 [0x14004fbcc], eax
mov ebx, eax
je 0x140001b85
xor eax, eax
lock cmpxchg dword [0x14004fbcc], ebx
cmp dword [0x14004fbcc], ebx
je 0x140001b85
mov ecx, 0x19
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x14004fbcc], ebx
jne 0x140001b60
mov rcx, qword [0x14004fbc0]
cmp rcx, 0xffffffffffffffff
je 0x140001b98
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, 0xffffffffffffffff
lea rax, [rsp + 0x80]
mov qword [0x14004fbc0], rdi
mov rbx, rdi
inc rbx
cmp word [rax + rbx*2], si
jne 0x140001bb1
mov rcx, qword [0x14004fbd0]
call fcn.14001a574
lea eax, [rbx + 1]
movsxd rcx, eax
mov eax, 2
mul rcx
cmovo rax, rdi
mov rcx, rax
call fcn.14001a57c
test ebx, ebx
mov qword [0x14004fbd0], rax
lea rcx, [0x140047418]
lea rdx, [rsp + 0x80]
cmovle rdx, rcx
nop dword [rax]
movzx ecx, word [rdx]
lea rdx, [rdx + 2]
mov word [rax], cx
lea rax, [rax + 2]
test cx, cx
jne 0x140001c00
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lock cmpxchg dword [0x14004fbcc], esi
mov edi, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x14004fbcc], eax
mov ebx, eax
je 0x140001c65
nop word [rax + rax]
xor eax, eax
lock cmpxchg dword [0x14004fbcc], ebx
cmp dword [0x14004fbcc], ebx
je 0x140001c65
mov ecx, 0x19
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x14004fbcc], ebx
jne 0x140001c40
test edi, edi
mov eax, esi
cmovg eax, edi
mov dword [0x14004fbc8], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lock cmpxchg dword [0x14004fbcc], esi
mov rdi, qword [rsp + 0x2b8]
mov rbx, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14001a550
add rsp, 0x2a0
pop rsi
ret