Function at 0x14003e400
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r15, r9
mov r14, r8
mov r13d, edx
mov rbx, rcx
cmp edx, 0x16
jne 0x14003e602
mov eax, 0x80000000
test rax, r9
je 0x14003e55a
mov r8, r9
mov rdx, r14
lea rcx, str.CRtHDVBgProcWnd::OnUserLogOff__d__d_n
call fcn.1400056e0
xor edi, edi
mov qword [rbp - 0x18], rdi
mov dword [rbp - 0x10], edi
mov qword [rbp - 8], rdi
mov dword [rbp + 0x38], edi
test dword [rbx + 0xcec], 0x8000
je 0x14003e54a
mov r9d, 0x2001f
lea r8, [0x140288e68]
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x18]
call fcn.14000ddf0
test eax, eax
jne 0x14003e4a3
mov rdi, qword [rbp - 0x18]
jmp 0x14003e4db
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, [0x140288e68]
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x18]
call fcn.1400147b0
mov rdi, qword [rbp - 0x18]
test eax, eax
jne 0x14003e53c
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x30], 4
lea r9, [rbp - 0x28]
xor r8d, r8d
lea rdx, str.Logoff
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x30], 2
mov r9d, 4
xor r8d, r8d
lea rdx, str.Logoff
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, 2
mov rcx, rbx
call fcn.14003e370
nop
test rdi, rdi
je 0x14003e579
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14003e579
test r14, r14
je 0x14003e579
test r15, r15
jne 0x14003e579
test dword [rcx + 0xcec], 0x8000
je 0x14003e579
lea edx, [r15 + 3]
call fcn.14003e370
cmp dword [0x1402ea810], 0
je 0x14003e5e9
cmp dword [rbx + 0xf8], 0
je 0x14003e5c2
call fcn.14005aa58
mov rcx, qword [rax + 8]
mov rax, qword [rcx]
lea r9, str.Stop_OnEndSession
lea r8, str.DataRoutineInfo
lea rdx, str.General
call qword [rax + 0x110]
lea rcx, [rbx + 0xf0]
xor edx, edx
call fcn.140015390
jmp 0x14003e5e9
call fcn.14005aa58
mov rcx, qword [rax + 8]
mov rax, qword [rcx]
lea r9, str.NOT_RUNNING_OnEndSession
lea r8, str.DataRoutineInfo
lea rdx, str.General
call qword [rax + 0x110]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x10]
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x14003e8d0
cmp r13d, 0x2b1
jne 0x14003e67e
cmp r14, 1
je 0x14003e617
cmp r14, 8
jne 0x14003e62d
test dword [rcx + 0xcec], 0x8000
je 0x14003e62d
mov edx, 1
call fcn.14003e370
cmp r14, 2
jne 0x14003e653
test dword [rbx + 0xcec], 0x8000
je 0x14003e8d0
mov edx, r14d
mov rcx, rbx
call fcn.14003e370
jmp 0x14003e8d0
cmp r14, 7
jne 0x14003e8d0
test dword [rbx + 0xcec], 0x8000
je 0x14003e8d0
lea edx, [r14 - 3]
mov rcx, rbx
call fcn.14003e370
jmp 0x14003e8d0
cmp r13d, 0x218
jne 0x14003e8bf
cmp r14, 4
jne 0x14003e6a8
test dword [rcx + 0xcec], 0x8000
je 0x14003e6cf
lea edx, [r14 - 1]
call fcn.14003e370
jmp 0x14003e6cf
cmp r14, 7
ja 0x14003e77c
cmp r14, 6
jae 0x14003e841
test r14, r14
je 0x14003e76b
cmp r14, 4
jne 0x14003e8d0
lea rcx, str.PBT_APMSUSPEND
call fcn.1400056e0
mov r8, r15
mov edx, 4
lea rcx, str.CRtHDVBgProcWnd::OnSystemSuspend__d__d_n
call fcn.1400056e0
cmp dword [0x1402ea810], 0
je 0x14003e8d0
cmp dword [rbx + 0xf8], 0
je 0x14003e73f
call fcn.14005aa58
mov rcx, qword [rax + 8]
mov rax, qword [rcx]
lea r9, str.Stop_ON_SystemSuspend
lea r8, str.DataRoutineInfo
lea rdx, str.General
call qword [rax + 0x110]
lea rcx, [rbx + 0xf0]
xor edx, edx
call fcn.140015390
jmp 0x14003e8d0
call fcn.14005aa58
mov rcx, qword [rax + 8]
mov rax, qword [rcx]
lea r9, str.NOT_RUNNING_ON_SystemSuspend
lea r8, str.DataRoutineInfo
lea rdx, str.General
call qword [rax + 0x110]
jmp 0x14003e8d0
lea rcx, str.PBT_APMQUERYSUSPEND
call fcn.1400056e0
jmp 0x14003e8d0
cmp r14, 0x12
je 0x14003e841
cmp r14, 0x8013
jne 0x14003e8d0
add rcx, 0xc00
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r12, qword [rbx + 0xb98]
xor edi, edi
mov esi, edi
test r12d, r12d
je 0x14003e82f
mov rcx, rdi
cmp esi, dword [rbx + 0xb98]
jae 0x14003e7da
mov edx, esi
lea rcx, [rbx + 0xb80]
call fcn.14004bdbc
test rax, rax
je 0x14003ea59
mov rcx, qword [rax + 0x10]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
mov dword [rbp - 8], 5
test rcx, rcx
jne 0x14003e7fa
lea rcx, [rbp - 0x18]
call fcn.14001fae0
nop
jmp 0x14003e828
mov eax, dword [rcx + 0x15c]
dec eax
test eax, 0xfffffffd
je 0x14003e815
lea rcx, [rbp - 0x18]
call fcn.14001fae0
nop
jmp 0x14003e828
mov edx, r15d
call fcn.140013a90
nop
lea rcx, [rbp - 0x18]
call fcn.14001fae0
nop
inc esi
cmp esi, r12d
jb 0x14003e7b4
lea rcx, [rbx + 0xbf0]
mov rax, qword [rcx]
call qword [rax + 0x28]
jmp 0x14003e8d0
mov r8, r15
mov rdx, r14
lea rcx, str.CRtHDVBgProcWnd::OnSystemResume__d__d_n
call fcn.1400056e0
cmp dword [0x1402ea7c4], 0
je 0x14003e8d0
mov r8, r15
mov rdx, r14
lea rcx, str.CVolCustom::OnSystemResume__d__d_n
call fcn.1400056e0
cmp dword [0x1402ea7c4], 0
je 0x14003e8d0
lea rcx, str.CVolCustom::S3HpProtect_OnSystemResume_n
call fcn.1400056e0
call fcn.14005ce5c
test rax, rax
je 0x14003e8a4
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xe8]
test rax, rax
je 0x14003e8a4
mov rdi, qword [rax + 0x40]
jmp 0x14003e8a6
xor edi, edi
xor r9d, r9d
mov edx, 0x3ec
mov r8d, 0x1388
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetTimer]
jmp 0x14003e8d0
cmp r13d, 0x401
jne 0x14003e8d0
xor edi, edi
mov dword [rcx + 0x5a4], edi
cmp dword [0x1402ea800], 0
je 0x14003e997
cmp dword [rbx + 0x1400], 0
jne 0x14003e997
lea rdi, [rbx + 0x13d0]
cmp r13d, 0x4a
je 0x14003ea32
cmp r13d, dword [rdi]
jne 0x14003e997
mov rax, r15
test r15, r15
je 0x14003ea19
sub rax, 1
je 0x14003ea04
sub rax, 1
je 0x14003e9cf
sub rax, 1
je 0x14003e9c6
cmp rax, 0x7ffe
jne 0x14003e997
lea rcx, str.CSkypeMgr::OnAPIAttachAvailable_n
call fcn.1400056e0
mov dword [rdi + 0x20], 1
mov rdx, qword [rdi + 0x28]
lea rcx, str.CSkypeMgr::BroadCastSkypeControlAPIDiscoverMsgID__d_n
call fcn.1400056e0
xor r9d, r9d
mov r8, qword [rdi + 0x28]
mov edx, dword [rdi + 4]
mov ecx, 0xffff
call qword [sym.imp.USER32.dll_PostMessageW]
mov edx, 0x270f
lea rcx, str._tSet_Timer..._d_n
call fcn.1400056e0
xor r9d, r9d
mov edx, 0x270f
mov r8d, 0x3e8
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.USER32.dll_SetTimer]
mov r9, r15
mov r8, r14
mov edx, r13d
mov rcx, rbx
call fcn.140056844
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov dword [rdi + 0x20], 5
jmp 0x14003e997
lea rcx, str.CSkypeMgr::OnAPIAttachRefused_n
call fcn.1400056e0
mov dword [rdi + 0x20], 4
mov edx, 0x270f
lea rcx, str._tKill_Timer..._d_n
call fcn.1400056e0
mov edx, 0x270f
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.USER32.dll_KillTimer]
jmp 0x14003e997
lea rcx, str.CSkypeMgr::OnAPIPendingAuthorization_n
call fcn.1400056e0
mov dword [rdi + 0x20], 3
jmp 0x14003e9e2
lea rcx, str.CSkypeMgr::OnAPIAttachSuccess_n
call fcn.1400056e0
mov dword [rdi + 0x20], 2
mov qword [rdi + 8], r14
jmp 0x14003e9e2
cmp qword [rdi + 8], r14
jne 0x14003e997
mov r9, r15
mov r8, r14
mov edx, 0x4a
mov rcx, rdi
call fcn.1400430e0
mov eax, 1
jmp 0x14003e9a8
call fcn.14004b6d4
int3