Function at 0x140004dc0
Capabilities:
Check if file exists
Get file attributes
Query environment variable
Query or enumerate registry value
Read .ini file

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0xa28]
sub rsp, 0xb10
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1400623d0]
xor rax, rsp
mov qword [rbp + 0xa00], rax
xor r14d, r14d
mov dword [rbp + 0x900], r14d
xor edx, edx
mov r8d, 0xfc
lea rcx, [rbp + 0x904]
call fcn.14001a650
mov dword [rbp + 0x800], r14d
xor edx, edx
lea r8d, [r14 + 0x7c]
lea rcx, [rbp + 0x804]
call fcn.14001a650
mov dword [rbp + 0x880], r14d
xor edx, edx
lea r8d, [r14 + 0x7c]
lea rcx, [rbp + 0x884]
call fcn.14001a650
mov esi, r14d
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x48], r14
cmp dword [0x140064c44], 6
jb 0x140005359
lea r8d, [r14 + 0x40]
lea rdx, [rbp + 0x880]
lea rcx, str.PostUser
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
movzx eax, word [0x1400481d4]
or rbx, 0xffffffffffffffff
lea r15, [0x1400664a0]
cmp ax, word [rbp + 0x880]
jne 0x1400050b8
movzx eax, word [0x1400481d6]
cmp ax, word [rbp + 0x882]
jne 0x1400050b8
mov r9d, 0x20019
lea r8, [0x1400481d8]
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x38]
call fcn.140011540
mov rsi, qword [rsp + 0x38]
test eax, eax
jne 0x140005210
mov dword [rsp + 0x30], 0x80
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdi, [0x140066520]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.productname
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140004f35
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x140004f35
cmp dword [rsp + 0x30], r14d
jne 0x140004f35
mov word [0x140066520], r14w
mov rcx, r14
nop dword [rax + rax]
movzx eax, word [rcx + rdi]
mov word [rbp + rcx + 0x900], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140004f40
mov dword [rsp + 0x30], 0x80
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x140066420]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.serialnumber
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140004fa9
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x140004fa9
cmp dword [rsp + 0x30], 0
jne 0x140004fa9
mov word [0x140066420], r14w
mov dword [rsp + 0x30], 0x80
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.productnumber
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140004ff6
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x140004ff6
cmp dword [rsp + 0x30], 0
jne 0x140004ff6
mov word [0x1400664a0], r14w
mov dword [rsp + 0x30], 0x80
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rcx, [0x140064b60]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.UUID
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000504a
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x14000504a
cmp dword [rsp + 0x30], 0
jne 0x14000504a
mov word [0x140064b60], r14w
mov dword [rsp + 0x30], 0x80
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400666a0]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.systemboardproductid
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000509e
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x14000509e
cmp dword [rsp + 0x30], 0
jne 0x14000509e
mov word [0x1400666a0], r14w
test rsi, rsi
je 0x140005210
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, r14
jmp 0x140005210
lea rcx, [0x1400667c8]
call fcn.140001370
test eax, eax
je 0x1400050ec
lea rdx, [rbp + 0x7a0]
lea rcx, [0x1400667c8]
call fcn.140001940
lea rdx, [rsp + 0x60]
lea rcx, [0x1400667c8]
call fcn.140001c10
cmp byte [rbp + 0x7a5], 0
je 0x140005150
mov rcx, qword [rbp + 0x7c8]
call fcn.140004c50
lea rdi, [0x140066520]
sub rdi, rax
nop dword [rax + rax]
movzx ecx, word [rax]
mov word [rax + rdi], cx
lea rax, [rax + 2]
test cx, cx
jne 0x140005110
mov rcx, qword [rbp + 0x7c8]
call fcn.140004c50
lea rdx, [rbp + 0x900]
sub rdx, rax
nop word [rax + rax]
movzx ecx, word [rax]
mov word [rax + rdx], cx
lea rax, [rax + 2]
test cx, cx
jne 0x140005140
cmp byte [rbp + 0x7a7], 0
je 0x140005180
mov rcx, qword [rbp + 0x7d8]
call fcn.140004c50
lea rdx, [0x140066420]
sub rdx, rax
nop
movzx ecx, word [rax]
mov word [rax + rdx], cx
lea rax, [rax + 2]
test cx, cx
jne 0x140005170
cmp byte [rbp + 0x7ba], 0
je 0x1400051b0
mov rcx, qword [rbp + 0x7e8]
call fcn.140004c50
mov rdx, r15
sub rdx, rax
nop dword [rax + rax]
movzx ecx, word [rax]
mov word [rax + rdx], cx
lea rax, [rax + 2]
test cx, cx
jne 0x1400051a0
mov rcx, qword [rbp + 0x7e0]
test rcx, rcx
je 0x1400051e3
mov rax, rbx
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x1400051c0
test rax, rax
je 0x1400051e3
call fcn.140004c50
mov rdx, rax
lea rcx, [0x140064b60]
call qword [sym.imp.SHLWAPI.dll_StrCpyW]
cmp byte [rsp + 0x65], 0
je 0x140005210
mov rcx, qword [rbp + 0x770]
call fcn.140004c50
lea rdx, [0x1400666a0]
sub rdx, rax
movzx ecx, word [rax]
mov word [rax + rdx], cx
lea rax, [rax + 2]
test cx, cx
jne 0x140005200
xor edx, edx
lea r8d, [rdx + 0x23]
mov rcx, r15
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
mov rdi, rax
test rax, rax
jne 0x1400052ac
xor edx, edx
lea r8d, [rax + 0x2d]
mov rcx, r15
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
mov rdi, rax
test rax, rax
jne 0x1400052ac
lea rdi, [0x1400482b0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140005286
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x100
lea r9, [0x140066720]
lea r8, [0x1400476d0]
lea rdx, str.SKUOptionConfig
lea rcx, str.BIOS_Strings
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov rdx, r15
lea rcx, [rbp + 0x800]
call qword [sym.imp.SHLWAPI.dll_StrCpyW]
lea rax, [rbp + 0x800]
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1400052a0
jmp 0x1400052eb
mov r8, rdi
sub r8, r15
sar r8, 1
inc r8d
mov rdx, r15
lea rcx, [rbp + 0x800]
call qword [sym.imp.SHLWAPI.dll_StrCpyNW]
lea rax, [rbp + 0x800]
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1400052d0
lea rdx, [rdi + 2]
lea rcx, [0x140066720]
call qword [sym.imp.SHLWAPI.dll_StrCpyW]
lea rdx, [0x14004831c]
lea rcx, [rbp + 0x900]
call qword [sym.imp.SHLWAPI.dll_StrTrimW]
lea rcx, [rbp + 0x900]
mov edx, 0x20
call fcn.140016f30
test rax, rax
mov rdi, rax
je 0x140005359
lea rdx, [0x140048320]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrPBrkW]
test rax, rax
je 0x140005344
mov r8d, ebx
mov rdx, rdi
lea rcx, [rbp + 0x800]
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x140005348
xor ecx, ecx
jmp 0x140005306
mov rdx, rdi
lea rcx, [0x140066620]
call qword [sym.imp.SHLWAPI.dll_StrCpyW]
nop
test rsi, rsi
je 0x140005367
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0xa00]
xor rcx, rsp
call fcn.14001a120
lea r11, [rsp + 0xb10]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret