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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c3cd7
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.1008dc90
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 0x10086c1b
xor al, al
jmp 0x100870e2
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 0x10086c4f
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.100736e0
push 0x104
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.1008dc90
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1008dc90
push 0x104
lea eax, [ebp - 0x31c]
push 0
push eax
call fcn.1008dc90
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 0x100f8038
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 0x100f8038
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 0x100f8038
call esi
cmp byte [ebp - 0x114], 0
mov dword [ebp - 0x570], 0xf
mov dword [ebp - 0x574], 0
mov byte [ebp - 0x584], 0
jne 0x10086d6c
xor ecx, ecx
jmp 0x10086d7e
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10086d75
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x584]
call fcn.10005859
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 0x10086dbd
xor ecx, ecx
jmp 0x10086dcf
lea ecx, [ebp - 0x218]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10086dc6
sub ecx, edx
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x56c]
call fcn.10005859
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 0x10086e0e
xor ecx, ecx
jmp 0x10086e20
lea ecx, [ebp - 0x31c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10086e17
sub ecx, edx
push ecx
lea eax, [ebp - 0x31c]
push eax
lea ecx, [ebp - 0x554]
call fcn.10005859
mov byte [ebp - 4], 3
cmp dword [ebp - 0x574], 0
je 0x10086e56
cmp dword [ebp - 0x55c], 0
je 0x10086e56
cmp dword [ebp - 0x544], 0
jne 0x10086f1f
lea ecx, [ebp - 0x584]
call fcn.10087100
lea ecx, [ebp - 0x56c]
call fcn.10087100
lea ecx, [ebp - 0x554]
call fcn.10087100
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 0x100f8038
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 0x100f8038
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 0x100f8038
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.100058d2
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x56c]
push eax
lea ecx, [ebp - 0x5b4]
call fcn.100058d2
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x554]
push eax
lea ecx, [ebp - 0x59c]
call fcn.100058d2
mov eax, dword [ebp - 0x5d0]
lea ecx, [ebp - 0x5cc]
cmp eax, ecx
je 0x10086fd2
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.100058d2
lea eax, [ebp - 0x5b4]
cmp ebx, eax
je 0x10086fe8
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.100058d2
lea eax, [ebp - 0x59c]
cmp edi, eax
je 0x10086ffe
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.100058d2
mov ecx, dword [ebp - 0x5d4]
lea eax, [ebp - 0x5cc]
push eax
call fcn.10087560
lea ecx, [ebp - 0x5cc]
call fcn.1007ac00
mov eax, dword [ebp - 0x540]
cmp eax, 0x10
jb 0x10087038
push 1
inc eax
push eax
push dword [ebp - 0x554]
call fcn.10001f08
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 0x10087070
push 1
inc eax
push eax
push dword [ebp - 0x56c]
call fcn.10001f08
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 0x100870a8
push 1
inc eax
push eax
push dword [ebp - 0x584]
call fcn.10001f08
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 0x100870e0
push 1
inc eax
push eax
push dword [ebp - 0x53c]
call fcn.10001f08
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.1008a777
mov esp, ebp
pop ebp
ret