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

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
xor edi, edi
mov rbx, rcx
xor eax, eax
lock cmpxchg dword [0x14024c424], edi
mov dword [rsp + 0x60], edi
test rcx, rcx
je 0x140007ece
prefetchw byte [0x14024c424]
mov eax, dword [0x14024c424]
mov ecx, eax
or ecx, 1
lock cmpxchg dword [0x14024c424], ecx
jne 0x140007c61
test eax, eax
jne 0x140007eb4
mov eax, 1
xchg dword [0x14024c450], eax
test eax, eax
je 0x140007c93
lea rcx, str.__Debug_Engine_already_Initialized_n
jmp 0x140007d9f
lea rcx, str._ReadDbgPrtEnabledFlagFromRegistry_Entry_n
mov dword [reloc.OLEAUT32.dll_SysReAllocString], 0x88294213
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x70], 4
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rax, [rsp + 0x30]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesIntel_Connectivity_Network_ServiceSLibCFG
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140007d8b
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x70]
lea rax, [rsp + 0x78]
mov dword [rsp + 0x68], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.TraceEnabled
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140007d53
mov ecx, dword [rsp + 0x78]
mov eax, edi
test ecx, ecx
setne al
mov dword [0x14023cc70], eax
test ecx, ecx
je 0x140007d44
lea rcx, str._ReadDbgPrtEnabledFlagFromRegistry_Read_success__Dbg_Value_is_set_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x140007d73
lea rcx, str._ReadDbgPrtEnabledFlagFromRegistry_Read_success__Dbg_Value_is_off_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x140007d73
lea rcx, str._ReadDbgPrtEnabledFlagFromRegistry_Read_Unsuccessful__Dbg_Value_is_off_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, str._ReadDbgPrtEnabledFlagFromRegistry_read_err_and_override_NOT_set_Debault_spew_to_off._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [0x14023cc70], edi
lea rcx, str._ReadDbgPrtEnabledFlagFromRegistry_Close_RegHandle_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str._ReadDbgPrtEnabledFlagFromRegistry_Exit_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, str.__Debug_Engine_Init_Exit_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, str.RfeStartup:__Init_DBG_ENgine_Complete_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [0x14024c428]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, str._RfeStartup:__Calling_RfeInitMemoryManager_n
mov dword [rsp + 0x60], 1
mov dword [0x14024c46c], 0x262e2e
mov word [0x14024c470], 0x808
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor r8d, r8d
mov edx, 0x200000
xor ecx, ecx
mov esi, edi
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x140256dc8], rax
mov rax, qword [0x140256dc8]
test rax, rax
jne 0x140007e1e
lea rcx, str.RfeInitMemoryManager:__HeapAlloc_Failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, SafeArrayDestroy
test esi, esi
jne 0x140007e8f
lea rcx, str.RfeStartup:__calling_Init_Filtering_Engine_n
mov dword [rsp + 0x60], 2
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.140007890
mov esi, eax
test eax, eax
jne 0x140007e5d
mov rcx, qword [0x140256d80]
mov qword [rbx + 0x20], rcx
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov eax, dword [rsp + 0x60]
lea r8, str.RfeStartup
mov r9d, esi
mov dword [rsp + 0x20], eax
lea rdx, str._s:__Init_Filtering_Engine_failed__ErrCode_d_Steps_Comp_d
mov ecx, 2
call fcn.140013600
lea rcx, str.RfeStartup:__Init_Filtering_Engine_Failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x140007ee0
mov r9d, esi
mov dword [rsp + 0x20], 1
lea r8, str.RfeStartup
mov ecx, 2
lea rdx, str._s:__RfeInitMemoryManager_failed__ErrCode_d_Step1
call fcn.140013600
jmp 0x140007ee0
lea rcx, str._RfeStartUP_BFE_Engine_has_already_been_started_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 0x4df
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
lea rcx, str._RfeStartUP_Null_Parameter_List_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, 0x57
lea rcx, str.RfeStartup_EngineState_failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp esi, 0x438
je 0x140007efd
cmp esi, 0x51a
jne 0x140007f05
mov eax, edi
xchg dword [0x14024c424], eax
xor eax, eax
lock cmpxchg dword [0x14024c424], edi
je 0x140007f9a
mov eax, edi
mov edx, 1
xchg dword [0x14024c424], eax
xchg dword [0x14024c524], edx
mov ebx, dword [rsp + 0x60]
cmp ebx, 7
jl 0x140007f36
call fcn.14000c920
cmp ebx, 5
jl 0x140007f4a
call fcn.140009c00
mov ecx, 1
call fcn.14000c4a0
cmp ebx, 4
jl 0x140007f54
call fcn.140014480
cmp ebx, 3
jl 0x140007f5e
call fcn.1400092a0
cmp ebx, 2
jl 0x140007f88
xchg qword [0x140256dc8], rdi
mov qword [rsp + 0x38], rdi
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x140007f84
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
mov ebx, dword [rsp + 0x60]
cmp ebx, 1
jl 0x140007f9a
lea rcx, [0x14024c428]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, str._RfeStartup_EngineState_failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, esi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret