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

Disassembly:
push rsi
sub rsp, 0xab0
mov rax, qword [0x140039680]
xor rax, rsp
mov qword [rsp + 0xa90], rax
mov rsi, rcx
lea rcx, [rsp + 0x252]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x250], 0
call fcn.140011ab0
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], 0
call fcn.140011ab0
lea rcx, [rsp + 0x462]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x460], 0
call fcn.140011ab0
cmp qword [rsi + 0x110], 8
jb 0x14000cd78
mov r8, qword [rsi + 0xf8]
jmp 0x14000cd7f
lea r8, [rsi + 0xf8]
mov qword [rsp + 0xac8], rbx
mov qword [rsp + 0xad0], rbp
lea r9, str.DongFangInfo.ini
lea rdx, str._s_s
lea rcx, [rsp + 0x460]
mov qword [rsp + 0xaa8], rdi
mov qword [rsp + 0xaa0], r12
call fcn.140011ce0
lea rdx, [rsp + 0x460]
mov qword [rsp + 0x28], rdx
lea r9, [rsp + 0x40]
lea r8, [0x14002f704]
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 0x14000cf22
mov rdx, qword [rsi + 0x70]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
repne scasw ax, word [rdi]
cmp rdx, 8
not rcx
lea rbp, [rcx - 1]
jb 0x14000ce2b
mov rax, qword [rsi + 0x58]
lea rdi, [rsi + 0x58]
jmp 0x14000ce32
lea rdi, [rsi + 0x58]
mov rax, rdi
lea rcx, [rsp + 0x40]
cmp rcx, rax
jb 0x14000ce89
cmp rdx, 8
jb 0x14000ce47
mov rcx, qword [rdi]
jmp 0x14000ce4a
mov rcx, rdi
mov rax, qword [rsi + 0x68]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x40]
cmp rcx, rax
jbe 0x14000ce89
cmp rdx, 8
jb 0x14000ce65
mov rdi, qword [rdi]
lea r8, [rsp + 0x40]
lea rdx, [rsi + 0x50]
lea rcx, [rsi + 0x50]
sub r8, rdi
mov r9, rbp
sar r8, 1
call fcn.140001940
mov byte [rsi + 0x20], 1
jmp 0x14000d4c2
movabs rax, 0x7ffffffffffffffe
cmp rbp, rax
jbe 0x14000ce9d
call fcn.1400117b0
mov rax, qword [rsi + 0x70]
cmp rax, rbp
jae 0x14000ceca
mov r8, qword [rsi + 0x68]
lea rcx, [rsi + 0x50]
mov rdx, rbp
call fcn.1400013e0
test rbp, rbp
je 0x14000cf19
mov rdx, qword [rsi + 0x70]
cmp rdx, 8
jb 0x14000ceec
mov rcx, qword [rdi]
jmp 0x14000ceef
test rbp, rbp
jne 0x14000ceb6
xor r12d, r12d
cmp rax, 8
mov qword [rsi + 0x68], r12
jb 0x14000cedf
mov rdi, qword [rdi]
mov word [rdi], r12w
mov byte [rsi + 0x20], 1
jmp 0x14000d4c2
mov rcx, rdi
lea r12, [rbp + rbp]
lea r8, [rsp + 0x40]
add rdx, rdx
mov r9, r12
call fcn.140011dd0
mov qword [rsi + 0x68], rbp
cmp qword [rsi + 0x70], 8
jb 0x14000cf12
mov rdi, qword [rdi]
mov word [rdi + r12], 0
mov byte [rsi + 0x20], 1
jmp 0x14000d4c2
xor r9d, r9d
lea rdx, [rsp + 0x250]
xor ecx, ecx
lea r8d, [r9 + 0x2c]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edx, dword [0x14002ee8c]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x250]
lea r9, [rsp + 0x40]
repne scasw ax, word [rdi]
or rcx, 0xffffffffffffffff
lea r8, [0x14002f704]
mov dword [rdi - 2], edx
lea rdi, [rsp + 0x250]
repne scasw ax, word [rdi]
mov rax, qword [str.DongFangInput]
or rcx, 0xffffffffffffffff
mov qword [rdi - 2], rax
mov rax, qword [0x14002f980]
mov qword [rdi + 6], rax
mov rax, qword [0x14002f988]
mov qword [rdi + 0xe], rax
mov eax, dword [0x14002f990]
mov dword [rdi + 0x16], eax
xor eax, eax
lea rdi, [rsp + 0x250]
repne scasw ax, word [rdi]
or rcx, 0xffffffffffffffff
mov dword [rdi - 2], edx
lea rdi, [rsp + 0x250]
lea rdx, str.CfgRootPath
repne scasw ax, word [rdi]
mov rax, qword [str.DongFang]
or rcx, 0xffffffffffffffff
mov qword [rdi - 2], rax
mov rax, qword [0x140030538]
mov qword [rdi + 6], rax
movzx eax, word [0x140030540]
mov word [rdi + 0xe], ax
xor eax, eax
lea rdi, [rsp + 0x250]
repne scasw ax, word [rdi]
mov rax, qword [str..ini]
lea rcx, str.Globals
mov qword [rdi - 2], rax
movzx eax, word [0x140030528]
mov word [rdi + 6], ax
lea rax, [rsp + 0x250]
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 0x14000d134
mov rdx, qword [rsi + 0x70]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
repne scasw ax, word [rdi]
cmp rdx, 8
not rcx
lea rbp, [rcx - 1]
jb 0x14000d068
mov rax, qword [rsi + 0x58]
lea rdi, [rsi + 0x58]
jmp 0x14000d06f
lea rdi, [rsi + 0x58]
mov rax, rdi
lea rcx, [rsp + 0x40]
cmp rcx, rax
jb 0x14000d0c6
cmp rdx, 8
jb 0x14000d084
mov rcx, qword [rdi]
jmp 0x14000d087
mov rcx, rdi
mov rax, qword [rsi + 0x68]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x40]
cmp rcx, rax
jbe 0x14000d0c6
cmp rdx, 8
jb 0x14000d0a2
mov rdi, qword [rdi]
lea r8, [rsp + 0x40]
lea rdx, [rsi + 0x50]
lea rcx, [rsi + 0x50]
sub r8, rdi
mov r9, rbp
sar r8, 1
call fcn.140001940
mov byte [rsi + 0x20], 1
jmp 0x14000d4c2
movabs rax, 0x7ffffffffffffffe
cmp rbp, rax
jbe 0x14000d0da
call fcn.1400117b0
mov rax, qword [rsi + 0x70]
cmp rax, rbp
jae 0x14000d112
mov r8, qword [rsi + 0x68]
lea rcx, [rsi + 0x50]
mov rdx, rbp
call fcn.1400013e0
test rbp, rbp
je 0x14000cf19
mov rdx, qword [rsi + 0x70]
cmp rdx, 8
jb 0x14000ceec
mov rcx, qword [rdi]
jmp 0x14000ceef
test rbp, rbp
jne 0x14000d0f3
xor r12d, r12d
cmp rax, 8
mov qword [rsi + 0x68], r12
jb 0x14000d127
mov rdi, qword [rdi]
mov word [rdi], r12w
mov byte [rsi + 0x20], 1
jmp 0x14000d4c2
lea rcx, [rsp + 0x672]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x670], 0
call fcn.140011ab0
xor r12d, r12d
mov rcx, r12
lea rdx, str.SOFTWARE_
movzx eax, word [rcx + rdx]
add rcx, 2
test ax, ax
mov word [rsp + rcx + 0x66e], ax
jne 0x14000d160
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x670]
repne scasw ax, word [rdi]
mov rax, qword [str.DongFangInput]
lea rdx, [rsp + 0x670]
mov qword [rdi - 2], rax
mov rax, qword [0x14002f980]
mov r9d, 0xf003f
mov qword [rdi + 6], rax
mov rax, qword [0x14002f988]
xor r8d, r8d
mov qword [rdi + 0xe], rax
mov eax, dword [0x14002f990]
mov rcx, 0xffffffff80000002
mov dword [rdi + 0x16], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000d32c
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 0x14000d32c
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000d32c
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rsi + 0x70]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
repne scasw ax, word [rdi]
cmp rdx, 8
not rcx
lea rbp, [rcx - 1]
jb 0x14000d263
mov rax, qword [rsi + 0x58]
lea rdi, [rsi + 0x58]
jmp 0x14000d26a
lea rdi, [rsi + 0x58]
mov rax, rdi
lea rcx, [rsp + 0x40]
cmp rcx, rax
jb 0x14000d2c1
cmp rdx, 8
jb 0x14000d27f
mov rcx, qword [rdi]
jmp 0x14000d282
mov rcx, rdi
mov rax, qword [rsi + 0x68]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x40]
cmp rcx, rax
jbe 0x14000d2c1
cmp rdx, 8
jb 0x14000d29d
mov rdi, qword [rdi]
lea r8, [rsp + 0x40]
lea rdx, [rsi + 0x50]
lea rcx, [rsi + 0x50]
sub r8, rdi
mov r9, rbp
sar r8, 1
call fcn.140001940
mov byte [rsi + 0x20], 1
jmp 0x14000d4c2
movabs rax, 0x7ffffffffffffffe
cmp rbp, rax
jbe 0x14000d2d5
call fcn.1400117b0
mov rax, qword [rsi + 0x70]
cmp rax, rbp
jae 0x14000d30d
mov r8, qword [rsi + 0x68]
lea rcx, [rsi + 0x50]
mov rdx, rbp
call fcn.1400013e0
test rbp, rbp
je 0x14000cf19
mov rdx, qword [rsi + 0x70]
cmp rdx, 8
jb 0x14000ceec
mov rcx, qword [rdi]
jmp 0x14000ceef
test rbp, rbp
jne 0x14000d2ee
cmp rax, 8
mov qword [rsi + 0x68], r12
jb 0x14000d31f
mov rdi, qword [rdi]
mov word [rdi], r12w
mov byte [rsi + 0x20], 1
jmp 0x14000d4c2
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x880]
mov r8d, 0x104
xor ecx, ecx
mov byte [rsi + 0x20], r12b
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x880]
mov dx, 0x5c
call fcn.140011cb0
lea r9, str.DongFangInfo.ini
lea r8, [rsp + 0x880]
lea rdx, str._s_s
lea rcx, [rsp + 0x460]
mov word [rax + 2], r12w
call fcn.140011ce0
lea rax, [rsp + 0x460]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r8, [0x14002f704]
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 0x14000d4be
mov rdx, qword [rsi + 0x70]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
repne scasw ax, word [rdi]
cmp rdx, 8
not rcx
lea rbp, [rcx - 1]
jb 0x14000d3fb
mov rax, qword [rsi + 0x58]
lea rdi, [rsi + 0x58]
jmp 0x14000d402
lea rdi, [rsi + 0x58]
mov rax, rdi
lea rcx, [rsp + 0x40]
cmp rcx, rax
jb 0x14000d456
cmp rdx, 8
jb 0x14000d417
mov rcx, qword [rdi]
jmp 0x14000d41a
mov rcx, rdi
mov rax, qword [rsi + 0x68]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x40]
cmp rcx, rax
jbe 0x14000d456
cmp rdx, 8
jb 0x14000d435
mov rdi, qword [rdi]
lea r8, [rsp + 0x40]
lea rdx, [rsi + 0x50]
lea rcx, [rsi + 0x50]
sub r8, rdi
mov r9, rbp
sar r8, 1
call fcn.140001940
mov byte [rsi + 0x20], 1
jmp 0x14000d4c2
movabs rax, 0x7ffffffffffffffe
cmp rbp, rax
jbe 0x14000d46a
call fcn.1400117b0
mov rax, qword [rsi + 0x70]
cmp rax, rbp
jae 0x14000d4a2
mov r8, qword [rsi + 0x68]
lea rcx, [rsi + 0x50]
mov rdx, rbp
call fcn.1400013e0
test rbp, rbp
je 0x14000cf19
mov rdx, qword [rsi + 0x70]
cmp rdx, 8
jb 0x14000ceec
mov rcx, qword [rdi]
jmp 0x14000ceef
test rbp, rbp
jne 0x14000d483
cmp rax, 8
mov qword [rsi + 0x68], r12
jb 0x14000d4b4
mov rdi, qword [rdi]
mov word [rdi], r12w
mov byte [rsi + 0x20], 1
jmp 0x14000d4c2
mov byte [rsi + 0x20], r12b
mov r12, qword [rsp + 0xaa0]
mov rdi, qword [rsp + 0xaa8]
mov rbp, qword [rsp + 0xad0]
mov rbx, qword [rsp + 0xac8]
mov rcx, qword [rsp + 0xa90]
xor rcx, rsp
call fcn.140011c90
add rsp, 0xab0
pop rsi
ret