Function at 0x140082750
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push rbp
push rdi
sub rsp, 0x748
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x136
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1401a7008]
xor rax, rbp
mov qword [rbp + 0x708], rax
lea rcx, [0x1401b9255]
call fcn.14007a304
lea rax, [rbp + 0x10]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
mov dword [rbp + 0x3b4], 0
mov dword [rbp + 0x3d4], 0
mov edx, 0x104
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
mov dword [rbp + 0x3f4], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x414], eax
mov qword [rbp + 0x458], 0
lea rax, [rbp + 0x138]
mov qword [rbp + 0x478], rax
mov qword [rbp + 0x498], 0
cmp dword [rbp + 0x3f4], 0
jne 0x140082817
cmp dword [rbp + 0x414], 0x78
jne 0x140082817
mov dword [rbp + 0x704], 0
jmp 0x140082821
mov dword [rbp + 0x704], 1
movzx eax, byte [rbp + 0x704]
mov byte [rbp + 0x4b4], al
movzx eax, byte [rbp + 0x4b4]
test eax, eax
jne 0x140082840
xor al, al
jmp 0x140082a9c
movzx eax, byte [rbp + 0x4b4]
test eax, eax
je 0x140082857
mov dword [rbp + 0x704], 0x40
jmp 0x140082861
mov dword [rbp + 0x704], 0x20
mov r9d, dword [rbp + 0x704]
lea r8, str.___u_bit_operating_system
mov edx, 0x104
lea rcx, [rbp + 0x170]
call fcn.140078009
lea rax, [rbp + 0x458]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400828b4
xor al, al
jmp 0x140082a9c
mov dword [rbp + 0x394], 0x100
lea rax, [rbp + 0x394]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x434]
xor r8d, r8d
lea rdx, [0x140173860]
mov rcx, qword [rbp + 0x458]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400828fc
xor al, al
jmp 0x140082a9c
lea r8, [rbp + 0x170]
mov edx, 0x80
lea rcx, [rbp + 0x10]
call fcn.1400785d6
mov dword [rbp + 0x394], 4
lea rax, [rbp + 0x394]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x3b4]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x434]
xor r8d, r8d
lea rdx, str.CurrentMajorVersionNumber
mov rcx, qword [rbp + 0x458]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400829c4
movzx eax, word [rbp + 0x3b4]
mov word [rbp + 0x110], ax
mov dword [rbp + 0x394], 4
lea rax, [rbp + 0x394]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x3d4]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x434]
xor r8d, r8d
lea rdx, str.CurrentMinorVersionNumber
mov rcx, qword [rbp + 0x458]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400829b1
mov dword [rbp + 0x3d4], 0
movzx eax, word [rbp + 0x3d4]
mov word [rbp + 0x112], ax
jmp 0x140082a9a
mov dword [rbp + 0x394], 8
lea rax, [rbp + 0x394]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x138]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x434]
xor r8d, r8d
lea rdx, str.CurrentVersion
mov rcx, qword [rbp + 0x458]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140082a96
mov dx, 0x2e
lea rcx, [rbp + 0x138]
call fcn.14007a16a
mov qword [rbp + 0x498], rax
cmp qword [rbp + 0x498], 0
je 0x140082a90
xor eax, eax
mov rcx, qword [rbp + 0x498]
mov word [rcx], ax
lea rcx, [rbp + 0x138]
call fcn.140079d96
mov dword [rbp + 0x3b4], eax
mov rax, qword [rbp + 0x498]
add rax, 2
mov qword [rbp + 0x498], rax
mov rcx, qword [rbp + 0x498]
call fcn.140079d96
mov dword [rbp + 0x3d4], eax
cmp dword [rbp + 0x3b4], 5
jb 0x140082a8a
cmp dword [rbp + 0x3b4], 5
jne 0x140082a8e
cmp dword [rbp + 0x3d4], 2
jae 0x140082a8e
xor al, al
jmp 0x140082a9c
jmp 0x140082a94
xor al, al
jmp 0x140082a9c
jmp 0x140082a9a
xor al, al
jmp 0x140082a9c
mov al, 1
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140171e60]
call fcn.140079a35
mov rax, rdi
mov rcx, qword [rbp + 0x708]
xor rcx, rbp
call fcn.140078919
lea rsp, [rbp + 0x718]
pop rdi
pop rbp
ret