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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e855
mov eax, dword fs:[0]
push eax
sub esp, 0x5c8
mov eax, dword [0x550144]
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.004e02e0
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 0x46fec9
xor al, al
jmp 0x4704d7
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 0x46fefd
lea eax, [ebp - 0x524]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x53707c
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 0x46ff14
sub ecx, edx
lea eax, [ebp - 0x524]
sar ecx, 1
mov edx, 0xfde9
push ecx
push eax
lea ecx, [ebp - 0x53c]
call fcn.00455bd0
push 0x104
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004e02e0
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004e02e0
push 0x104
lea eax, [ebp - 0x31c]
push 0
push eax
call fcn.004e02e0
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 0x536d00
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 0x536d00
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 0x536d00
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 0x470040
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x584]
call fcn.0044c0b0
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 0x470090
sub ecx, edx
lea eax, [ebp - 0x218]
push ecx
push eax
lea ecx, [ebp - 0x56c]
call fcn.0044c0b0
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 0x4700e0
sub ecx, edx
lea eax, [ebp - 0x31c]
push ecx
push eax
lea ecx, [ebp - 0x554]
call fcn.0044c0b0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x574]
test ecx, ecx
je 0x470120
cmp dword [ebp - 0x55c], 0
je 0x470120
cmp dword [ebp - 0x544], 0
jne 0x4701ef
lea ecx, [ebp - 0x584]
call fcn.00470500
lea ecx, [ebp - 0x56c]
call fcn.00470500
lea ecx, [ebp - 0x554]
call fcn.00470500
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 0x536d00
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 0x536d00
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 0x536d00
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.0044c0b0
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.0044c0b0
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.0044c0b0
mov ecx, dword [ebp - 0x5d4]
lea eax, [ebp - 0x5cc]
cmp ecx, eax
je 0x4702f9
cmp dword [ebp - 0x5b8], 0x10
push dword [ebp - 0x5bc]
cmovae eax, dword [ebp - 0x5cc]
push eax
call fcn.0044c0b0
mov ecx, dword [ebp - 0x5d0]
lea eax, [ebp - 0x5b4]
cmp ecx, eax
je 0x470323
cmp dword [ebp - 0x5a0], 0x10
push dword [ebp - 0x5a4]
cmovae eax, dword [ebp - 0x5b4]
push eax
call fcn.0044c0b0
lea eax, [ebp - 0x59c]
cmp ebx, eax
je 0x470349
cmp dword [ebp - 0x588], 0x10
mov ecx, ebx
push dword [ebp - 0x58c]
cmovae eax, dword [ebp - 0x59c]
push eax
call fcn.0044c0b0
mov esi, dword [edi + 4]
lea eax, [ebp - 0x5cc]
push eax
cmp esi, dword [edi + 8]
je 0x470391
mov ecx, esi
mov dword [ebp - 0x5d0], esi
call fcn.0044f070
lea eax, [ebp - 0x5b4]
mov byte [ebp - 4], 5
lea ecx, [esi + 0x18]
push eax
call fcn.0044f070
lea eax, [ebp - 0x59c]
mov byte [ebp - 4], 6
push eax
lea ecx, [esi + 0x30]
call fcn.0044f070
add dword [edi + 4], 0x48
jmp 0x470399
push esi
mov ecx, edi
call fcn.004709a0
lea ecx, [ebp - 0x5cc]
call fcn.00464190
mov edx, dword [ebp - 0x540]
cmp edx, 0x10
jb 0x4703de
mov ecx, dword [ebp - 0x554]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4703d4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4704f3
push edx
push ecx
call fcn.004de50a
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 0x470433
mov ecx, dword [ebp - 0x56c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x470429
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4704f3
push edx
push ecx
call fcn.004de50a
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 0x470484
mov ecx, dword [ebp - 0x584]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47047a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4704f3
push edx
push ecx
call fcn.004de50a
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 0x4704d5
mov ecx, dword [ebp - 0x53c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4704cb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4704f3
push edx
push ecx
call fcn.004de50a
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.004de51d
mov esp, ebp
pop ebp
ret
call fcn.004e36fa
int3