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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43df00
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.004019a0
cmp ebx, edi
je 0x417498
push str.SetDllDirectoryW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x417498
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.0041e7c0
add esp, 0xc
push 0x104
lea eax, [esp + 0x148]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4174f2
mov ebx, str.Tencent_Download_Components
lea eax, [esp + 0x144]
push ebx
push eax
call fcn.0041d3c2
lea eax, [esp + 0x14c]
push ebx
push eax
call fcn.0041d359
add esp, 0x10
mov eax, dword [ebp + 8]
mov dword [0x44e224], eax
mov eax, 0x442a84
lea ecx, [esp + 0x40]
call fcn.0040944c
xor ebx, ebx
push eax
inc ebx
mov eax, 0x443c2c
lea ecx, [esp + 0x60]
mov dword [esp + 0x36c], ebx
call fcn.0040944c
push eax
mov eax, 0x443c30
lea ecx, [esp + 0x80]
mov byte [esp + 0x370], 2
call fcn.0040944c
push eax
sub esp, 0x1c
mov byte [esp + 0x390], 3
mov eax, esi
mov ecx, esp
mov dword [esp + 0x44], esp
call fcn.0040944c
lea ecx, [esp + 0x104]
call fcn.0040bc43
push edi
push ebx
lea esi, [esp + 0x80]
call fcn.004097e6
push edi
push ebx
lea esi, [esp + 0x64]
call fcn.004097e6
push edi
push ebx
lea esi, [esp + 0x48]
mov byte [esp + 0x370], 7
call fcn.004097e6
mov eax, str.operator
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], edi
call fcn.0040944c
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.004194ed
push edi
push ebx
lea esi, [esp + 0x2c]
mov byte [esp + 0x370], 7
call fcn.004097e6
mov al, byte [esp + 0x10]
mov byte [0x44e248], al
mov eax, str.supplyid
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], edi
call fcn.0040944c
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.004194ed
push edi
push ebx
lea esi, [esp + 0x2c]
mov byte [esp + 0x370], 7
call fcn.004097e6
mov esi, dword [esp + 0x18]
mov dword [0x44e24c], esi
call fcn.004164d8
mov dword [esp + 0x18], eax
mov dword [eax + 4], esi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp eax, edi
je 0x4176e2
push 5
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, dword [sym.imp.USER32.dll_IsWindow]
jmp 0x417679
push str.QQPCDownloader_PropData
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x4176ad
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 0x41765a
mov dword [esp + 0x14], edi
cmp dword [esp + 0x14], edi
je 0x4176e2
push dword [esp + 0x14]
call esi
test eax, eax
je 0x4176e2
cmp dword [esp + 0x10], 2
jne 0x4176b7
call fcn.004171f0
push edi
push edi
push 0x80fa
jmp 0x4176ce
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
jmp 0x417688
cmp dword [esp + 0x10], 3
jne 0x4178e0
call fcn.004171f0
push edi
push edi
push 0x80fb
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.00417295
jmp 0x4178d5
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x41772e
call fcn.004171f0
mov esi, dword [esp + 0x18]
mov edi, esi
call fcn.0041683b
call fcn.0040a7a4
test eax, eax
je 0x417708
call fcn.00417144
xor eax, eax
call fcn.00417352
call fcn.004168c2
cmp dword [0x44e270], ebx
jne 0x4178e0
mov ecx, dword [esp + 0x18]
call fcn.00416592
jmp 0x4178e0
cmp eax, 2
jne 0x417753
call fcn.004171f0
mov esi, dword [esp + 0x18]
mov ecx, esi
mov byte [0x44e24a], bl
call fcn.00416592
mov al, byte [esi + 8]
mov byte [0x44e249], al
jmp 0x4176d8
cmp eax, 3
jne 0x4178a6
call fcn.004171f0
push ebx
lea edx, [esp + 0x18]
mov ecx, str.ProductID
mov dword [esp + 0x18], edi
mov byte [0x44e24a], 4
call fcn.0040a419
test eax, eax
pop ecx
je 0x417796
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x417791
mov byte [0x44e24b], 0xe
jmp 0x417796
mov byte [0x44e249], al
push ebx
lea edx, [esp + 0x24]
mov ecx, str.NeedRecord
call fcn.0040a419
test eax, eax
pop ecx
je 0x4177f0
cmp dword [esp + 0x20], ebx
jne 0x4177f0
cmp dword [esp + 0x14], edi
je 0x4177f0
lea eax, [esp + 0x94]
push eax
call fcn.00413fd5
mov byte [esp + 0x368], 0xa
push dword [esp + 0x14]
lea ecx, [esp + 0x98]
call fcn.0041426e
lea eax, [esp + 0x94]
push eax
mov byte [esp + 0x36c], 7
call fcn.004140bb
call fcn.0040a7a4
test eax, eax
je 0x4177fe
call fcn.00417144
push 0x44196c
lea eax, [esp + 0x14]
push eax
call fcn.00401379
lea ebx, [esp + 0x1c]
mov byte [esp + 0x368], 0xb
call fcn.0040a7fc
lea edi, [esp + 0x10]
mov byte [esp + 0x368], 0xc
call fcn.004013c0
mov byte [esp + 0x368], 0xb
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.004019a0
mov esi, edi
call fcn.00401000
mov eax, 0x443768
mov ecx, edi
call fcn.00401a10
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.00401a10
push dword [esp + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x417888
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00417295
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.004019a0
jmp 0x4178e0
cmp eax, 4
jne 0x4178e0
call fcn.004171f0
mov esi, dword [esp + 0x18]
mov edi, esi
call fcn.0041683b
call fcn.0040a7a4
test eax, eax
je 0x4178c9
call fcn.00417144
mov eax, ebx
call fcn.00417352
call fcn.004168c2
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
or dword [esp + 0x368], 0xffffffff
lea ecx, [esp + 0xdc]
call fcn.0040bd49
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.0041e8c8
mov esp, ebp
pop ebp
ret 0x10