Function at 0x18005e690
Capabilities:
Check if file exists
Get common file path
Query or enumerate registry value
Read .ini file

Disassembly:
push rbp
lea rbp, [rsp - 0x1020]
mov eax, 0x1120
call fcn.180204780
sub rsp, rax
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x1138], rbx
mov qword [rsp + 0x1140], rdi
mov rax, qword [0x180332088]
xor rax, rsp
mov qword [rbp + 0x1010], rax
mov rdi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x5c0]
call fcn.180233580
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x7d0]
call fcn.180233580
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x9e0]
call fcn.180233580
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x70]
call fcn.180233580
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1a0]
call fcn.180233580
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xe00]
call fcn.180233580
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0xbf2]
call fcn.180233580
movups xmm0, xmmword [str.SOFTWARE_]
movaps xmmword [rbp + 0xbf0], xmm0
mov eax, dword [0x1802abd90]
mov dword [rbp + 0xc00], eax
lea rcx, [rbp + 0xbf0]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x18005e782
movups xmm0, xmmword [0x1802abf08]
movups xmmword [rcx], xmm0
mov eax, dword [0x1802abf18]
mov dword [rcx + 0x10], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp + 0xbf0]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
jne 0x18005e955
mov dword [rsp + 0x38], 0x208
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xe00]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.InstallPath
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18005e955
mov ecx, ebx
movzx eax, word [rbp + rcx + 0xe00]
mov word [rbp + rcx - 0x70], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x18005e810
mov rcx, rbx
nop dword [rax]
movzx eax, word [rbp + rcx - 0x70]
mov word [rbp + rcx + 0x1a0], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x18005e830
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18005e955
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x3b0]
call fcn.180233580
mov rcx, rbx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rbp + rcx + 0x1a0]
mov word [rbp + rcx + 0x3b0], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x18005e880
lea rcx, [rbp + 0x3b0]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], bx
jne 0x18005e8a4
movups xmm0, xmmword [str.WnConfig.exe]
movups xmmword [rcx], xmm0
movsd xmm1, qword [0x1802abdc0]
movsd qword [rcx + 0x10], xmm1
movzx eax, word [0x1802abdc8]
mov word [rcx + 0x18], ax
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18005e955
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [rbp - 0x70], bx
jne 0x18005e8f6
mov r8, rbx
jmp 0x18005e90a
lea rax, [rbp - 0x70]
or r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], bx
jne 0x18005e900
lea rcx, [rdi + 0x60]
lea rdx, [rbp - 0x70]
call fcn.18005c660
cmp word [rbp + 0x1a0], bx
je 0x18005e93a
lea rax, [rbp + 0x1a0]
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x18005e930
lea rcx, [rdi + 0xa0]
mov r8, rbx
lea rdx, [rbp + 0x1a0]
call fcn.18005c660
jmp 0x18005ef1d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r9d, r9d
lea r8d, [r9 + 0x2c]
lea rdx, [rbp + 0x5c0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rcx, [rbp + 0x5c0]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], bx
jne 0x18005e981
mov eax, dword [0x1802abc78]
mov dword [rcx], eax
lea rcx, [rbp + 0x5c0]
sub rcx, 2
nop dword [rax]
lea rcx, [rcx + 2]
cmp word [rcx], bx
jne 0x18005e9a0
movups xmm1, xmmword [0x1802abf08]
movups xmmword [rcx], xmm1
mov edx, dword [0x1802abf18]
mov dword [rcx + 0x10], edx
lea rcx, [rbp + 0x5c0]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], bx
jne 0x18005e9c7
mov dword [rcx], eax
lea rax, [rbp + 0x5c0]
sub rax, 2
nop dword [rax]
lea rax, [rax + 2]
cmp word [rax], bx
jne 0x18005e9e0
movups xmmword [rax], xmm1
mov dword [rax + 0x10], edx
lea rcx, [rbp + 0x5c0]
sub rcx, 2
nop word [rax + rax]
lea rcx, [rcx + 2]
cmp word [rcx], bx
jne 0x18005ea00
movsd xmm0, qword [str..ini]
movsd qword [rcx], xmm0
movzx eax, word [0x1802abc88]
mov word [rcx + 8], ax
lea rax, [rbp + 0x5c0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rbp + 0x7d0]
lea r8, [0x1802abc2c]
lea rdx, str.InstallPath
lea rcx, str.Globals
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov rcx, rbx
nop dword [rax]
movzx eax, word [rbp + rcx + 0x7d0]
mov word [rbp + rcx - 0x70], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x18005ea60
lea rcx, [rbp - 0x70]
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [rcx + rax*2], bx
jne 0x18005ea80
test eax, eax
jle 0x18005eba1
mov rcx, rbx
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rbp + rcx - 0x70]
mov word [rbp + rcx + 0x1a0], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x18005eaa0
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18005eba1
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x3b0]
call fcn.180233580
mov rcx, rbx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rbp + rcx + 0x1a0]
mov word [rbp + rcx + 0x3b0], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x18005eaf0
lea rcx, [rbp + 0x3b0]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], bx
jne 0x18005eb14
movups xmm0, xmmword [str.WnConfig.exe]
movups xmmword [rcx], xmm0
movsd xmm1, qword [0x1802abdc0]
movsd qword [rcx + 0x10], xmm1
movzx eax, word [0x1802abdc8]
mov word [rcx + 0x18], ax
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18005eba1
cmp word [rbp - 0x70], bx
jne 0x18005eb5b
mov r8, rbx
jmp 0x18005eb6d
lea rax, [rbp - 0x70]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x18005eb63
lea rcx, [rdi + 0x60]
lea rdx, [rbp - 0x70]
call fcn.18005c660
cmp word [rbp + 0x1a0], bx
je 0x18005e93a
lea rax, [rbp + 0x1a0]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x18005eb92
jmp 0x18005e93a
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rbx
mov word [rsp + 0x40], bx
mov r8d, 7
lea rdx, str.roaming
lea rcx, [rsp + 0x40]
call fcn.18005c660
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.180068250
nop
lea rcx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rcx, qword [rsp + 0x68]
lea rdx, [rbp + 0x9e0]
movzx eax, word [rcx]
mov word [rdx], ax
lea rcx, [rcx + 2]
lea rdx, [rdx + 2]
test ax, ax
jne 0x18005ebf2
lea rcx, [rbp + 0x9e0]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x18005ec10
movups xmm0, xmmword [str.WanNengWBInput]
movups xmmword [rcx], xmm0
movsd xmm1, qword [0x1802abdf0]
movsd qword [rcx + 0x10], xmm1
mov eax, dword [0x1802abdf8]
mov dword [rcx + 0x18], eax
movzx eax, word [0x1802abdfc]
mov word [rcx + 0x1c], ax
lea rcx, [rbp + 0x9e0]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x18005ec50
mov eax, dword [0x1802abc78]
mov dword [rcx], eax
mov rcx, rbx
nop word [rax + rax]
movzx eax, word [rbp + rcx + 0x9e0]
mov word [rbp + rcx - 0x70], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x18005ec70
mov rcx, rbx
nop dword [rax]
movzx eax, word [rbp + rcx - 0x70]
mov word [rbp + rcx + 0x1a0], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x18005ec90
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18005ed95
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x3b0]
call fcn.180233580
mov rcx, rbx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rbp + rcx + 0x1a0]
mov word [rbp + rcx + 0x3b0], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x18005ece0
lea rcx, [rbp + 0x3b0]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x18005ed04
movups xmm0, xmmword [str.WnConfig.exe]
movups xmmword [rcx], xmm0
movsd xmm1, qword [0x1802abdc0]
movsd qword [rcx + 0x10], xmm1
movzx eax, word [0x1802abdc8]
mov word [rcx + 0x18], ax
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18005ed95
cmp word [rbp - 0x70], 0
jne 0x18005ed4d
mov r8, rbx
jmp 0x18005ed60
lea rax, [rbp - 0x70]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x18005ed55
lea rcx, [rdi + 0x60]
lea rdx, [rbp - 0x70]
call fcn.18005c660
cmp word [rbp + 0x1a0], 0
je 0x18005eeea
lea rax, [rbp + 0x1a0]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x18005ed86
jmp 0x18005eeea
lea rcx, [rbp + 0x7d0]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x18005eda0
test eax, eax
jle 0x18005ee60
lea rcx, [rbp + 0x7d0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18005ee60
mov rcx, rbx
nop word [rax + rax]
movzx eax, word [rbp + rcx + 0x7d0]
mov word [rbp + rcx - 0x70], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x18005edd0
mov rcx, rbx
nop dword [rax]
movzx eax, word [rbp + rcx - 0x70]
mov word [rbp + rcx + 0x1a0], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x18005edf0
cmp word [rbp - 0x70], ax
jne 0x18005ee11
mov r8, rbx
jmp 0x18005ee2b
lea rax, [rbp - 0x70]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x18005ee20
lea rcx, [rdi + 0x60]
lea rdx, [rbp - 0x70]
call fcn.18005c660
cmp word [rbp + 0x1a0], 0
je 0x18005eeea
lea rax, [rbp + 0x1a0]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x18005ee51
jmp 0x18005eeea
mov rcx, rbx
movzx eax, word [rbp + rcx + 0x9e0]
mov word [rbp + rcx - 0x70], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x18005ee63
mov rcx, rbx
nop dword [rax]
movzx eax, word [rbp + rcx - 0x70]
mov word [rbp + rcx + 0x1a0], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x18005ee80
cmp word [rbp - 0x70], ax
jne 0x18005eea1
mov r8, rbx
jmp 0x18005eebb
lea rax, [rbp - 0x70]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x18005eeb0
lea rcx, [rdi + 0x60]
lea rdx, [rbp - 0x70]
call fcn.18005c660
cmp word [rbp + 0x1a0], 0
je 0x18005eeea
lea rax, [rbp + 0x1a0]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x18005eee0
mov r8, rbx
lea rdx, [rbp + 0x1a0]
lea rcx, [rdi + 0xa0]
call fcn.18005c660
nop
mov r8, qword [rbp - 0x80]
cmp r8, 8
jb 0x18005ef1d
inc r8
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x68]
call fcn.18005cac0
mov rcx, qword [rbp + 0x1010]
xor rcx, rsp
call fcn.1802037a0
lea r11, [rsp + 0x1120]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret