Function at 0x10086e20
Capabilities:
Check if file exists
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c4077
mov eax, dword fs:[0]
push eax
sub esp, 0x5c8
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x5d0], ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 0x208
mov dword [ebp - 0x5d4], eax
lea eax, [ebp - 0x524]
push 0
push eax
call fcn.1008df10
add esp, 0xc
lea eax, [ebp - 0x524]
push eax
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x10086e9b
xor al, al
jmp 0x10087362
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x524]
push str.TencentDeskUpdate_
push eax
call esi
lea eax, [ebp - 0x524]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10086ecf
lea eax, [ebp - 0x524]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push str.HDD.db
lea eax, [ebp - 0x524]
push eax
call esi
lea edx, [ebp - 0x524]
lea ecx, [ebp - 0x53c]
call fcn.10073960
push 0x104
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.1008df10
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1008df10
push 0x104
lea eax, [ebp - 0x31c]
push 0
push eax
call fcn.1008df10
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x53c]
add esp, 0x24
cmp dword [ebp - 0x528], 0x10
cmovae eax, dword [ebp - 0x53c]
push eax
push 0x104
lea eax, [ebp - 0x114]
push eax
push 0
push str.SerialNumber
push 0x100f8918
call esi
cmp dword [ebp - 0x528], 0x10
lea eax, [ebp - 0x53c]
cmovae eax, dword [ebp - 0x53c]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
push str.ModelNumber
push 0x100f8918
call esi
cmp dword [ebp - 0x528], 0x10
lea eax, [ebp - 0x53c]
cmovae eax, dword [ebp - 0x53c]
push eax
push 0x104
lea eax, [ebp - 0x31c]
push eax
push 0
push str.RevisionNumber
push 0x100f8918
call esi
cmp byte [ebp - 0x114], 0
mov dword [ebp - 0x570], 0xf
mov dword [ebp - 0x574], 0
mov byte [ebp - 0x584], 0
jne 0x10086fec
xor ecx, ecx
jmp 0x10086ffe
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10086ff5
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x584]
call fcn.100057f3
mov byte [ebp - 4], 1
cmp byte [ebp - 0x218], 0
mov dword [ebp - 0x558], 0xf
mov dword [ebp - 0x55c], 0
mov byte [ebp - 0x56c], 0
jne 0x1008703d
xor ecx, ecx
jmp 0x1008704f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10087046
sub ecx, edx
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x56c]
call fcn.100057f3
mov byte [ebp - 4], 2
cmp byte [ebp - 0x31c], 0
mov dword [ebp - 0x540], 0xf
mov dword [ebp - 0x544], 0
mov byte [ebp - 0x554], 0
jne 0x1008708e
xor ecx, ecx
jmp 0x100870a0
lea ecx, [ebp - 0x31c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10087097
sub ecx, edx
push ecx
lea eax, [ebp - 0x31c]
push eax
lea ecx, [ebp - 0x554]
call fcn.100057f3
mov byte [ebp - 4], 3
cmp dword [ebp - 0x574], 0
je 0x100870d6
cmp dword [ebp - 0x55c], 0
je 0x100870d6
cmp dword [ebp - 0x544], 0
jne 0x1008719f
lea ecx, [ebp - 0x584]
call fcn.10087380
lea ecx, [ebp - 0x56c]
call fcn.10087380
lea ecx, [ebp - 0x554]
call fcn.10087380
cmp dword [ebp - 0x528], 0x10
lea ecx, [ebp - 0x53c]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [ebp - 0x584]
cmovae ecx, dword [ebp - 0x53c]
cmp dword [ebp - 0x570], 0x10
push ecx
cmovae eax, dword [ebp - 0x584]
push eax
push str.SerialNumber
push 0x100f8918
call esi
cmp dword [ebp - 0x528], 0x10
lea ecx, [ebp - 0x53c]
lea eax, [ebp - 0x56c]
cmovae ecx, dword [ebp - 0x53c]
cmp dword [ebp - 0x558], 0x10
push ecx
cmovae eax, dword [ebp - 0x56c]
push eax
push str.ModelNumber
push 0x100f8918
call esi
cmp dword [ebp - 0x528], 0x10
lea ecx, [ebp - 0x53c]
lea eax, [ebp - 0x554]
cmovae ecx, dword [ebp - 0x53c]
cmp dword [ebp - 0x540], 0x10
push ecx
cmovae eax, dword [ebp - 0x554]
push eax
push str.RevisionNumber
push 0x100f8918
call esi
mov dword [ebp - 0x5b8], 0xf
mov dword [ebp - 0x5bc], 0
mov byte [ebp - 0x5cc], 0
mov dword [ebp - 0x5a0], 0xf
mov dword [ebp - 0x5a4], 0
mov byte [ebp - 0x5b4], 0
mov dword [ebp - 0x588], 0xf
mov dword [ebp - 0x58c], 0
mov byte [ebp - 0x59c], 0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x584]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x5cc]
call fcn.1000586c
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x56c]
push eax
lea ecx, [ebp - 0x5b4]
call fcn.1000586c
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x554]
push eax
lea ecx, [ebp - 0x59c]
call fcn.1000586c
mov eax, dword [ebp - 0x5d0]
lea ecx, [ebp - 0x5cc]
cmp eax, ecx
je 0x10087252
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.1000586c
lea eax, [ebp - 0x5b4]
cmp ebx, eax
je 0x10087268
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.1000586c
lea eax, [ebp - 0x59c]
cmp edi, eax
je 0x1008727e
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.1000586c
mov ecx, dword [ebp - 0x5d4]
lea eax, [ebp - 0x5cc]
push eax
call fcn.100877e0
lea ecx, [ebp - 0x5cc]
call fcn.1007ae80
mov eax, dword [ebp - 0x540]
cmp eax, 0x10
jb 0x100872b8
push 1
inc eax
push eax
push dword [ebp - 0x554]
call fcn.10001ef8
add esp, 0xc
mov eax, dword [ebp - 0x558]
mov dword [ebp - 0x540], 0xf
mov dword [ebp - 0x544], 0
mov byte [ebp - 0x554], 0
cmp eax, 0x10
jb 0x100872f0
push 1
inc eax
push eax
push dword [ebp - 0x56c]
call fcn.10001ef8
add esp, 0xc
mov eax, dword [ebp - 0x570]
mov dword [ebp - 0x558], 0xf
mov dword [ebp - 0x55c], 0
mov byte [ebp - 0x56c], 0
cmp eax, 0x10
jb 0x10087328
push 1
inc eax
push eax
push dword [ebp - 0x584]
call fcn.10001ef8
add esp, 0xc
mov eax, dword [ebp - 0x528]
mov dword [ebp - 0x570], 0xf
mov dword [ebp - 0x574], 0
mov byte [ebp - 0x584], 0
cmp eax, 0x10
jb 0x10087360
push 1
inc eax
push eax
push dword [ebp - 0x53c]
call fcn.10001ef8
add esp, 0xc
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008a9f7
mov esp, ebp
pop ebp
ret