Function at 0x140001930
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
sub rsp, 0x2a0
mov rax, qword [0x14004d010]
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.14001b960
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 0x140001be0
mov qword [rsp + 0x2b0], rbx
lea r8, str.C:AthSvc
mov edx, 0x104
mov qword [rsp + 0x2b8], rdi
lea rcx, [rsp + 0x80]
call fcn.14002168c
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 [0x14004ebdc], eax
mov ebx, eax
je 0x140001ad5
xor eax, eax
lock cmpxchg dword [0x14004ebdc], ebx
cmp dword [0x14004ebdc], ebx
je 0x140001ad5
mov ecx, 0x19
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x14004ebdc], ebx
jne 0x140001ab0
mov rcx, qword [0x14004ebd0]
cmp rcx, 0xffffffffffffffff
je 0x140001ae8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, 0xffffffffffffffff
lea rax, [rsp + 0x80]
mov qword [0x14004ebd0], rdi
mov rbx, rdi
inc rbx
cmp word [rax + rbx*2], si
jne 0x140001b01
mov rcx, qword [0x14004ebe0]
call fcn.140019b64
lea eax, [rbx + 1]
movsxd rcx, eax
mov eax, 2
mul rcx
cmovo rax, rdi
mov rcx, rax
call fcn.140019b6c
test ebx, ebx
mov qword [0x14004ebe0], rax
lea rcx, [0x1400464d8]
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 0x140001b50
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lock cmpxchg dword [0x14004ebdc], esi
mov edi, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x14004ebdc], eax
mov ebx, eax
je 0x140001bb5
nop word [rax + rax]
xor eax, eax
lock cmpxchg dword [0x14004ebdc], ebx
cmp dword [0x14004ebdc], ebx
je 0x140001bb5
mov ecx, 0x19
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x14004ebdc], ebx
jne 0x140001b90
test edi, edi
mov eax, esi
cmovg eax, edi
mov dword [0x14004ebd8], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lock cmpxchg dword [0x14004ebdc], esi
mov rdi, qword [rsp + 0x2b8]
mov rbx, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140019b40
add rsp, 0x2a0
pop rsi
ret