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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x9a0]
sub rsp, 0xaa0
mov rax, qword [0x180248950]
xor rax, rsp
mov qword [rbp + 0x990], rax
mov rdi, rcx
lea rcx, [rbp + 0x152]
xor ebx, ebx
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x150], bx
call fcn.1800be330
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], bx
call fcn.1800be330
lea rcx, [rbp + 0x362]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x360], bx
call fcn.1800be330
lea r8, [rdi + 0xc8]
cmp qword [r8 + 0x18], 8
jb 0x18000278e
mov r8, qword [r8]
lea r9, str.WanNengWBInfo.ini
lea rdx, [0x1801eb788]
lea rcx, [rbp + 0x360]
call fcn.1800b5a54
lea rax, [rbp + 0x360]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r8, [0x1801f3ee0]
lea rdx, str.CfgRootPath
lea rcx, str.AppInfo
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 0x180002824
cmp word [rsp + 0x40], bx
je 0x18000280a
lea rax, [rsp + 0x40]
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180002800
lea rcx, [rdi + 0x48]
lea rdx, [rsp + 0x40]
mov r8, rbx
call fcn.180005450
mov byte [rdi + 0x20], 1
jmp 0x180002ba4
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], bx
lea rcx, [rcx + 2]
jne 0x180002845
mov eax, dword [0x1801eb7c0]
lea rdx, [rbp + 0x150]
mov dword [rcx], eax
sub rdx, 2
cmp word [rdx + 2], bx
lea rdx, [rdx + 2]
jne 0x180002862
mov rcx, qword [str.WanNengWBInput]
mov qword [rdx], rcx
mov rcx, qword [0x1801eb7d0]
mov qword [rdx + 8], rcx
mov rcx, qword [0x1801eb7d8]
mov qword [rdx + 0x10], rcx
mov ecx, dword [0x1801eb7e0]
mov dword [rdx + 0x18], ecx
movzx ecx, word [0x1801eb7e4]
mov word [rdx + 0x1c], cx
lea rcx, [rbp + 0x150]
sub rcx, 2
nop dword [rax + rax]
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x1800028b0
mov dword [rcx], eax
lea rcx, [rbp + 0x150]
sub rcx, 2
nop word [rax + rax]
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x1800028d0
mov rax, qword [0x1801eb7e8]
mov qword [rcx], rax
mov rax, qword [0x1801eb7f0]
mov qword [rcx + 8], rax
mov eax, dword [0x1801eb7f8]
mov dword [rcx + 0x10], eax
lea rcx, [rbp + 0x150]
sub rcx, 2
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x180002903
mov rax, qword [str..ini]
lea r9, [rsp + 0x40]
lea r8, [0x1801f3ee0]
mov qword [rcx], rax
movzx eax, word [0x1801eb808]
lea rdx, str.CfgRootPath
mov word [rcx + 8], ax
lea rax, [rbp + 0x150]
lea rcx, str.Globals
mov qword [rsp + 0x28], rax
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 0x180002999
cmp word [rsp + 0x40], bx
je 0x18000297f
lea rax, [rsp + 0x40]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180002975
lea rcx, [rdi + 0x48]
lea rdx, [rsp + 0x40]
mov r8, rbx
call fcn.180005450
mov byte [rdi + 0x20], 1
jmp 0x180002ba4
lea rcx, [rbp + 0x572]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x570], bx
call fcn.1800be330
mov rcx, rbx
lea rdx, str.SOFTWARE_
nop
movzx eax, word [rcx + rdx]
lea rcx, [rcx + 2]
mov word [rbp + rcx + 0x56e], ax
test ax, ax
jne 0x1800029c0
lea rcx, [rbp + 0x570]
sub rcx, 2
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x1800029e0
mov rax, qword [str.WanNengWBInput]
lea rdx, [rbp + 0x570]
mov r9d, 0xf003f
mov qword [rcx], rax
mov rax, qword [0x1801eb7d0]
xor r8d, r8d
mov qword [rcx + 8], rax
mov rax, qword [0x1801eb7d8]
mov qword [rcx + 0x10], rax
mov eax, dword [0x1801eb7e0]
mov dword [rcx + 0x18], eax
movzx eax, word [0x1801eb7e4]
mov word [rcx + 0x1c], ax
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180002ad4
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea rdx, str.CfgRootPath
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x38], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180002ad4
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180002ad4
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [rsp + 0x40], bx
je 0x180002aba
lea rax, [rsp + 0x40]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180002ab0
lea rcx, [rdi + 0x48]
lea rdx, [rsp + 0x40]
mov r8, rbx
call fcn.180005450
mov byte [rdi + 0x20], 1
jmp 0x180002ba4
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rbp + 0x780]
mov r8d, 0x104
xor ecx, ecx
mov byte [rdi + 0x20], bl
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rbp + 0x780]
mov edx, 0x5c
call fcn.1800b59a4
lea r9, str.WanNengWBInfo.ini
lea r8, [rbp + 0x780]
lea rdx, [0x1801eb788]
lea rcx, [rbp + 0x360]
mov word [rax + 2], bx
call fcn.1800b5a54
lea rax, [rbp + 0x360]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r8, [0x1801f3ee0]
lea rdx, str.CfgRootPath
lea rcx, str.AppInfo
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 0x180002ba1
cmp word [rsp + 0x40], bx
je 0x180002b8a
lea rax, [rsp + 0x40]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180002b80
lea rcx, [rdi + 0x48]
lea rdx, [rsp + 0x40]
mov r8, rbx
call fcn.180005450
mov byte [rdi + 0x20], 1
jmp 0x180002ba4
mov byte [rdi + 0x20], bl
mov rcx, qword [rbp + 0x990]
xor rcx, rsp
call fcn.1800b5370
lea r11, [rsp + 0xaa0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret