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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c4687
mov eax, dword fs:[0]
push eax
sub esp, 0x5c8
mov eax, dword [0x1010c070]
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.1008e420
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 0x100873ab
xor al, al
jmp 0x10087872
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 0x100873df
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.10073e70
push 0x104
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.1008e420
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1008e420
push 0x104
lea eax, [ebp - 0x31c]
push 0
push eax
call fcn.1008e420
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 0x100f98f8
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 0x100f98f8
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 0x100f98f8
call esi
cmp byte [ebp - 0x114], 0
mov dword [ebp - 0x570], 0xf
mov dword [ebp - 0x574], 0
mov byte [ebp - 0x584], 0
jne 0x100874fc
xor ecx, ecx
jmp 0x1008750e
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10087505
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x584]
call fcn.10005844
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 0x1008754d
xor ecx, ecx
jmp 0x1008755f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10087556
sub ecx, edx
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x56c]
call fcn.10005844
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 0x1008759e
xor ecx, ecx
jmp 0x100875b0
lea ecx, [ebp - 0x31c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100875a7
sub ecx, edx
push ecx
lea eax, [ebp - 0x31c]
push eax
lea ecx, [ebp - 0x554]
call fcn.10005844
mov byte [ebp - 4], 3
cmp dword [ebp - 0x574], 0
je 0x100875e6
cmp dword [ebp - 0x55c], 0
je 0x100875e6
cmp dword [ebp - 0x544], 0
jne 0x100876af
lea ecx, [ebp - 0x584]
call fcn.10087890
lea ecx, [ebp - 0x56c]
call fcn.10087890
lea ecx, [ebp - 0x554]
call fcn.10087890
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 0x100f98f8
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 0x100f98f8
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 0x100f98f8
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.100058bd
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x56c]
push eax
lea ecx, [ebp - 0x5b4]
call fcn.100058bd
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x554]
push eax
lea ecx, [ebp - 0x59c]
call fcn.100058bd
mov eax, dword [ebp - 0x5d0]
lea ecx, [ebp - 0x5cc]
cmp eax, ecx
je 0x10087762
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.100058bd
lea eax, [ebp - 0x5b4]
cmp ebx, eax
je 0x10087778
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.100058bd
lea eax, [ebp - 0x59c]
cmp edi, eax
je 0x1008778e
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.100058bd
mov ecx, dword [ebp - 0x5d4]
lea eax, [ebp - 0x5cc]
push eax
call fcn.10087cf0
lea ecx, [ebp - 0x5cc]
call fcn.1007b390
mov eax, dword [ebp - 0x540]
cmp eax, 0x10
jb 0x100877c8
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 0x10087800
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 0x10087838
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 0x10087870
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.1008aeea
mov esp, ebp
pop ebp
ret