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

Disassembly:
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x9a0]
sub rsp, 0xaa0
mov rax, qword [0x180332088]
xor rax, rsp
mov qword [rbp + 0x990], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rbp + 0x150]
mov r8d, 0x208
call fcn.180233580
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.180233580
xor edx, edx
lea rcx, [rbp + 0x570]
mov r8d, 0x208
call fcn.180233580
lea r8, [rdi + 0xc8]
cmp qword [r8 + 0x18], 8
jb 0x18006fb74
mov r8, qword [r8]
lea r9, str.WanNengWBInfo.ini
mov qword [rsp + 0xab8], rbx
lea rdx, [0x1802abef8]
lea rcx, [rbp + 0x570]
call fcn.18005c530
lea rax, [rbp + 0x570]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea r8, [0x1802abc2c]
mov dword [rsp + 0x20], 0x104
lea rdx, str.CfgRootPath
lea rcx, str.AppInfo
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18006fc14
cmp word [rsp + 0x40], 0
jne 0x18006fbe5
xor ebx, ebx
jmp 0x18006fbfa
lea rax, [rsp + 0x40]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x18006fbf0
lea rcx, [rdi + 0x48]
mov r8, rbx
lea rdx, [rsp + 0x40]
call fcn.18005c660
mov byte [rdi + 0x20], 1
jmp 0x18006ff54
xor r9d, r9d
lea rdx, [rbp + 0x150]
xor ecx, ecx
lea r8d, [r9 + 0x2c]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rcx, [rbp + 0x150]
sub rcx, 2
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x18006fc35
mov eax, dword [0x1802abc78]
mov dword [rcx], eax
lea rcx, [rbp + 0x150]
sub rcx, 2
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x18006fc53
movups xmm1, xmmword [0x1802abf08]
mov edx, dword [0x1802abf18]
movups xmmword [rcx], xmm1
mov dword [rcx + 0x10], edx
lea rcx, [rbp + 0x150]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x18006fc80
mov dword [rcx], eax
lea rax, [rbp + 0x150]
sub rax, 2
nop dword [rax + rax]
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x18006fca0
lea rcx, [rbp + 0x150]
movups xmmword [rax], xmm1
sub rcx, 2
mov dword [rax + 0x10], edx
nop dword [rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x18006fcc0
movzx eax, word [0x1802abc88]
lea r9, [rsp + 0x40]
movsd xmm0, qword [str..ini]
lea r8, [0x1802abc2c]
movsd qword [rcx], xmm0
lea rdx, str.CfgRootPath
mov word [rcx + 8], ax
lea rax, [rbp + 0x150]
mov qword [rsp + 0x28], rax
lea rcx, str.Globals
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18006fd64
cmp word [rsp + 0x40], 0
jne 0x18006fd31
xor ebx, ebx
jmp 0x18006fd4a
lea rax, [rsp + 0x40]
or rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x18006fd40
lea rcx, [rdi + 0x48]
mov r8, rbx
lea rdx, [rsp + 0x40]
call fcn.18005c660
mov byte [rdi + 0x20], 1
jmp 0x18006ff54
xor edx, edx
lea rcx, [rbp + 0x362]
mov r8d, 0x206
call fcn.180233580
movups xmm0, xmmword [str.SOFTWARE_]
mov eax, dword [0x1802abd90]
lea rcx, [rbp + 0x360]
mov dword [rbp + 0x370], eax
sub rcx, 2
movaps xmmword [rbp + 0x360], xmm0
nop dword [rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x18006fda0
mov eax, dword [0x1802abf18]
lea rdx, [rbp + 0x360]
movups xmm0, xmmword [0x1802abf08]
mov r9d, 0xf003f
xor r8d, r8d
movups xmmword [rcx], xmm0
mov dword [rcx + 0x10], eax
lea rax, [rsp + 0x38]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18006fe78
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.CfgRootPath
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 0x104
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18006fe78
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18006fe78
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [rsp + 0x40], 0
jne 0x18006fe4b
xor ebx, ebx
jmp 0x18006fe5e
lea rax, [rsp + 0x40]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x18006fe54
lea rcx, [rdi + 0x48]
mov r8, rbx
lea rdx, [rsp + 0x40]
call fcn.18005c660
mov byte [rdi + 0x20], 1
jmp 0x18006ff54
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, 0x104
mov byte [rdi + 0x20], 0
lea rdx, [rbp + 0x780]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, 0x5c
lea rcx, [rbp + 0x780]
call fcn.1802328bc
xor ebx, ebx
lea r9, str.WanNengWBInfo.ini
lea r8, [rbp + 0x780]
lea rdx, [0x1802abef8]
lea rcx, [rbp + 0x570]
mov word [rax + 2], bx
call fcn.18005c530
lea rax, [rbp + 0x570]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea r8, [0x1802abc2c]
mov dword [rsp + 0x20], 0x104
lea rdx, str.CfgRootPath
lea rcx, str.AppInfo
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18006ff51
cmp word [rsp + 0x40], bx
je 0x18006ff3a
lea rax, [rsp + 0x40]
or rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x18006ff30
lea rcx, [rdi + 0x48]
mov r8, rbx
lea rdx, [rsp + 0x40]
call fcn.18005c660
mov byte [rdi + 0x20], 1
jmp 0x18006ff54
mov byte [rdi + 0x20], bl
mov rbx, qword [rsp + 0xab8]
mov rcx, qword [rbp + 0x990]
xor rcx, rsp
call fcn.1802037a0
mov rdi, qword [rsp + 0xac0]
add rsp, 0xaa0
pop rbp
ret