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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0xfd0]
mov eax, 0x10d0
call fcn.1800c19a0
sub rsp, rax
mov rax, qword [0x180248950]
xor rax, rsp
mov qword [rbp + 0xfc0], rax
mov rdi, rcx
lea rcx, [rbp + 0x572]
xor ebx, ebx
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x570], bx
call fcn.1800be330
lea rcx, [rbp + 0xba2]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0xba0], bx
call fcn.1800be330
lea rcx, [rbp + 0x782]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x780], bx
call fcn.1800be330
lea rcx, [rbp + 0x992]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x990], bx
call fcn.1800be330
lea rcx, [rbp + 0x152]
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 r8d, [rbx + 0x2c]
lea rdx, [rbp + 0x570]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rcx, [rbp + 0x570]
sub rcx, 2
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x180003845
mov eax, dword [0x1801eb7c0]
lea rdx, [rbp + 0x570]
mov dword [rcx], eax
sub rdx, 2
cmp word [rdx + 2], bx
lea rdx, [rdx + 2]
jne 0x180003862
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 + 0x570]
sub rcx, 2
nop dword [rax + rax]
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x1800038b0
mov dword [rcx], eax
lea rcx, [rbp + 0x570]
sub rcx, 2
nop word [rax + rax]
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x1800038d0
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 + 0x570]
sub rcx, 2
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x180003903
mov rax, qword [str..ini]
lea r9, [rbp + 0xba0]
lea r8, [0x1801f3ee0]
mov qword [rcx], rax
movzx eax, word [0x1801eb808]
lea rdx, str.InstallPath
mov word [rcx + 8], ax
lea rax, [rbp + 0x570]
lea rcx, str.Globals
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov rcx, rbx
nop dword [rax + rax]
movzx eax, word [rbp + rcx + 0xba0]
lea rcx, [rcx + 2]
mov word [rbp + rcx + 0x14e], ax
test ax, ax
jne 0x180003960
mov rcx, rbx
nop dword [rax]
movzx eax, word [rbp + rcx + 0x150]
lea rcx, [rcx + 2]
mov word [rsp + rcx + 0x3e], ax
test ax, ax
jne 0x180003980
lea rcx, [rsp + 0x40]
sub rcx, 2
nop
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x1800039a0
mov rax, qword [str.9.8.9.0309]
mov qword [rcx], rax
mov rax, qword [0x1801eb938]
mov qword [rcx + 8], rax
mov eax, dword [0x1801eb940]
mov dword [rcx + 0x10], eax
movzx eax, word [0x1801eb944]
mov word [rcx + 0x14], ax
lea rcx, [rsp + 0x40]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x1800039e0
mov eax, dword [0x1801eb7c0]
mov dword [rcx], eax
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180003ae3
lea rcx, [rbp + 0x362]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x360], bx
call fcn.1800be330
mov rcx, rbx
movzx eax, word [rsp + rcx + 0x40]
lea rcx, [rcx + 2]
mov word [rbp + rcx + 0x35e], ax
test ax, ax
jne 0x180003a23
lea rcx, [rbp + 0x360]
sub rcx, 2
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x180003a44
mov rax, qword [str.WnConfig.exe]
mov qword [rcx], rax
mov rax, qword [0x1801eb950]
mov qword [rcx + 8], rax
mov rax, qword [0x1801eb958]
mov qword [rcx + 0x10], rax
movzx eax, word [0x1801eb960]
mov word [rcx + 0x18], ax
lea rcx, [rbp + 0x360]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180003ae3
cmp word [rbp + 0x150], bx
jne 0x180003a98
mov r8, rbx
jmp 0x180003aad
lea rax, [rbp + 0x150]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x180003aa3
lea rcx, [rdi + 0xa8]
lea rdx, [rbp + 0x150]
call fcn.180005450
cmp word [rsp + 0x40], bx
je 0x1800042ca
lea rax, [rsp + 0x40]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180003ad4
jmp 0x1800042ca
lea rcx, [rbp + 0xdb2]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0xdb0], bx
call fcn.1800be330
mov rcx, rbx
lea rdx, str.SOFTWARE_
nop dword [rax + rax]
movzx eax, word [rcx + rdx]
lea rcx, [rcx + 2]
mov word [rbp + rcx + 0xdae], ax
test ax, ax
jne 0x180003b10
lea rcx, [rbp + 0xdb0]
sub rcx, 2
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x180003b30
mov rax, qword [str.WanNengWBInput]
lea rdx, [rbp + 0xdb0]
mov r9d, 0x20019
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 + 0x38]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180003d8b
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea rdx, str.InstallPath
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x990]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x30], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180003d8b
mov rcx, rbx
nop
movzx eax, word [rbp + rcx + 0x990]
lea rcx, [rcx + 2]
mov word [rbp + rcx + 0x14e], ax
test ax, ax
jne 0x180003be0
mov rcx, rbx
nop dword [rax]
movzx eax, word [rbp + rcx + 0x150]
lea rcx, [rcx + 2]
mov word [rsp + rcx + 0x3e], ax
test ax, ax
jne 0x180003c00
lea rcx, [rsp + 0x40]
sub rcx, 2
nop
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x180003c20
mov rax, qword [str.9.8.9.0309]
mov qword [rcx], rax
mov rax, qword [0x1801eb938]
mov qword [rcx + 8], rax
mov eax, dword [0x1801eb940]
mov dword [rcx + 0x10], eax
movzx eax, word [0x1801eb944]
mov word [rcx + 0x14], ax
lea rcx, [rsp + 0x40]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x180003c60
mov eax, dword [0x1801eb7c0]
mov dword [rcx], eax
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180003d8b
lea rcx, [rbp + 0x362]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x360], bx
call fcn.1800be330
mov rcx, rbx
movzx eax, word [rsp + rcx + 0x40]
lea rcx, [rcx + 2]
mov word [rbp + rcx + 0x35e], ax
test ax, ax
jne 0x180003ca3
lea rcx, [rbp + 0x360]
sub rcx, 2
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x180003cc4
mov rax, qword [str.WnConfig.exe]
mov qword [rcx], rax
mov rax, qword [0x1801eb950]
mov qword [rcx + 8], rax
mov rax, qword [0x1801eb958]
mov qword [rcx + 0x10], rax
movzx eax, word [0x1801eb960]
mov word [rcx + 0x18], ax
lea rcx, [rbp + 0x360]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180003d8b
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [rbp + 0x150], bx
jne 0x180003d27
mov r8, rbx
jmp 0x180003d3c
lea rax, [rbp + 0x150]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x180003d32
lea rcx, [rdi + 0xa8]
lea rdx, [rbp + 0x150]
call fcn.180005450
cmp word [rsp + 0x40], bx
je 0x180003d6a
lea rax, [rsp + 0x40]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180003d60
lea rcx, [rdi + 0xc8]
lea rdx, [rsp + 0x40]
mov r8, rbx
call fcn.180005450
mov rcx, rdi
call fcn.180004a70
jmp 0x1800042de
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r9d, r9d
lea rdx, [rbp + 0x780]
lea r8d, [r9 + 0x2a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rcx, [rbp + 0x780]
sub rcx, 2
nop word [rax + rax]
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x180003dc0
mov eax, dword [0x1801eb7c0]
lea rdx, [rbp + 0x780]
mov dword [rcx], eax
sub rdx, 2
nop dword [rax]
cmp word [rdx + 2], bx
lea rdx, [rdx + 2]
jne 0x180003de0
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 + 0x780]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x180003e30
mov dword [rcx], eax
mov rdx, rbx
nop
movzx ecx, word [rbp + rdx + 0x780]
lea rdx, [rdx + 2]
mov word [rbp + rdx + 0x14e], cx
test cx, cx
jne 0x180003e40
mov rdx, rbx
nop dword [rax]
movzx ecx, word [rbp + rdx + 0x150]
lea rdx, [rdx + 2]
mov word [rsp + rdx + 0x3e], cx
test cx, cx
jne 0x180003e60
lea rdx, [rsp + 0x40]
sub rdx, 2
nop
cmp word [rdx + 2], bx
lea rdx, [rdx + 2]
jne 0x180003e80
mov rcx, qword [str.9.8.9.0309]
mov qword [rdx], rcx
mov rcx, qword [0x1801eb938]
mov qword [rdx + 8], rcx
mov ecx, dword [0x1801eb940]
mov dword [rdx + 0x10], ecx
movzx ecx, word [0x1801eb944]
mov word [rdx + 0x14], cx
lea rcx, [rsp + 0x40]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x180003ec0
mov dword [rcx], eax
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180003fc0
lea rcx, [rbp + 0x362]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x360], bx
call fcn.1800be330
mov rcx, rbx
nop dword [rax]
movzx eax, word [rsp + rcx + 0x40]
lea rcx, [rcx + 2]
mov word [rbp + rcx + 0x35e], ax
test ax, ax
jne 0x180003f00
lea rcx, [rbp + 0x360]
sub rcx, 2
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x180003f21
mov rax, qword [str.WnConfig.exe]
mov qword [rcx], rax
mov rax, qword [0x1801eb950]
mov qword [rcx + 8], rax
mov rax, qword [0x1801eb958]
mov qword [rcx + 0x10], rax
movzx eax, word [0x1801eb960]
mov word [rcx + 0x18], ax
lea rcx, [rbp + 0x360]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180003fc0
cmp word [rbp + 0x150], bx
jne 0x180003f75
mov r8, rbx
jmp 0x180003f8a
lea rax, [rbp + 0x150]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x180003f80
lea rcx, [rdi + 0xa8]
lea rdx, [rbp + 0x150]
call fcn.180005450
cmp word [rsp + 0x40], bx
je 0x1800042ca
lea rax, [rsp + 0x40]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180003fb1
jmp 0x1800042ca
lea rcx, [rbp + 0xba0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1800040d0
mov rcx, rbx
nop dword [rax + rax]
movzx eax, word [rbp + rcx + 0xba0]
lea rcx, [rcx + 2]
mov word [rbp + rcx + 0x14e], ax
test ax, ax
jne 0x180003fe0
mov rcx, rbx
nop dword [rax]
movzx eax, word [rbp + rcx + 0x150]
lea rcx, [rcx + 2]
mov word [rsp + rcx + 0x3e], ax
test ax, ax
jne 0x180004000
lea rcx, [rsp + 0x40]
sub rcx, 2
nop
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x180004020
mov rax, qword [str.9.8.9.0309]
mov qword [rcx], rax
mov rax, qword [0x1801eb938]
mov qword [rcx + 8], rax
mov eax, dword [0x1801eb940]
mov dword [rcx + 0x10], eax
movzx eax, word [0x1801eb944]
mov word [rcx + 0x14], ax
lea rcx, [rsp + 0x40]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x180004060
mov eax, dword [0x1801eb7c0]
mov dword [rcx], eax
cmp word [rbp + 0x150], bx
jne 0x180004080
mov r8, rbx
jmp 0x18000409a
lea rax, [rbp + 0x150]
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x180004090
lea rcx, [rdi + 0xa8]
lea rdx, [rbp + 0x150]
call fcn.180005450
cmp word [rsp + 0x40], bx
je 0x1800042ca
lea rax, [rsp + 0x40]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1800040c1
jmp 0x1800042ca
lea rcx, [rbp + 0x990]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov rcx, rbx
test eax, eax
je 0x1800041e0
nop dword [rax + rax]
movzx eax, word [rbp + rcx + 0x990]
lea rcx, [rcx + 2]
mov word [rbp + rcx + 0x14e], ax
test ax, ax
jne 0x1800040f0
mov rcx, rbx
nop dword [rax]
movzx eax, word [rbp + rcx + 0x150]
lea rcx, [rcx + 2]
mov word [rsp + rcx + 0x3e], ax
test ax, ax
jne 0x180004110
lea rcx, [rsp + 0x40]
sub rcx, 2
nop
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x180004130
mov rax, qword [str.9.8.9.0309]
mov qword [rcx], rax
mov rax, qword [0x1801eb938]
mov qword [rcx + 8], rax
mov eax, dword [0x1801eb940]
mov dword [rcx + 0x10], eax
movzx eax, word [0x1801eb944]
mov word [rcx + 0x14], ax
lea rcx, [rsp + 0x40]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x180004170
mov eax, dword [0x1801eb7c0]
mov dword [rcx], eax
cmp word [rbp + 0x150], bx
jne 0x180004190
mov r8, rbx
jmp 0x1800041aa
lea rax, [rbp + 0x150]
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x1800041a0
lea rcx, [rdi + 0xa8]
lea rdx, [rbp + 0x150]
call fcn.180005450
cmp word [rsp + 0x40], bx
je 0x1800042ca
lea rax, [rsp + 0x40]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1800041d1
jmp 0x1800042ca
movzx eax, word [rbp + rcx + 0x780]
lea rcx, [rcx + 2]
mov word [rbp + rcx + 0x14e], ax
test ax, ax
jne 0x1800041e0
mov rcx, rbx
nop dword [rax]
movzx eax, word [rbp + rcx + 0x150]
lea rcx, [rcx + 2]
mov word [rsp + rcx + 0x3e], ax
test ax, ax
jne 0x180004200
lea rcx, [rsp + 0x40]
sub rcx, 2
nop
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x180004220
mov rax, qword [str.9.8.9.0309]
mov qword [rcx], rax
mov rax, qword [0x1801eb938]
mov qword [rcx + 8], rax
mov eax, dword [0x1801eb940]
mov dword [rcx + 0x10], eax
movzx eax, word [0x1801eb944]
mov word [rcx + 0x14], ax
lea rcx, [rsp + 0x40]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x180004260
mov eax, dword [0x1801eb7c0]
mov dword [rcx], eax
cmp word [rbp + 0x150], bx
jne 0x180004280
mov r8, rbx
jmp 0x18000429a
lea rax, [rbp + 0x150]
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x180004290
lea rcx, [rdi + 0xa8]
lea rdx, [rbp + 0x150]
call fcn.180005450
cmp word [rsp + 0x40], bx
je 0x1800042ca
lea rax, [rsp + 0x40]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1800042c0
lea rdx, [rsp + 0x40]
lea rcx, [rdi + 0xc8]
mov r8, rbx
call fcn.180005450
mov rcx, qword [rbp + 0xfc0]
xor rcx, rsp
call fcn.1800b5370
lea r11, [rsp + 0x10d0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret