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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
xor esi, esi
mov r14, rcx
xor eax, eax
lock cmpxchg dword [0x14023a06c], esi
mov dword [rbp + 0x30], esi
test rcx, rcx
je 0x140007ac2
prefetchw byte [0x14023a06c]
mov eax, dword [0x14023a06c]
nop word [rax + rax]
mov ecx, eax
or ecx, 1
lock cmpxchg dword [0x14023a06c], ecx
jne 0x140007730
test eax, eax
jne 0x140007aa5
mov eax, 1
xchg dword [0x14023a070], eax
test eax, eax
je 0x140007768
lea rcx, str.__Debug_Engine_already_Initialized_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x14000781b
lea rcx, str._ReadDbgPrtEnabledFlagFromRegistry_Entry_n
mov qword [rbp - 0x38], rsi
mov dword [rbp + 0x40], 4
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rax, [rbp - 0x38]
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 0x140007804
mov rcx, qword [rbp - 0x38]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x40]
lea rax, [rbp + 0x48]
mov dword [rbp + 0x38], 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 0x1400077ed
cmp dword [rbp + 0x48], esi
mov eax, esi
setne al
mov dword [0x14023a068], eax
lea rcx, str._ReadDbgPrtEnabledFlagFromRegistry_Close_RegHandle_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rbp - 0x38]
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], 0x1a94213
lea rcx, [0x14023a040]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor r8d, r8d
mov dword [rbp + 0x30], 1
mov edx, 0x200000
mov dword [0x14023a08c], 0x262e2e
xor ecx, ecx
mov word [0x14023a090], 0x808
mov edi, esi
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x140382328], rax
mov rax, qword [0x140382328]
test rax, rax
jne 0x140007879
lea rcx, str.RfeInitMemoryManager:__HeapAlloc_Failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, SafeArrayDestroy
test edi, edi
jne 0x140007ad4
mov dword [rbp + 0x30], 2
cmp qword [r14], rsi
je 0x140007a84
cmp qword [r14 + 8], rsi
je 0x140007a84
cmp qword [r14 + 0x10], rsi
je 0x140007a84
call fcn.140009550
mov edi, eax
test eax, eax
jne 0x140007a89
mov dword [rbp + 0x30], 3
call fcn.140011180
mov edi, eax
test eax, eax
jne 0x1400078cb
call fcn.140014630
test edi, edi
jne 0x140007ad4
mov rcx, r14
mov dword [rbp + 0x30], 5
call fcn.14000aa40
mov edi, eax
test eax, eax
jne 0x140007a89
call fcn.140012c90
cmp eax, 1
jne 0x1400079fb
cmp dword [0x140382350], esi
je 0x1400079f6
mov rax, qword [0x140382748]
mov dword [rbp - 0x40], esi
mov qword [rbp - 0x30], rsi
test rax, rax
jne 0x140007921
lea ebx, [rdi + 3]
jmp 0x1400079eb
xor edx, edx
lea r9, [rbp - 0x30]
lea r8, [rbp - 0x40]
lea ecx, [rdx + 2]
call rax
mov rcx, qword [rbp - 0x30]
test eax, eax
mov ebx, eax
cmovne rcx, rsi
mov qword [rbp - 0x30], rcx
mov qword [0x140382348], rcx
test rcx, rcx
je 0x1400079f2
xor eax, eax
mov qword [rbp - 0x28], rsi
lea r8, [rbp - 0x28]
mov qword [rbp - 0x18], rax
xor edx, edx
mov qword [rbp - 0x10], rax
call qword [0x140382758]
mov ebx, eax
mov rax, qword [rbp - 0x28]
test ebx, ebx
jne 0x1400079ab
movsxd rcx, dword [rax]
test ecx, ecx
je 0x1400079a6
mov rdx, rcx
jle 0x1400079ab
lea rcx, [rax + 8]
nop dword [rax]
nop dword [rax + rax]
movups xmm0, xmmword [rcx]
lea rcx, [rcx + 0x214]
movups xmmword [rbp - 0x18], xmm0
sub rdx, 1
jne 0x140007990
jmp 0x1400079ab
mov ebx, 0x10df
test rax, rax
je 0x1400079bd
mov rcx, rax
call qword [0x140382768]
mov qword [rbp - 0x28], rsi
cmp ebx, 0x10df
je 0x1400079d0
movups xmm0, xmmword [rbp - 0x18]
movups xmmword [0x140382330], xmm0
test ebx, ebx
je 0x1400079f6
mov rax, qword [0x140382668]
test rax, rax
je 0x1400079f2
mov rcx, qword [0x140382348]
xor edx, edx
call rax
mov qword [0x140382348], rsi
test ebx, ebx
jne 0x1400079fb
call fcn.140013900
mov rcx, qword [0x14023a1a8]
mov edi, esi
mov dword [rbp + 0x30], 6
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [0x14023a198]
cmp rcx, 0xffffffffffffffff
je 0x140007a43
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x14023a198]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test ebx, ebx
je 0x140007a48
mov edi, 0x1f
jmp 0x140007a48
mov edi, 0x72
test edi, edi
jne 0x140007ad4
mov dword [rbp + 0x30], 7
lock inc dword [0x14023a094]
lea ecx, [rdi + 1]
call fcn.14000b9f0
mov edi, eax
test eax, eax
jne 0x140007a89
mov rax, qword [0x140380e98]
mov qword [r14 + 0x20], rax
mov eax, edi
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov edi, 0x57
test edi, edi
jne 0x140007ad4
mov rax, qword [0x140380e98]
mov qword [r14 + 0x20], rax
mov eax, edi
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, str._RfeStartUP_BFE_Engine_has_already_been_started_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 0x4df
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, str._RfeStartUP_Null_Parameter_List_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, 0x57
lea rcx, str.RfeStartup_EngineState_failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp edi, 0x438
je 0x140007af1
cmp edi, 0x51a
jne 0x140007af9
mov eax, esi
xchg dword [0x14023a06c], eax
xor eax, eax
lock cmpxchg dword [0x14023a06c], esi
je 0x140007bcd
mov eax, esi
mov ecx, 1
xchg dword [0x14023a06c], eax
xchg dword [0x14023a144], ecx
mov r14d, dword [rbp + 0x30]
cmp r14d, 7
jl 0x140007b67
call fcn.14000c120
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x14023a310], esi
je 0x140007b67
cmp dword [0x14023a314], esi
mov ebx, esi
jbe 0x140007b67
nop dword [rax + rax]
xor ecx, ecx
mov r8d, ebx
lea edx, [rcx + 3]
call fcn.140010eb0
inc ebx
cmp ebx, dword [0x14023a314]
jb 0x140007b50
cmp r14d, 5
jl 0x140007b7c
call fcn.140009780
mov ecx, 1
call fcn.14000bca0
cmp r14d, 4
jl 0x140007b87
call fcn.140012210
cmp r14d, 3
jl 0x140007b92
call fcn.140008d40
cmp r14d, 2
jl 0x140007bba
xchg qword [0x140382328], rsi
mov qword [rbp - 0x20], rsi
mov rax, qword [rbp - 0x20]
test rax, rax
je 0x140007bb6
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
mov r14d, dword [rbp + 0x30]
cmp r14d, 1
jl 0x140007bcd
lea rcx, [0x14023a040]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, str._RfeStartup_EngineState_failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, edi
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret