Function at 0x140004190
Capabilities:
Get file version info
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x14001e008]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rsi, rcx
xor r15d, r15d
mov qword [rsp + 0x48], r15
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServices_vgc
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140004214
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140004443
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x140004443
mov dword [rsp + 0x38], 0x104
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140004432
cmp dword [rsp + 0x70], 2
jne 0x140004432
mov rbx, r15
mov eax, 1
cmp word [rbp - 0x80], 0x22
cmove rbx, rax
mov edx, dword [rsp + 0x38]
lea rcx, [rbp - 0x80]
call fcn.140009528
test rax, rax
je 0x1400042a1
cmp word [rsp + rax*2 + 0x7e], 0x22
jne 0x1400042a1
lea rax, [rax*2 - 2]
cmp rax, 0x208
jae 0x140004477
mov word [rbp + rax - 0x80], r15w
lea rdx, [rbp - 0x80]
lea rdx, [rdx + rbx*2]
mov rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp word [rdx + r8*2], r15w
jne 0x1400042b3
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r15w
lea rcx, [rsp + 0x50]
call fcn.1400012d0
nop
mov dword [rsp + 0x3c], r15d
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x3c]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov r14d, eax
test eax, eax
je 0x1400043c8
mov eax, 2
mul r14
mov rbx, rax
cmovo rbx, rdi
mov rcx, rbx
call fcn.140004830
mov rdi, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.140006290
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
mov r9, rdi
mov r8d, r14d
mov edx, dword [rsp + 0x3c]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov rcx, rdi
test eax, eax
je 0x1400043c3
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x40], r15d
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x30]
lea rdx, [0x14001ae14]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1400043c0
cmp dword [rsp + 0x40], 0x34
jb 0x1400043c0
mov rcx, qword [rsp + 0x30]
cmp dword [rcx], 0xfeef04bd
jne 0x1400043c0
movzx eax, word [rcx + 0xa]
mov word [rsi], ax
movzx eax, word [rcx + 8]
mov word [rsi + 2], ax
movzx eax, word [rcx + 0xe]
mov word [rsi + 4], ax
movzx eax, word [rcx + 0xc]
mov word [rsi + 6], ax
mov rcx, rdi
call fcn.1400047c0
mov bl, 1
jmp 0x1400043ca
mov rcx, rdi
call fcn.1400047c0
xor bl, bl
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140004408
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004403
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004471
call fcn.1400047c0
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r15w
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000442d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
movzx eax, bl
jmp 0x140004445
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140004443
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
xor al, al
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1400047a0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140009418
nop
call fcn.140004940
int3