Function at 0x140007560
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x60
mov rax, qword [0x140200d38]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor ebx, ebx
mov rsi, rcx
xor eax, eax
lock cmpxchg dword [0x14020f50c], ebx
prefetchw byte [0x14020f50c]
mov eax, dword [0x14020f50c]
nop word [rax + rax]
mov edx, eax
or edx, 1
lock cmpxchg dword [0x14020f50c], edx
jne 0x1400075a0
test eax, eax
jne 0x1400077b9
mov eax, 1
mov qword [rsp + 0x78], rdi
xchg dword [0x14020f510], eax
test eax, eax
je 0x1400075dd
lea rcx, str.__Debug_Engine_already_Initialized_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x14000769a
lea rcx, str._ReadDbgPrtEnabledFlagFromRegistry_Entry_n
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x34], 4
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rax, [rsp + 0x40]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesKiller_Network_ServiceSLibCFG
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140007683
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x30], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SvcLib_TraceEnabled
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000766b
cmp dword [rsp + 0x38], ebx
mov eax, ebx
setne al
mov dword [0x14020f508], eax
lea rcx, str._ReadDbgPrtEnabledFlagFromRegistry_Close_RegHandle_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str._ReadDbgPrtEnabledFlagFromRegistry_Exit_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [reloc.OLEAUT32.dll_SysReAllocString], 0x9880002
lea rcx, [0x14020f4e0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor r8d, r8d
mov dword [0x14020f52c], 0x262e2e
mov edx, 0x200000
mov word [0x14020f530], 0x808
xor ecx, ecx
mov edi, ebx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x1403572d0], rax
mov rax, qword [0x1403572d0]
test rax, rax
jne 0x1400076f1
lea rcx, str.RfeInitMemoryManager:__HeapAlloc_Failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, SafeArrayDestroy
test edi, edi
jne 0x140007774
mov rcx, rsi
call fcn.140007050
mov edi, eax
test eax, eax
jne 0x140007760
mov rcx, qword [0x140201980]
lea r9, [0x140201998]
lea r8, [0x140201978]
lea rdx, section..text
movups xmm0, xmmword [rcx - 0x10]
lea rcx, [rsp + 0x48]
mov qword [0x1402019a0], rbx
mov qword [0x1402019a8], rbx
movups xmmword [rsp + 0x48], xmm0
call qword [sym.imp.ADVAPI32.dll_EventRegister]
test eax, eax
jne 0x140007760
mov r8, qword [0x140201980]
lea edx, [rdi + 2]
mov rcx, qword [0x140201998]
movzx r9d, word [r8]
call qword [sym.imp.ADVAPI32.dll_EventSetInformation]
test rsi, rsi
je 0x140007770
mov rax, qword [0x140357280]
mov qword [rsi + 0x20], rax
test edi, edi
je 0x1400077b0
lea rcx, str._RfeStartup_EngineState_failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp edi, 0x438
jne 0x1400077a2
mov edi, ebx
mov eax, ebx
xchg dword [0x14020f50c], eax
xchg dword [0x14020f50c], ebx
mov eax, edi
mov rdi, qword [rsp + 0x78]
jmp 0x1400077cb
cmp edi, 0x51a
jne 0x1400077b0
xchg dword [0x14020f50c], ebx
mov eax, edi
mov rdi, qword [rsp + 0x78]
jmp 0x1400077cb
lea rcx, str._RfeStartUP_BFE_Engine_has_already_been_started_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 0x4df
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140121cc0
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rsi
ret