Function at 0x14004f820
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push r12
push r13
push r14
mov eax, 0x20130
call fcn.140167340
sub rsp, rax
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov qword [rsp + 0x20150], rbx
mov qword [rsp + 0x20158], rbp
mov qword [rsp + 0x20160], rsi
mov qword [rsp + 0x20168], rdi
mov rax, qword [0x1401ea158]
xor rax, rsp
mov qword [rsp + 0x20120], rax
xor r14d, r14d
mov qword [rsp + 0x78], r14
call fcn.14012a060
mov rdx, rax
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x14004f899
mov ecx, 0x80004005
call fcn.140002cb0
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
lea r13, [0x14017f438]
mov r12, r13
or rbp, 0xffffffffffffffff
shr r12, 0x10
jne 0x14004f8e6
movzx edi, r13w
mov ecx, edi
call fcn.140138f84
test rax, rax
je 0x14004f90a
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140004c30
mov rbx, qword [rsp + 0x50]
jmp 0x14004f90a
xor eax, eax
mov rcx, rbp
mov rdi, r13
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rdx, r13
lea rcx, [rsp + 0x50]
call fcn.140003210
mov rbx, qword [rsp + 0x50]
call fcn.14012a060
mov rdx, rax
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x14004f92a
mov ecx, 0x80004005
call fcn.140002cb0
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x58], rsi
test r12, r12
jne 0x14004f968
movzx edi, r13w
mov ecx, edi
call fcn.140138f84
test rax, rax
je 0x14004f98c
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140004c30
mov rsi, qword [rsp + 0x58]
jmp 0x14004f98c
xor eax, eax
mov rcx, rbp
mov rdi, r13
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rdx, r13
lea rcx, [rsp + 0x58]
call fcn.140003210
mov rsi, qword [rsp + 0x58]
mov qword [rsp + 0x60], r14
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftMediaPlayer
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004fea6
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x78], rcx
mov dword [rsp + 0x68], 0xfffe
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x120]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x6c]
xor r8d, r8d
lea rdx, str.Installation_Directory
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004fe59
mov eax, dword [rsp + 0x6c]
cmp eax, 1
je 0x14004fa18
cmp eax, 2
jne 0x14004fe59
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x14004fa3b
test al, 1
jne 0x14004fe59
shr rax, 1
cmp word [rsp + rax*2 + 0x11e], 0
je 0x14004fa45
jmp 0x14004fe59
mov word [rsp + 0x120], 0
xor eax, eax
mov rcx, rbp
lea rdi, [rsp + 0x120]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x14004fac7
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14004fb53
cmp dword [rdx + 0x10], eax
jge 0x14004fa94
cmp dword [rbx - 0xc], eax
jge 0x14004fa88
mov ecx, 0x80070057
call fcn.140002cb0
int3
mov dword [rbx - 0x10], r14d
mov word [rbx], ax
jmp 0x14004fb53
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14004faab
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
mov rsi, qword [rsp + 0x58]
jmp 0x14004fb53
mov r12d, dword [rbx - 0x10]
lea r13, [rsp + 0x120]
sub r13, rbx
sar r13, 1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14004fafb
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140002cd0
mov rbx, qword [rsp + 0x50]
cmp r13, r12
ja 0x14004fb1b
movsxd rax, edi
lea r12, [rax + rax]
lea r8, [rbx + r13*2]
mov r9, r12
mov rdx, r12
mov rcx, rbx
call fcn.140144e50
jmp 0x14004fb38
movsxd rax, edi
lea r12, [rax + rax]
mov r9, r12
lea r8, [rsp + 0x120]
mov rdx, r12
mov rcx, rbx
call fcn.140144ee0
test edi, edi
js 0x14004fe4e
cmp edi, dword [rbx - 0xc]
jg 0x14004fe4e
mov dword [rbx - 0x10], edi
mov word [r12 + rbx], 0
lea rcx, [rsp + 0x98]
call fcn.140073c40
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rsi, 0xffffffffffffffe8
cmp rcx, rsi
je 0x14004fbbb
cmp dword [rsi + 0x10], 0
jl 0x14004fbac
mov rax, qword [rsi]
cmp qword [rcx], rax
jne 0x14004fbac
call fcn.140002ed0
mov rdi, rax
mov ecx, ebp
lock xadd dword [rsi + 0x10], ecx
add ecx, 0xffffffff
test ecx, ecx
jg 0x14004fba1
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rdi + 0x18]
mov qword [rsp + 0x58], rax
jmp 0x14004fbbb
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x58]
call fcn.140003210
nop
mov rdx, qword [rsp + 0x98]
add rdx, 0xffffffffffffffe8
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14004fbde
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rsi, qword [rsp + 0x58]
mov r8, rsi
lea rdx, str._ProgramFiles_
lea rcx, [rsp + 0x50]
call fcn.140005320
mov rbx, qword [rsp + 0x50]
cmp dword [rbx - 8], 1
jle 0x14004fc14
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x50]
call fcn.140002d30
mov rbx, qword [rsp + 0x50]
test rbx, rbx
jne 0x14004fc71
lea rdx, [rsi - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14004fc35
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, 0xffffffffffffffe8
mov rax, 0xfffffffffffffff8
lock xadd dword [rax], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x14004fc58
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14004fee1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14004fee1
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x10120]
mov qword [rsp + 0x20], rax
mov r9d, 0x7fff
xor r8d, r8d
lea rdx, str.wmplayer.exe
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SearchPathW]
mov r11d, eax
test eax, eax
jne 0x14004fd12
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x10120]
mov qword [rsp + 0x20], rax
mov r9d, 0x7fff
xor r8d, r8d
lea rdx, str.mplayer2.exe
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SearchPathW]
mov r11d, eax
test eax, eax
jne 0x14004fd12
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x10120]
mov qword [rsp + 0x20], rax
mov r9d, 0x7fff
xor r8d, r8d
lea rdx, str.mplayer.exe
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SearchPathW]
mov r11d, eax
xor eax, eax
mov rcx, rbp
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test ecx, ecx
js 0x14004fe43
cmp ecx, dword [rbx - 0xc]
jg 0x14004fe43
mov dword [rbx - 0x10], ecx
movsxd rax, ecx
mov word [rbx + rax*2], 0
test r11d, r11d
je 0x14004fdef
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rsp + 0xb0]
call fcn.140148fe0
mov dword [rsp + 0xb0], 0x68
xor eax, eax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x10120]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14004fdd2
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14004fdef
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rdx, [rsi - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14004fe0b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x14004fe2a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14004fee1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14004fee1
mov ecx, 0x80070057
call fcn.140002cb0
int3
mov ecx, 0x80070057
call fcn.140002cb0
nop
lea rdx, [rsi - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14004fe75
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x14004fe94
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14004fee1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14004fee1
lea rdx, [rsi - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14004fec2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x14004fee1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x20120]
xor rcx, rsp
call fcn.140144dc0
lea r11, [rsp + 0x20130]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret