Function at 0x180003840
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 - 0xfd0]
mov eax, 0x10d0
call fcn.1800108c0
sub rsp, rax
mov rax, qword [0x1800400b0]
xor rax, rsp
mov qword [rbp + 0xfc0], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rbp + 0x570]
mov r8d, 0x208
call fcn.180012620
xor edx, edx
lea rcx, [rbp + 0x990]
mov r8d, 0x208
call fcn.180012620
xor edx, edx
lea rcx, [rbp + 0x780]
mov r8d, 0x208
call fcn.180012620
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.180012620
xor edx, edx
lea rcx, [rbp + 0x150]
mov r8d, 0x208
call fcn.180012620
xor edx, edx
lea rcx, [rbp + 0xdb0]
mov r8d, 0x208
call fcn.180012620
xor r9d, r9d
lea rdx, [rbp + 0x570]
xor ecx, ecx
lea r8d, [r9 + 0x2c]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rcx, [rbp + 0x570]
sub rcx, 2
nop dword [rax + rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x180003910
mov eax, dword [0x18002a7e4]
mov dword [rcx], eax
lea rcx, [rbp + 0x570]
sub rcx, 2
nop
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x180003930
movups xmm2, xmmword [str.JiJianFormwork]
mov edx, dword [0x18002a690]
movsd xmm3, qword [0x18002a688]
movzx r8d, word [0x18002a694]
movups xmmword [rcx], xmm2
movsd qword [rcx + 0x10], xmm3
mov dword [rcx + 0x18], edx
mov word [rcx + 0x1c], r8w
lea rcx, [rbp + 0x570]
sub rcx, 2
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x180003973
mov dword [rcx], eax
lea rax, [rbp + 0x570]
sub rax, 2
nop dword [rax + rax]
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x180003990
movups xmmword [rax], xmm2
lea rcx, [rbp + 0x570]
movsd qword [rax + 0x10], xmm3
sub rcx, 2
mov dword [rax + 0x18], edx
mov word [rax + 0x1c], r8w
nop word [rax + rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x1800039c0
movzx eax, word [0x18002a7f0]
lea r9, [rbp + 0x990]
movsd xmm0, qword [0x18002a7e8]
lea r8, [0x18002a7e0]
movsd qword [rcx], xmm0
lea rdx, str.InstallPath
mov word [rcx + 8], ax
lea rax, [rbp + 0x570]
mov qword [rsp + 0x28], rax
lea rcx, str.MuBanCfg
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor ebx, ebx
mov ecx, ebx
nop dword [rax]
movzx eax, word [rbp + rcx + 0x990]
mov word [rsp + rcx + 0x40], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180003a20
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [rcx + rax*2], bx
jne 0x180003a40
test eax, eax
jle 0x180003b5f
mov rcx, rbx
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rsp + rcx + 0x40]
mov word [rbp + rcx + 0x150], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180003a60
lea rcx, [rbp + 0x150]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180003b5f
xor edx, edx
lea rcx, [rbp + 0x360]
mov r8d, 0x208
call fcn.180012620
mov rcx, rbx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rbp + rcx + 0x150]
mov word [rbp + rcx + 0x360], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180003ab0
lea rax, [rbp + 0x360]
sub rax, 2
cmp word [rax + 2], bx
lea rax, [rax + 2]
jne 0x180003ad4
movups xmm0, xmmword [str.JJMuBan.exe]
lea rcx, [rbp + 0x360]
movsd xmm1, qword [0x18002a918]
movups xmmword [rax], xmm0
movsd qword [rax + 0x10], xmm1
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180003b5f
cmp word [rsp + 0x40], bx
jne 0x180003b12
mov r8, rbx
jmp 0x180003b2a
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x180003b20
lea rcx, [rdi + 0x50]
lea rdx, [rsp + 0x40]
call fcn.180001930
cmp word [rbp + 0x150], bx
je 0x18000408a
lea rax, [rbp + 0x150]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180003b50
jmp 0x18000408a
xor edx, edx
lea rcx, [rbp + 0xba2]
mov r8d, 0x206
call fcn.180012620
movups xmm0, xmmword [str.SOFTWARE_]
mov eax, dword [0x18002a930]
lea rcx, [rbp + 0xba0]
mov dword [rbp + 0xbb0], eax
sub rcx, 2
movaps xmmword [rbp + 0xba0], xmm0
nop dword [rax + rax]
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x180003ba0
mov eax, dword [0x18002a690]
lea rdx, [rbp + 0xba0]
movups xmm0, xmmword [str.JiJianFormwork]
mov r9d, 0x20019
xor r8d, r8d
movsd xmm1, qword [0x18002a688]
movups xmmword [rcx], xmm0
movsd qword [rcx + 0x10], xmm1
mov dword [rcx + 0x18], eax
movzx eax, word [0x18002a694]
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 0x180003d75
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.InstallPath
lea rax, [rbp + 0xdb0]
mov dword [rsp + 0x30], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180003d75
mov rcx, rbx
nop word [rax + rax]
movzx eax, word [rbp + rcx + 0xdb0]
mov word [rsp + rcx + 0x40], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180003c50
mov rcx, rbx
nop dword [rax]
movzx eax, word [rsp + rcx + 0x40]
mov word [rbp + rcx + 0x150], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180003c70
lea rcx, [rbp + 0x150]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180003d75
xor edx, edx
lea rcx, [rbp + 0x360]
mov r8d, 0x208
call fcn.180012620
mov rcx, rbx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rbp + rcx + 0x150]
mov word [rbp + rcx + 0x360], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180003cc0
lea rax, [rbp + 0x360]
sub rax, 2
cmp word [rax + 2], bx
lea rax, [rax + 2]
jne 0x180003ce4
movups xmm0, xmmword [str.JJMuBan.exe]
lea rcx, [rbp + 0x360]
movsd xmm1, qword [0x18002a918]
movups xmmword [rax], xmm0
movsd qword [rax + 0x10], xmm1
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180003d75
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [rsp + 0x40], bx
jne 0x180003d2d
mov r8, rbx
jmp 0x180003d40
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x180003d36
lea rcx, [rdi + 0x50]
lea rdx, [rsp + 0x40]
call fcn.180001930
cmp word [rbp + 0x150], bx
je 0x18000408a
lea rax, [rbp + 0x150]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180003d66
jmp 0x18000408a
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r9d, r9d
lea rdx, [rbp + 0x780]
xor ecx, ecx
lea r8d, [r9 + 0x2a]
call fcn.180008380
lea rcx, [rbp + 0x780]
sub rcx, 2
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x180003da0
mov eax, dword [0x18002a7e4]
lea rdx, [rbp + 0x780]
sub rdx, 2
mov dword [rcx], eax
nop dword [rax]
cmp word [rdx + 2], bx
lea rdx, [rdx + 2]
jne 0x180003dc0
mov ecx, dword [0x18002a690]
movups xmm0, xmmword [str.JiJianFormwork]
movsd xmm1, qword [0x18002a688]
movups xmmword [rdx], xmm0
movsd qword [rdx + 0x10], xmm1
mov dword [rdx + 0x18], ecx
movzx ecx, word [0x18002a694]
mov word [rdx + 0x1c], cx
lea rcx, [rbp + 0x780]
sub rcx, 2
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x180003e00
mov dword [rcx], eax
mov rcx, rbx
nop
movzx eax, word [rbp + rcx + 0x780]
mov word [rsp + rcx + 0x40], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180003e10
mov rcx, rbx
nop dword [rax]
movzx eax, word [rsp + rcx + 0x40]
mov word [rbp + rcx + 0x150], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180003e30
lea rcx, [rbp + 0x150]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180003f2f
xor edx, edx
lea rcx, [rbp + 0x360]
mov r8d, 0x208
call fcn.180012620
mov rcx, rbx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rbp + rcx + 0x150]
mov word [rbp + rcx + 0x360], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180003e80
lea rax, [rbp + 0x360]
sub rax, 2
cmp word [rax + 2], bx
lea rax, [rax + 2]
jne 0x180003ea4
movups xmm0, xmmword [str.JJMuBan.exe]
lea rcx, [rbp + 0x360]
movsd xmm1, qword [0x18002a918]
movups xmmword [rax], xmm0
movsd qword [rax + 0x10], xmm1
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180003f2f
cmp word [rsp + 0x40], bx
jne 0x180003ee2
mov r8, rbx
jmp 0x180003efa
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x180003ef0
lea rcx, [rdi + 0x50]
lea rdx, [rsp + 0x40]
call fcn.180001930
cmp word [rbp + 0x150], bx
je 0x18000408a
lea rax, [rbp + 0x150]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180003f20
jmp 0x18000408a
lea rcx, [rbp + 0x990]
or rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], bx
jne 0x180003f40
test eax, eax
jle 0x180003fff
lea rcx, [rbp + 0x990]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180003fff
mov rcx, rbx
nop dword [rax]
movzx eax, word [rbp + rcx + 0x990]
mov word [rsp + rcx + 0x40], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180003f70
mov rcx, rbx
nop dword [rax]
movzx eax, word [rsp + rcx + 0x40]
mov word [rbp + rcx + 0x150], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180003f90
cmp word [rsp + 0x40], bx
jne 0x180003fb2
mov r8, rbx
jmp 0x180003fca
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x180003fc0
lea rcx, [rdi + 0x50]
lea rdx, [rsp + 0x40]
call fcn.180001930
cmp word [rbp + 0x150], bx
je 0x18000408a
lea rax, [rbp + 0x150]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180003ff0
jmp 0x18000408a
mov rcx, rbx
movzx eax, word [rbp + rcx + 0x780]
mov word [rsp + rcx + 0x40], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180004002
mov rcx, rbx
nop dword [rax + rax]
movzx eax, word [rsp + rcx + 0x40]
mov word [rbp + rcx + 0x150], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180004020
cmp word [rsp + 0x40], bx
jne 0x180004042
mov r8, rbx
jmp 0x18000405a
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x180004050
lea rcx, [rdi + 0x50]
lea rdx, [rsp + 0x40]
call fcn.180001930
cmp word [rbp + 0x150], bx
je 0x18000408a
lea rax, [rbp + 0x150]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180004080
mov r8, rbx
lea rdx, [rbp + 0x150]
lea rcx, [rdi + 0x90]
call fcn.180001930
mov rcx, qword [rbp + 0xfc0]
xor rcx, rsp
call fcn.180010880
lea r11, [rsp + 0x10d0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret