Function at 0x180003c20
Capabilities:
Get common file path
Query or enumerate registry value
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x1800c6d00]
xor rax, rsp
mov qword [rbp + 0x390], rax
lea r9, [rsp + 0x70]
mov dword [rsp + 0x20], 0x104
lea r8, [0x1800a5b48]
mov edi, 0xffffffff
lea rdx, str.DpuDrvs64
lea rcx, str.jk_DPU
call qword [sym.imp.KERNEL32.dll_GetProfileStringW]
xor esi, esi
lea r15, [0x1800c8fb0]
lea r14, [0x1800c92d0]
mov r12d, 0x5c
test eax, eax
je 0x180003d38
lea rax, [rsp + 0x70]
mov rcx, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rax + rcx*2 + 2], si
lea rcx, [rcx + 1]
jne 0x180003cb0
lea rax, [rcx - 1]
cmp rax, 0x101
ja 0x180003cd4
cmp word [rsp + rcx*2 + 0x6e], r12w
je 0x180003cd4
mov dword [rsp + rcx*2 + 0x70], r12d
mov r9d, 0x104
lea r8, [rsp + 0x70]
mov edx, r9d
lea rcx, [0x1800c8c90]
call fcn.180042708
mov r9d, 0x104
lea r8, str.DPU.INI
mov edx, r9d
lea rcx, [0x1800c8c90]
call fcn.18004251c
mov r9d, 0x104
lea r8, [rsp + 0x70]
mov edx, r9d
mov rcx, r15
call fcn.180042708
mov r9d, 0x104
lea r8, [rsp + 0x70]
mov edx, r9d
mov rcx, r14
call fcn.180042708
mov edi, esi
movups xmm0, xmmword [str.SoftwareJuK]
movzx eax, word [0x1800a5b90]
lea rdx, [rsp + 0x50]
mov word [rsp + 0x68], ax
mov r9d, 0x20019
movups xmmword [rsp + 0x50], xmm0
lea rax, [rsp + 0x48]
xor r8d, r8d
movsd xmm0, qword [0x1800a5b88]
mov rcx, 0xffffffff80000002
movsd qword [rsp + 0x60], xmm0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180003f32
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
lea rax, [rbp + 0x180]
mov qword [rsp + 0x4c0], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.DpuIni
mov dword [rsp + 0x40], 0x208
mov ebx, esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180003dfc
cmp dword [rsp + 0x44], 1
jne 0x180003dfc
mov r9, 0xffffffffffffffff
lea r8, [rbp + 0x180]
mov edx, 0x104
lea rcx, [0x1800c8c90]
call fcn.180042708
mov ebx, 1
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rbp + 0x180]
mov dword [rsp + 0x44], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.DpuDrvs
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180003e87
cmp dword [rsp + 0x40], 1
jne 0x180003e87
mov r9, 0xffffffffffffffff
lea r8, [rbp + 0x180]
mov edx, 0x104
mov rcx, r15
call fcn.180042708
mov rcx, 0xffffffffffffffff
cmp word [r15 + rcx*2 + 2], si
lea rcx, [rcx + 1]
jne 0x180003e61
lea rax, [rcx - 1]
cmp rax, 0x101
ja 0x180003e85
cmp word [r15 + rcx*2 - 2], r12w
je 0x180003e85
mov dword [r15 + rcx*2], r12d
inc ebx
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rbp + 0x180]
mov dword [rsp + 0x44], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.DpuConfig
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180003f16
cmp dword [rsp + 0x40], 1
jne 0x180003f16
mov r9, 0xffffffffffffffff
lea r8, [rbp + 0x180]
mov edx, 0x104
mov rcx, r14
call fcn.180042708
mov rcx, 0xffffffffffffffff
nop dword [rax]
cmp word [r14 + rcx*2 + 2], si
lea rcx, [rcx + 1]
jne 0x180003ef0
lea rax, [rcx - 1]
cmp rax, 0x101
ja 0x180003f14
cmp word [r14 + rcx*2 - 2], r12w
je 0x180003f14
mov dword [r14 + rcx*2], r12d
inc ebx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, 3
mov rbx, qword [rsp + 0x4c0]
je 0x180003fcd
test edi, edi
je 0x18000407b
mov r8d, 0x104
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x180003fd4
mov edx, r12d
lea rcx, [rsp + 0x70]
call fcn.180033100
test rax, rax
je 0x180003fd4
mov word [rax], si
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [rdx + rcx*2], si
jne 0x180003f76
mov edx, 0x104
lea r8, str.DPUDRVS_
sub rdx, rcx
mov rcx, rax
call fcn.1800423bc
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.180004150
lea r9, [0x1800c8c90]
xor r8d, r8d
lea rdx, str.TrialInst
lea rcx, str.DPUINIT
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x180003fd4
mov dword [0x1800c8c84], eax
mov edi, esi
jmp 0x18000407b
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rax, [rsp + 0x70]
mov rcx, 0xffffffffffffffff
cmp word [rax + rcx*2 + 2], si
lea rcx, [rcx + 1]
jne 0x180003ff0
lea rax, [rcx - 1]
cmp rax, 0x101
ja 0x180004014
cmp word [rsp + rcx*2 + 0x6e], r12w
je 0x180004014
mov dword [rsp + rcx*2 + 0x70], r12d
mov r9d, 0x104
lea r8, [rsp + 0x70]
mov edx, r9d
lea rcx, [0x1800c8c90]
call fcn.180042708
mov r9d, 0x104
lea r8, str.DPU.INI
mov edx, r9d
lea rcx, [0x1800c8c90]
call fcn.18004251c
mov r9d, 0x104
lea r8, [rsp + 0x70]
mov edx, r9d
mov rcx, r15
call fcn.180042708
mov r9d, 0x104
lea r8, [rsp + 0x70]
mov edx, r9d
mov rcx, r14
call fcn.180042708
mov edi, 1
mov qword [rsp + 0x38], rsi
lea rax, [0x1800c8b80]
mov qword [rsp + 0x30], rsi
lea r8, [0x1800c8c90]
mov dword [rsp + 0x28], 0x104
mov r9d, 0xffffffff
xor edx, edx
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [rsp + 0x38], rsi
lea rax, [0x1800c8ea0]
mov qword [rsp + 0x30], rsi
mov r9d, 0xffffffff
mov dword [rsp + 0x28], 0x104
mov r8, r15
xor edx, edx
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [rsp + 0x38], rsi
lea rax, [0x1800c91c0]
mov qword [rsp + 0x30], rsi
mov r9d, 0xffffffff
mov dword [rsp + 0x28], 0x104
mov r8, r14
xor edx, edx
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, edi
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.180032180
lea r11, [rsp + 0x4a0]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret