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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b175
mov eax, dword fs:[0]
push eax
sub esp, 0x5c8
mov eax, dword [0x54b144]
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 dword [ebp - 0x5d0], edx
mov dword [ebp - 0x5d4], ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x524]
mov edi, dword [ebp + 0xc]
push 0x208
push 0
push eax
call fcn.004dcc10
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 0x46fda9
xor al, al
jmp 0x4703b7
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 0x46fddd
lea eax, [ebp - 0x524]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x532eec
lea eax, [ebp - 0x524]
push eax
call esi
lea ecx, [ebp - 0x524]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46fdf4
sub ecx, edx
lea eax, [ebp - 0x524]
sar ecx, 1
mov edx, 0xfde9
push ecx
push eax
lea ecx, [ebp - 0x53c]
call fcn.00455a80
push 0x104
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004dcc10
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004dcc10
push 0x104
lea eax, [ebp - 0x31c]
push 0
push eax
call fcn.004dcc10
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x53c]
add esp, 0x2c
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 0x532b70
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 0x532b70
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 0x532b70
call esi
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x584], 0
mov dword [ebp - 0x574], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x570], 0xf
mov byte [ebp - 0x584], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46ff20
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x584]
call fcn.0044c030
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x56c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x55c], 0
mov dword [ebp - 0x558], 0xf
mov byte [ebp - 0x56c], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46ff70
sub ecx, edx
lea eax, [ebp - 0x218]
push ecx
push eax
lea ecx, [ebp - 0x56c]
call fcn.0044c030
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x31c]
mov dword [ebp - 0x554], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x544], 0
mov dword [ebp - 0x540], 0xf
mov byte [ebp - 0x554], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46ffc0
sub ecx, edx
lea eax, [ebp - 0x31c]
push ecx
push eax
lea ecx, [ebp - 0x554]
call fcn.0044c030
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x574]
test ecx, ecx
je 0x470000
cmp dword [ebp - 0x55c], 0
je 0x470000
cmp dword [ebp - 0x544], 0
jne 0x4700cf
lea ecx, [ebp - 0x584]
call fcn.004703e0
lea ecx, [ebp - 0x56c]
call fcn.004703e0
lea ecx, [ebp - 0x554]
call fcn.004703e0
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 0x532b70
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 0x532b70
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 0x532b70
call esi
mov ecx, dword [ebp - 0x574]
mov dword [ebp - 0x5cc], 0
mov dword [ebp - 0x5b4], 0
mov dword [ebp - 0x59c], 0
mov dword [ebp - 0x5bc], 0
mov dword [ebp - 0x5b8], 0xf
mov byte [ebp - 0x5cc], 0
mov dword [ebp - 0x5a4], 0
mov dword [ebp - 0x5a0], 0xf
mov byte [ebp - 0x5b4], 0
mov dword [ebp - 0x58c], 0
mov dword [ebp - 0x588], 0xf
mov byte [ebp - 0x59c], 0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x584]
cmp dword [ebp - 0x570], 0x10
push ecx
cmovae eax, dword [ebp - 0x584]
lea ecx, [ebp - 0x5cc]
push eax
call fcn.0044c030
cmp dword [ebp - 0x558], 0x10
lea eax, [ebp - 0x56c]
push dword [ebp - 0x55c]
cmovae eax, dword [ebp - 0x56c]
lea ecx, [ebp - 0x5b4]
push eax
call fcn.0044c030
cmp dword [ebp - 0x540], 0x10
lea eax, [ebp - 0x554]
push dword [ebp - 0x544]
cmovae eax, dword [ebp - 0x554]
lea ecx, [ebp - 0x59c]
push eax
call fcn.0044c030
mov ecx, dword [ebp - 0x5d4]
lea eax, [ebp - 0x5cc]
cmp ecx, eax
je 0x4701d9
cmp dword [ebp - 0x5b8], 0x10
push dword [ebp - 0x5bc]
cmovae eax, dword [ebp - 0x5cc]
push eax
call fcn.0044c030
mov ecx, dword [ebp - 0x5d0]
lea eax, [ebp - 0x5b4]
cmp ecx, eax
je 0x470203
cmp dword [ebp - 0x5a0], 0x10
push dword [ebp - 0x5a4]
cmovae eax, dword [ebp - 0x5b4]
push eax
call fcn.0044c030
lea eax, [ebp - 0x59c]
cmp ebx, eax
je 0x470229
cmp dword [ebp - 0x588], 0x10
mov ecx, ebx
push dword [ebp - 0x58c]
cmovae eax, dword [ebp - 0x59c]
push eax
call fcn.0044c030
mov esi, dword [edi + 4]
lea eax, [ebp - 0x5cc]
push eax
cmp esi, dword [edi + 8]
je 0x470271
mov ecx, esi
mov dword [ebp - 0x5d0], esi
call fcn.0044ef30
lea eax, [ebp - 0x5b4]
mov byte [ebp - 4], 5
lea ecx, [esi + 0x18]
push eax
call fcn.0044ef30
lea eax, [ebp - 0x59c]
mov byte [ebp - 4], 6
push eax
lea ecx, [esi + 0x30]
call fcn.0044ef30
add dword [edi + 4], 0x48
jmp 0x470279
push esi
mov ecx, edi
call fcn.00470880
lea ecx, [ebp - 0x5cc]
call fcn.00464080
mov edx, dword [ebp - 0x540]
cmp edx, 0x10
jb 0x4702be
mov ecx, dword [ebp - 0x554]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4702b4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4703d3
push edx
push ecx
call fcn.004dafca
add esp, 8
mov edx, dword [ebp - 0x558]
mov dword [ebp - 0x544], 0
mov dword [ebp - 0x540], 0xf
mov byte [ebp - 0x554], 0
cmp edx, 0x10
jb 0x470313
mov ecx, dword [ebp - 0x56c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x470309
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4703d3
push edx
push ecx
call fcn.004dafca
add esp, 8
mov edx, dword [ebp - 0x570]
mov dword [ebp - 0x55c], 0
mov dword [ebp - 0x558], 0xf
mov byte [ebp - 0x56c], 0
cmp edx, 0x10
jb 0x470364
mov ecx, dword [ebp - 0x584]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47035a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4703d3
push edx
push ecx
call fcn.004dafca
add esp, 8
mov edx, dword [ebp - 0x528]
mov dword [ebp - 0x574], 0
mov dword [ebp - 0x570], 0xf
mov byte [ebp - 0x584], 0
cmp edx, 0x10
jb 0x4703b5
mov ecx, dword [ebp - 0x53c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4703ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4703d3
push edx
push ecx
call fcn.004dafca
add esp, 8
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.004dafe6
mov esp, ebp
pop ebp
ret
call fcn.004e002c
int3