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

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x50
xor edi, edi
mov rbx, rcx
xor eax, eax
lock cmpxchg dword [0x140201210], edi
mov dword [rsp + 0x70], edi
test rcx, rcx
je 0x140008ac4
prefetchw byte [0x140201210]
mov eax, dword [0x140201210]
mov ecx, eax
or ecx, 1
lock cmpxchg dword [0x140201210], ecx
jne 0x140008821
test eax, eax
jne 0x140008aaa
mov eax, 1
xchg dword [0x140201218], eax
test eax, eax
je 0x140008853
lea rcx, str.__Debug_Engine_already_Initialized_n
jmp 0x14000896b
lea rcx, [0x1401b5988]
mov dword [reloc.OLEAUT32.dll_SysReAllocString], 0x88294213
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x80], 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.SYSTEMCurrentControlSetServicesKiller_Network_ServiceSLibCFG
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140008957
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x80]
lea rax, [rsp + 0x88]
mov dword [rsp + 0x78], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.TraceEnabled
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000891f
mov ecx, dword [rsp + 0x88]
mov eax, edi
test ecx, ecx
setne al
mov dword [0x1402011e4], eax
test ecx, ecx
je 0x140008910
lea rcx, str._ReadDbgPrtEnabledFlagFromRegistry_Read_success__Dbg_Value_is_set_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x14000893f
lea rcx, str._ReadDbgPrtEnabledFlagFromRegistry_Read_success__Dbg_Value_is_off_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x14000893f
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 [0x1402011e4], 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, [0x1402011e8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, str._RfeStartup:__Calling_RfeInitMemoryManager_n
mov dword [rsp + 0x70], 1
mov dword [0x140201234], 0x262e2e
mov word [0x140201238], 0x808
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor r8d, r8d
mov edx, 0x200000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x14034b9d0], rax
mov rax, qword [0x14034b9d0]
test rax, rax
jne 0x140008a0e
lea rcx, str.RfeInitMemoryManager:__HeapAlloc_Failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebp, SafeArrayDestroy
mov dword [rsp + 0x20], 1
mov r9d, ebp
lea r8, str.RfeStartup
lea rdx, str._s:__RfeInitMemoryManager_failed__ErrCode_d_Step1
lea ecx, [rbp - 0xc]
call fcn.140016160
jmp 0x140008ad6
lea rcx, str.RfeStartup:__calling_Init_Filtering_Engine_n
mov dword [rsp + 0x70], 2
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.1400083e0
mov ebp, eax
test eax, eax
jne 0x140008a49
mov rcx, qword [0x14034b988]
mov qword [rbx + 0x20], rcx
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret
mov eax, dword [rsp + 0x70]
lea r8, str.RfeStartup
mov r9d, ebp
mov dword [rsp + 0x20], eax
lea rdx, str._s:__Init_Filtering_Engine_failed__ErrCode_d_Steps_Comp_d
mov ecx, 2
call fcn.140016160
lea rcx, str.RfeStartup:__Init_Filtering_Engine_Failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, str.RfeStartup_EngineState_failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp ebp, 0x438
jne 0x140008a98
mov eax, edi
xchg dword [0x140201210], eax
jmp 0x140008ae3
cmp ebp, 0x51a
jne 0x140008ae3
mov eax, edi
xchg dword [0x140201210], eax
jmp 0x140008ae3
lea rcx, str._RfeStartUP_BFE_Engine_has_already_been_started_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 0x4df
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret
lea rcx, str._RfeStartUP_Null_Parameter_List_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebp, 0x57
lea rcx, str.RfeStartup_EngineState_failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
lock cmpxchg dword [0x140201210], edi
je 0x140008bb0
mov eax, edi
mov qword [rsp + 0x48], rsi
xchg dword [0x140201210], eax
mov ecx, 1
xchg dword [0x1402012e4], ecx
mov esi, dword [rsp + 0x70]
cmp esi, 7
jl 0x140008b47
call fcn.14000daa0
cmp dword [0x1402014ec], edi
je 0x140008b47
cmp dword [0x1402014f0], edi
mov ebx, edi
jbe 0x140008b47
nop dword [rax + rax]
xor ecx, ecx
mov r8d, ebx
lea edx, [rcx + 3]
call fcn.140014d10
inc ebx
cmp ebx, dword [0x1402014f0]
jb 0x140008b30
cmp esi, 5
jl 0x140008b5b
call fcn.14000ac80
mov ecx, 1
call fcn.14000d610
cmp esi, 4
jl 0x140008b65
call fcn.1400169c0
cmp esi, 3
jl 0x140008b6f
call fcn.14000a1c0
cmp esi, 2
jl 0x140008b99
xchg qword [0x14034b9d0], rdi
mov qword [rsp + 0x78], rdi
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x140008b95
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
mov esi, dword [rsp + 0x70]
cmp esi, 1
mov rsi, qword [rsp + 0x48]
jl 0x140008bb0
lea rcx, [0x1402011e8]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, str._RfeStartup_EngineState_failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, ebp
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret