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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c53d7
mov eax, dword fs:[0]
push eax
sub esp, 0x5c8
mov eax, dword [0x1010e070]
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.1008f060
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 0x10087feb
xor al, al
jmp 0x100884b2
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 0x1008801f
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.10074ab0
push 0x104
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.1008f060
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1008f060
push 0x104
lea eax, [ebp - 0x31c]
push 0
push eax
call fcn.1008f060
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 0x100fac10
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 0x100fac10
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 0x100fac10
call esi
cmp byte [ebp - 0x114], 0
mov dword [ebp - 0x570], 0xf
mov dword [ebp - 0x574], 0
mov byte [ebp - 0x584], 0
jne 0x1008813c
xor ecx, ecx
jmp 0x1008814e
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10088145
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 0x1008818d
xor ecx, ecx
jmp 0x1008819f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10088196
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 0x100881de
xor ecx, ecx
jmp 0x100881f0
lea ecx, [ebp - 0x31c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100881e7
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 0x10088226
cmp dword [ebp - 0x55c], 0
je 0x10088226
cmp dword [ebp - 0x544], 0
jne 0x100882ef
lea ecx, [ebp - 0x584]
call fcn.100884d0
lea ecx, [ebp - 0x56c]
call fcn.100884d0
lea ecx, [ebp - 0x554]
call fcn.100884d0
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 0x100fac10
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 0x100fac10
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 0x100fac10
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 0x100883a2
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.100058d2
lea eax, [ebp - 0x5b4]
cmp ebx, eax
je 0x100883b8
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.100058d2
lea eax, [ebp - 0x59c]
cmp edi, eax
je 0x100883ce
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.10088930
lea ecx, [ebp - 0x5cc]
call fcn.1007bfd0
mov eax, dword [ebp - 0x540]
cmp eax, 0x10
jb 0x10088408
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 0x10088440
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 0x10088478
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 0x100884b0
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.1008bb47
mov esp, ebp
pop ebp
ret