Function at 0x495ee4
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0x30c
mov eax, 0x4e62a6
call fcn.004be9c5
lea eax, [ebp - 0x294]
mov ebx, ecx
push eax
mov ecx, str.Kernel32.dll
call fcn.00409c00
xor edi, edi
lea ecx, [ebp - 0x294]
mov dword [ebp - 4], edi
call fcn.00493187
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x294]
mov esi, eax
call fcn.004016d0
cmp esi, edi
je 0x495f48
push str.SetDllDirectoryW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x495f48
push 0x4ef7d8
call eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x4f5ad4
lea eax, [ebp - 0x2e0]
call fcn.00403710
push eax
mov edx, 0x4f09a0
lea eax, [ebp - 0x2fc]
mov dword [ebp - 4], 1
call fcn.00403710
push eax
mov edx, 0x4f729c
lea eax, [ebp - 0x318]
mov byte [ebp - 4], 2
call fcn.00403710
push eax
sub esp, 0x1c
mov byte [ebp - 4], 3
mov edx, ebx
mov eax, esp
mov dword [ebp - 0x298], esp
call fcn.00403710
lea ebx, [ebp - 0x288]
call fcn.0049eaab
lea esi, [ebp - 0x318]
call fcn.0040c0b0
lea esi, [ebp - 0x2fc]
call fcn.0040c0b0
lea esi, [ebp - 0x2e0]
mov byte [ebp - 4], 7
call fcn.0040c0b0
mov edx, str.operator
lea eax, [ebp - 0x2c4]
mov dword [ebp - 0x28c], edi
call fcn.00403710
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x2c4]
push eax
mov eax, ebx
push eax
lea ecx, [ebp - 0x28c]
mov byte [ebp - 4], 8
call fcn.00496fdd
lea esi, [ebp - 0x2c4]
mov byte [ebp - 4], 7
call fcn.0040c0b0
call fcn.0048ef9f
mov cl, byte [ebp - 0x28c]
mov byte [eax], cl
mov dword [ebp - 0x290], edi
call fcn.0048ef9f
mov dword [eax + 0xc], 0xc22
mov edx, str.supplyid
lea eax, [ebp - 0x2c4]
call fcn.00403710
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x2c4]
push eax
mov eax, ebx
push eax
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 9
call fcn.00496fdd
lea esi, [ebp - 0x2c4]
mov byte [ebp - 4], 7
call fcn.0040c0b0
call fcn.0048ef9f
mov ebx, dword [ebp - 0x290]
mov dword [eax + 4], ebx
call fcn.0048efc8
mov esi, eax
cmp esi, edi
je 0x4963c9
push 0x208
lea eax, [ebp - 0x21e]
push edi
mov dword [esi + 8], ebx
push eax
mov word [ebp - 0x220], di
call fcn.004be240
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x220]
push str.QQPCDownloader_PropData__d
push eax
call fcn.004b8974
lea eax, [ebp - 0x220]
add esp, 0xc
push eax
call fcn.004941a2
mov ebx, eax
cmp ebx, edi
pop ecx
je 0x496125
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x496125
cmp dword [ebp - 0x28c], 2
jne 0x4960fb
call fcn.00495a5a
push edi
push edi
push 0x80fa
jmp 0x496114
cmp dword [ebp - 0x28c], 3
jne 0x4963c9
call fcn.00495a5a
push edi
push edi
push 0x80fb
push ebx
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.00495abc
jmp 0x4963c9
mov eax, dword [ebp - 0x28c]
xor ebx, ebx
inc ebx
cmp eax, ebx
jne 0x49615f
call fcn.00495a5a
mov edi, esi
call fcn.00494c86
test eax, eax
je 0x4963c9
call fcn.0049271c
test eax, eax
je 0x496154
call fcn.0049596c
push 0
mov ecx, esi
call fcn.00495b96
jmp 0x49618f
cmp eax, 2
jne 0x496199
mov edi, esi
call fcn.00494c86
call fcn.00495a5a
call fcn.0048ef9f
mov ecx, esi
mov byte [eax + 2], bl
call fcn.00494268
call fcn.0048ef9f
mov cl, byte [esi + 0xc]
mov byte [eax + 1], cl
call fcn.00495abc
call fcn.00494d53
jmp 0x4963c9
cmp eax, 3
jne 0x496392
call fcn.00495a5a
mov eax, dword [0x515a10]
mov dword [ebp - 0x290], eax
call fcn.0048ef9f
mov byte [eax + 2], 4
call fcn.0048ef9f
mov cl, byte [ebp - 0x290]
mov byte [eax + 1], cl
push ebx
lea edx, [ebp - 0x290]
mov ecx, str.ProductID
call fcn.0049239c
test eax, eax
pop ecx
je 0x49624d
cmp dword [ebp - 0x290], edi
jne 0x496208
call fcn.0048ef9f
mov esi, 0x515a60
push esi
mov byte [eax + 3], 0xe
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [0x515a88], 0xe
jmp 0x496246
call fcn.0048ef9f
mov cl, byte [ebp - 0x290]
push edi
push edi
push 0x5155f8
mov byte [eax + 1], cl
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
jne 0x49624d
call fcn.0048ef9f
mov esi, 0x515a60
push esi
mov byte [eax + 3], 0x11
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [0x515a88], 0x11
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
lea edx, [ebp - 0x29c]
mov ecx, str.NeedRecord
call fcn.0049239c
test eax, eax
pop ecx
je 0x49629b
cmp dword [ebp - 0x29c], ebx
jne 0x49629b
cmp dword [ebp - 0x290], edi
je 0x49629b
lea eax, [ebp - 0x2a8]
push eax
call fcn.0049a839
push dword [ebp - 0x290]
lea ecx, [ebp - 0x2a8]
call fcn.0049aab8
lea esi, [ebp - 0x2a8]
call fcn.0049a93e
call fcn.0049271c
test eax, eax
je 0x4962a9
call fcn.0049596c
lea eax, [ebp - 0x28c]
push eax
mov ecx, 0x4ef7d8
call fcn.00409c00
lea ecx, [ebp - 0x298]
mov byte [ebp - 4], 0xa
call fcn.00492786
mov byte [ebp - 4], 0xb
mov ecx, dword [eax]
mov esi, dword [ebp - 0x28c]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x496312
cmp dword [esi + 0xc], edi
jl 0x496303
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x496303
call fcn.004012e0
mov edi, eax
mov eax, esi
call fcn.004010d0
add edi, 0x10
mov dword [ebp - 0x28c], edi
jmp 0x496312
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [ebp - 0x28c]
call fcn.00401470
lea ecx, [ebp - 0x298]
mov byte [ebp - 4], 0xa
call fcn.004016d0
lea eax, [ebp - 0x28c]
call fcn.004934a9
mov edx, str.Download_
lea edi, [ebp - 0x28c]
call fcn.004139a0
mov edx, dword [ebp - 0x28c]
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x294], esp
call fcn.00403710
call fcn.0048f078
add esp, 0x1c
mov edx, str.QQPCDownload.exe
call fcn.004139a0
push dword [ebp - 0x28c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x496380
push dword [ebp - 0x28c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00495abc
lea ecx, [ebp - 0x28c]
call fcn.004016d0
jmp 0x4963c9
cmp eax, 4
jne 0x4963c9
call fcn.00495a5a
mov edi, esi
call fcn.00494c86
call fcn.0049271c
test eax, eax
je 0x4963b1
call fcn.0049596c
push ebx
mov ecx, esi
call fcn.00495b96
call fcn.00494d53
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x288]
call fcn.0049ebab
xor eax, eax
call fcn.004bea48
ret