Function at 0x1400046f0
Capabilities:
Extract resource via kernel32 functions
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x690
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x14016adb0]
xor rax, rsp
mov qword [rsp + 0x680], rax
mov rsi, rcx
mov qword [rsp + 0x40], rcx
xor r8d, r8d
lea edx, [r8 + 0x66]
call fcn.1400d02f8
nop
lea rax, [0x14012c468]
mov qword [rsi], rax
xor r12d, r12d
mov qword [rsi + 0xf8], r12
mov dword [rsi + 0x100], r12d
mov qword [rsi + 0x108], r12
mov qword [rsi + 0x110], r12
mov dword [rsi + 0x118], r12d
mov dword [rsi + 0xa80], r12d
mov qword [rsi + 0xa78], r12
lea rbx, [rsi + 0xa88]
mov qword [rsp + 0x30], rbx
lea rax, [0x14013c330]
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x38], r12
mov qword [rbx + 0x40], r12
mov qword [rbx + 0x30], r12
mov qword [rbx + 0x28], r12
mov qword [rbx + 0x48], r12
mov qword [rbx + 0x50], 0xa
mov rax, r12
je 0x1400047bd
mov rax, qword [rax]
test rax, rax
jne 0x1400047b5
mov qword [rbx + 0x38], r12
mov qword [rbx + 0x40], r12
mov qword [rbx + 0x30], r12
mov qword [rbx + 0x28], r12
mov rcx, qword [rbx + 0x48]
call fcn.1400d1a8c
mov qword [rbx + 0x48], r12
mov qword [rbx + 0x58], r12
mov dword [rbx + 0x60], r12d
mov qword [rbx + 0x68], r12
mov qword [rbx + 0x70], r12
mov qword [rbx + 0x78], r12
mov dword [rbx + 4], r12d
mov dword [rbx + 8], r12d
mov dword [rbx + 0xc], r12d
mov dword [rbx + 0x10], r12d
mov dword [rbx + 0x14], r12d
mov dword [rbx + 0x18], r12d
mov dword [rbx], r12d
lea rbx, [rsi + 0xb08]
mov qword [rsp + 0x30], rbx
mov rcx, rbx
call fcn.1400dbd34
nop
lea rax, [0x140131a78]
mov qword [rbx], rax
mov qword [rbx + 0x178], r12
lea r13, [0x1401202c8]
mov qword [rbx + 0x170], r13
lea rcx, [rbx + 0x14c]
mov dword [rsp + 0x20], 0x258
mov r9d, 0x320
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_SetRect]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.1400c909c
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14000487b
mov rcx, rax
call fcn.1400deb30
jmp 0x14000487e
mov rax, r12
mov qword [rbx + 0x188], rax
mov dword [rbx + 0x148], r12d
mov byte [rbx + 0x190], 0
mov qword [rbx + 0x180], r12
lea rcx, [rsi + 0xca0]
call fcn.1400aae50
nop
lea rdi, [rsi + 0x37d0]
mov qword [rsp + 0x30], rdi
mov r9d, 0x68
xor r8d, r8d
lea edx, [r9 + 0x27]
mov rcx, rdi
call fcn.1400dc3ec
nop
lea rax, [0x140142a98]
mov qword [rdi], rax
lea rcx, [rdi + 0x118]
lea rax, [0x1400be060]
mov qword [rsp + 0x20], rax
lea r9, [0x1400bdc50]
mov edx, 0xd60
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.1400fa320
nop
lea rcx, [rdi + 0xd718]
lea r15, [fcn.140020c80]
mov qword [rsp + 0x20], r15
lea r9, [0x1400209b0]
mov edx, 0x268
mov r8d, 2
call fcn.1400fa320
nop
lea rcx, [rdi + 0xdbf8]
call fcn.1400d3ad0
lea r14, [0x140121848]
mov qword [rdi + 0xdbf8], r14
mov dword [rdi + 0xdbf0], r12d
add rdi, 0xe5c
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
nop
nop
nop
mov dword [rdi], r12d
add rdi, 0xd60
sub rax, 1
jne 0x140004960
lea rcx, [rsi + 0x11470]
call fcn.1400c6690
nop
lea rcx, [rsi + 0x11bd8]
call fcn.1400b4f10
nop
lea rcx, [rsi + 0x17340]
xor edx, edx
call fcn.140098de0
nop
lea rcx, [rsi + 0x17de8]
xor edx, edx
call fcn.1400a7500
nop
mov qword [rsi + 0x19480], r12
lea rax, [0x1401202e8]
mov qword [rsi + 0x19478], rax
lea rdi, [rsi + 0x19578]
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov edx, 0x8a
mov rcx, rdi
call fcn.1400d02f8
nop
lea rax, [0x14013f8f8]
mov qword [rdi], rax
lea rcx, [rdi + 0x150]
mov qword [rsp + 0x20], r15
lea r9, [0x1400209b0]
mov edx, 0x268
mov r8d, 7
call fcn.1400fa320
nop
lea rcx, [rdi + 0x1228]
call fcn.1400d3ad0
lea rbp, [0x140121b08]
mov qword [rdi + 0x1228], rbp
lea rcx, [rdi + 0x12d0]
call fcn.1400d3ad0
mov qword [rdi + 0x12d0], rbp
lea rcx, [rdi + 0x1378]
call fcn.1400d3ad0
mov qword [rdi + 0x1378], r14
mov dword [rdi + 0xf0], r12d
mov dword [rdi + 0xf4], r12d
lea rcx, [rdi + 0x100]
xor edx, edx
lea r8d, [rdx + 0x4c]
call fcn.1400fce30
nop
lea rcx, [rsi + 0x1a998]
xor edx, edx
call fcn.14009af90
nop
lea rdi, [rsi + 0x1cbe0]
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov edx, 0x8d
mov rcx, rdi
call fcn.1400d02f8
nop
lea rax, [0x140140c98]
mov qword [rdi], rax
lea rcx, [rdi + 0x100]
call fcn.1400d3ad0
lea r11, [0x1401220b8]
mov qword [rdi + 0x100], r11
lea rcx, [rdi + 0x1a8]
mov qword [rsp + 0x20], r15
lea r9, [0x1400209b0]
mov edx, 0x268
mov r8d, SafeArrayGetDim
call fcn.1400fa320
nop
lea rcx, [rdi + 0x20f0]
call fcn.1400d3ad0
mov qword [rdi + 0x20f0], rbp
lea rcx, [rdi + 0x2198]
call fcn.1400d3ad0
mov qword [rdi + 0x2198], r14
mov dword [rdi + 0xf0], r12d
lea rcx, [rsi + 0x1ee20]
call fcn.1400a9880
nop
lea rcx, [rsi + 0x1f168]
xor edx, edx
call fcn.14009ffa0
nop
lea rdi, [rsi + 0x20e30]
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov edx, 0xa4
mov rcx, rdi
call fcn.1400d02f8
nop
lea rax, [0x140140098]
mov qword [rdi], rax
mov qword [rdi + 0xf8], r12
lea rbp, [0x1401248e0]
mov qword [rdi + 0xf0], rbp
lea rcx, [rdi + 0x118]
call fcn.1400d3ad0
mov qword [rdi + 0x118], r14
mov dword [rdi + 0x110], 0xffffffff
lea rdi, [rsi + 0x20ff0]
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov edx, 0xa5
mov rcx, rdi
call fcn.1400d02f8
nop
lea rax, [0x14013fcf8]
mov qword [rdi], rax
mov qword [rdi + 0xf8], r12
mov qword [rdi + 0xf0], rbp
lea rcx, [rdi + 0x110]
call fcn.1400d3ad0
mov qword [rdi + 0x110], r14
mov dword [rdi + 0x108], 0xffffffff
lea rax, [0x140120270]
mov qword [rsi + 0x211b0], rax
mov qword [rsi + 0x211b8], r12
lea rax, [0x14012bed0]
mov qword [rsi + 0x211c8], rax
mov qword [rsi + 0x211e0], r12
mov qword [rsi + 0x211e8], r12
mov qword [rsi + 0x211d8], r12
mov qword [rsi + 0x211d0], r12
mov qword [rsi + 0x211f0], r12
mov qword [rsi + 0x211f8], 0xa
lea rcx, [rsi + 0x21200]
call fcn.1400d1068
nop
lea rax, [rsi + 0x2161c]
mov ecx, 0x80
nop
nop
mov dword [rax], r12d
mov dword [rax + 4], r12d
add rax, 8
sub rcx, 1
jne 0x140004c40
lea rax, [rsi + 0x21a20]
mov ecx, 0x80
nop
mov dword [rax], r12d
mov dword [rax + 4], r12d
add rax, 8
sub rcx, 1
jne 0x140004c60
mov edi, 8
mov ebp, edi
lea rbx, [rsi + 0x21e24]
nop
lea r9, [0x1400059d0]
mov edx, 4
mov r8d, 0x100
mov rcx, rbx
call fcn.140005980
add rbx, 0x404
sub ebp, 1
jns 0x140004c80
lea rbx, [rsi + 0x24248]
nop
lea r9, [0x1400059d0]
mov edx, 4
mov r8d, 0x100
mov rcx, rbx
call fcn.140005980
add rbx, 0x404
sub edi, 1
jns 0x140004cb0
and dword [rsi + 0x274f4], 0xfffffffc
lea rcx, [rsi + 0x54910]
call fcn.1400d3ad0
mov qword [rsi + 0x54910], r14
lea rcx, [rsi + 0x549b8]
mov qword [rsp + 0x20], r15
lea r9, [0x1400209b0]
mov edx, 0x268
mov r8d, 0x19
call fcn.1400fa320
nop
lea rbx, [rsi + 0x585e0]
mov qword [rsp + 0x30], rbx
mov rcx, rbx
call fcn.1400d3ad0
nop
lea rdi, [0x140131718]
mov qword [rbx], rdi
mov qword [rbx + 0xb8], r12
mov qword [rbx + 0xb0], r13
call fcn.1400cc6e8
mov rcx, rax
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
jne 0x140004d61
mov ecx, 0x80004005
call fcn.1400025a0
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx + 0xd0], rax
lea rcx, [rbx + 0xd8]
call fcn.1400d1068
nop
mov qword [rbx + 0x1f8], r12
lea rbp, [0x1401248e0]
mov qword [rbx + 0x1f0], rbp
mov rcx, rbx
call fcn.140020df0
nop
lea rbx, [rsi + 0x58848]
mov qword [rsp + 0x30], rbx
mov rcx, rbx
call fcn.1400d3ad0
nop
mov qword [rbx], rdi
mov qword [rbx + 0xb8], r12
mov qword [rbx + 0xb0], r13
call fcn.1400cc6e8
mov rcx, rax
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
jne 0x140004de3
mov ecx, 0x80004005
call fcn.1400025a0
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx + 0xd0], rax
lea rcx, [rbx + 0xd8]
call fcn.1400d1068
nop
mov qword [rbx + 0x1f8], r12
mov qword [rbx + 0x1f0], rbp
mov rcx, rbx
call fcn.140020df0
nop
lea rcx, [rsi + 0x58ab0]
call fcn.1400d3ad0
lea rax, [0x140121b08]
mov qword [rsi + 0x58ab0], rax
mov dword [rsi + 0x54898], r12d
mov dword [rsi + 0x548a0], r12d
mov qword [0x1401ca768], r12
mov qword [rsi + 0xe8], r12
mov qword [rsi + 0xf0], r12
mov dword [rsi + 0x19388], r12d
mov dword [rsi + 0x1938c], r12d
mov dword [rsi + 0x19384], r12d
mov dword [rsi + 0x548a4], r12d
mov dword [rsi + 0x1944c], r12d
mov dword [rsi + 0x19450], r12d
mov dword [rsi + 0x19454], r12d
mov qword [rsi + 0x19418], r12
mov qword [rsi + 0x211a8], r12
mov rax, qword [rsi + 0x211d0]
test rax, rax
je 0x140004ea8
mov rax, qword [rax]
test rax, rax
jne 0x140004ea0
mov qword [rsi + 0x211e0], r12
mov qword [rsi + 0x211e8], r12
mov qword [rsi + 0x211d8], r12
mov qword [rsi + 0x211d0], r12
mov rcx, qword [rsi + 0x211f0]
call fcn.1400d1a8c
mov qword [rsi + 0x211f0], r12
lea rdi, [rsi + 0x27568]
lea r8, str.VDeck
mov edx, 0x104
mov rcx, rdi
call fcn.1400f9e00
lea rbp, str.OPTIONS
test rdi, rdi
je 0x140004faa
mov dword [rsp + 0x38], 0x104
mov qword [rsp + 0x20], rbp
mov r9, rdi
lea r8, str.SYSTEMCurrentControlSetServicesVIA_HD_Audio_Codec_DefaultVDeckINI
lea rdx, str._s_s_s_
lea rcx, [rsp + 0x260]
call fcn.14001e4d0
lea r11, [rsp + 0x30]
mov qword [rsp + 0x20], r11
mov r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0x260]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140004faa
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x470]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.WriteKeysToRegistryOK
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140004faa
lea rcx, [rsp + 0x470]
call fcn.1400fa6e0
test eax, eax
jne 0x140004fd7
mov rcx, rdi
call fcn.140084bf0
test eax, eax
jne 0x140004fbf
lea ecx, [rax + 1]
call fcn.1400fa230
int3
mov r9d, 1
lea r8, str.WriteKeysToRegistryOK
mov rdx, rbp
mov rcx, rdi
call fcn.140085200
test rdi, rdi
je 0x1400050a6
mov dword [rsp + 0x38], 0x104
mov qword [rsp + 0x20], rbp
mov r9, rdi
lea r8, str.SYSTEMCurrentControlSetServicesVIA_HD_Audio_Codec_DefaultVDeckINI
lea rdx, str._s_s_s_
lea rcx, [rsp + 0x470]
call fcn.14001e4d0
lea r11, [rsp + 0x30]
mov qword [rsp + 0x20], r11
mov r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0x470]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400050a6
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x260]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.icon_file
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x14000508f
lea r8, [0x14012c778]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400f9e00
jmp 0x1400050a6
lea r8, [rsp + 0x260]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400f9e00
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.1400849c0
call fcn.1400de224
mov rcx, qword [rax + 8]
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_SafeArrayGetDim
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetDim
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8d, [r9 - 0xf]
lea rdx, [rsp + 0x50]
mov rcx, qword [rcx + 0x88]
call qword [sym.imp.USER32.dll_LoadImageW]
mov qword [rsi + 0x54900], rax
test rax, rax
je 0x1400050ff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
call fcn.1400de224
mov rcx, qword [rax + 8]
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_SafeArrayGetDim
mov dword [rsp + 0x20], 0x20
mov r9d, 0x20
lea r8d, [r9 - 0x1f]
lea rdx, [rsp + 0x50]
mov rcx, qword [rcx + 0x88]
call qword [sym.imp.USER32.dll_LoadImageW]
mov qword [rsi + 0x54908], rax
test rax, rax
je 0x140005149
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
cmp qword [rsi + 0x54900], 0
jne 0x140005173
call fcn.1400de224
call fcn.1400de224
mov edx, 0x80
mov rcx, qword [rax + 0x18]
call qword [sym.imp.USER32.dll_LoadIconW]
mov qword [rsi + 0x54900], rax
mov rax, rsi
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.1400f9790
lea r11, [rsp + 0x690]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret