Function at 0x417b7c
Capabilities:
Check if file exists
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43e640
mov eax, dword fs:[0]
push eax
sub esp, 0x350
mov eax, dword [0x44b074]
xor eax, esp
mov dword [esp + 0x348], eax
push ebx
push esi
push edi
mov eax, dword [0x44b074]
xor eax, esp
push eax
lea eax, [esp + 0x360]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
push str.Kernel32.dll
lea eax, [esp + 0x1c]
push eax
call fcn.00401379
lea eax, [esp + 0x18]
xor edi, edi
push eax
mov dword [esp + 0x36c], edi
call fcn.004011a0
or dword [esp + 0x36c], 0xffffffff
mov ebx, eax
mov eax, dword [esp + 0x1c]
pop ecx
add eax, 0xfffffff0
call fcn.004019ab
cmp ebx, edi
je 0x417c19
push str.SetDllDirectoryW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x417c19
push 0x44196c
call eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x208
lea eax, [esp + 0x14a]
push edi
push eax
mov word [esp + 0x150], di
call fcn.0041ef10
add esp, 0xc
push 0x104
lea eax, [esp + 0x148]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x417c73
mov ebx, str.Tencent_Download_Components
lea eax, [esp + 0x144]
push ebx
push eax
call fcn.0041db17
lea eax, [esp + 0x14c]
push ebx
push eax
call fcn.0041daae
add esp, 0x10
mov eax, dword [ebp + 8]
mov dword [0x44e224], eax
mov eax, 0x442a84
lea ecx, [esp + 0x40]
call fcn.00409482
xor ebx, ebx
push eax
inc ebx
mov eax, 0x443c2c
lea ecx, [esp + 0x60]
mov dword [esp + 0x36c], ebx
call fcn.00409482
push eax
mov eax, 0x443c30
lea ecx, [esp + 0x80]
mov byte [esp + 0x370], 2
call fcn.00409482
push eax
sub esp, 0x1c
mov byte [esp + 0x390], 3
mov eax, esi
mov ecx, esp
mov dword [esp + 0x44], esp
call fcn.00409482
lea ecx, [esp + 0x104]
call fcn.0040c3f8
push edi
push ebx
lea esi, [esp + 0x80]
call fcn.00409826
push edi
push ebx
lea esi, [esp + 0x64]
call fcn.00409826
push edi
push ebx
lea esi, [esp + 0x48]
mov byte [esp + 0x370], 7
call fcn.00409826
mov eax, str.operator
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], edi
call fcn.00409482
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0xe4]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x374], 8
call fcn.00419c5c
push edi
push ebx
lea esi, [esp + 0x2c]
mov byte [esp + 0x370], 7
call fcn.00409826
mov al, byte [esp + 0x10]
mov byte [0x44e248], al
mov eax, str.supplyid
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], edi
call fcn.00409482
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0xe4]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x374], 9
call fcn.00419c5c
push edi
push ebx
lea esi, [esp + 0x2c]
mov byte [esp + 0x370], 7
call fcn.00409826
mov esi, dword [esp + 0x18]
mov dword [0x44e24c], esi
call fcn.00416c63
mov dword [esp + 0x18], eax
mov dword [eax + 4], esi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp eax, edi
je 0x417e63
push 5
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, dword [sym.imp.USER32.dll_IsWindow]
jmp 0x417dfa
push str.QQPCDownloader_PropData
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x417e2e
push 2
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
mov dword [esp + 0x18], eax
call esi
test eax, eax
jne 0x417ddb
mov dword [esp + 0x14], edi
cmp dword [esp + 0x14], edi
je 0x417e63
push dword [esp + 0x14]
call esi
test eax, eax
je 0x417e63
cmp dword [esp + 0x10], 2
jne 0x417e38
call fcn.00417971
push edi
push edi
push 0x80fa
jmp 0x417e4f
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
jmp 0x417e09
cmp dword [esp + 0x10], 3
jne 0x41805d
call fcn.00417971
push edi
push edi
push 0x80fb
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.00417a16
jmp 0x418052
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x417eaf
call fcn.00417971
mov esi, dword [esp + 0x18]
mov edi, esi
call fcn.00416fbc
call fcn.0040ae96
test eax, eax
je 0x417e89
call fcn.004178c5
xor eax, eax
call fcn.00417ad3
call fcn.00417043
cmp dword [0x44e270], ebx
jne 0x41805d
mov ecx, dword [esp + 0x18]
call fcn.00416d15
jmp 0x41805d
cmp eax, 2
jne 0x417ed4
call fcn.00417971
mov esi, dword [esp + 0x18]
mov ecx, esi
mov byte [0x44e24a], bl
call fcn.00416d15
mov al, byte [esi + 8]
mov byte [0x44e249], al
jmp 0x417e59
cmp eax, 3
jne 0x418023
call fcn.00417971
lea edx, [esp + 0x14]
mov ecx, str.ProductID
mov dword [esp + 0x14], edi
mov byte [0x44e24a], 4
call fcn.0040a731
test eax, eax
je 0x417f15
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x417f10
mov byte [0x44e24b], 0xe
jmp 0x417f15
mov byte [0x44e249], al
lea edx, [esp + 0x20]
mov ecx, str.NeedRecord
call fcn.0040a731
test eax, eax
je 0x417f6d
cmp dword [esp + 0x20], ebx
jne 0x417f6d
cmp dword [esp + 0x14], edi
je 0x417f6d
lea eax, [esp + 0x94]
push eax
call fcn.00414763
mov byte [esp + 0x368], 0xa
push dword [esp + 0x14]
lea ecx, [esp + 0x98]
call fcn.004149fc
lea eax, [esp + 0x94]
push eax
mov byte [esp + 0x36c], 7
call fcn.00414849
call fcn.0040ae96
test eax, eax
je 0x417f7b
call fcn.004178c5
push 0x44196c
lea eax, [esp + 0x14]
push eax
call fcn.00401379
lea ebx, [esp + 0x1c]
mov byte [esp + 0x368], 0xb
call fcn.0040afbc
lea edi, [esp + 0x10]
mov byte [esp + 0x368], 0xc
call fcn.004013b6
mov byte [esp + 0x368], 0xb
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.004019ab
mov esi, edi
call fcn.00401000
mov eax, str.Download_
mov ecx, edi
call fcn.00401a1b
push 0
push dword [esp + 0x14]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, str.QQPCDownload.exe
mov ecx, edi
call fcn.00401a1b
push dword [esp + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x418005
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00417a16
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.004019ab
jmp 0x41805d
cmp eax, 4
jne 0x41805d
call fcn.00417971
mov esi, dword [esp + 0x18]
mov edi, esi
call fcn.00416fbc
call fcn.0040ae96
test eax, eax
je 0x418046
call fcn.004178c5
mov eax, ebx
call fcn.00417ad3
call fcn.00417043
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
or dword [esp + 0x368], 0xffffffff
lea ecx, [esp + 0xdc]
call fcn.0040c4fe
xor eax, eax
mov ecx, dword [esp + 0x360]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x348]
xor ecx, esp
call fcn.0041f018
mov esp, ebp
pop ebp
ret 0x10