Function at 0x417e50
Capabilities:
Check for time delay via gettickcount
Check if file exists
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a01e0
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push esi
push edi
mov eax, dword [0x4b93f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x34], 1
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 4], 0
mov dword [ebp - 0x54], 0
push 0x17
push 0
push str.MSXML2.XMLHTTP
lea ecx, [ebp - 0x54]
call fcn.0040fcb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00407480
cmp byte [0x4c1110], 0
jne 0x417f08
cmp byte [ebx + 0x538], 0
jne 0x417f08
push str.pcmaster.exe
lea eax, [ebx + 0x594]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0040a190
add esp, 0xc
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
lea ecx, [ebp - 0x50]
call fcn.00409060
test esi, esi
je 0x417f08
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.http:__dat.ruanmei.com_pcmaster_upgrade.xml_a_d
jmp 0x417f14
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.http:__dat.ruanmei.com_pcmaster_upgrade6s.xml_a_d
lea eax, [ebp - 0x1c]
push eax
call fcn.0041ad10
add esp, 0xc
xor edi, edi
mov dword [ebp - 0x30], edi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 2
mov dword [ebp - 0x28], ebx
push ebx
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [ebp - 0x48], esi
test esi, esi
je 0x417ff7
mov dword [ebp - 0x50], ebx
push 4
lea eax, [ebp - 0x50]
push eax
push 2
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push ebx
push 0x102
push ebx
push ebx
push dword [ebp - 0x1c]
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x417ff0
push 0x100000
call fcn.00448f65
mov esi, eax
mov dword [ebp - 0x4c], esi
push 0x100000
push ebx
push esi
call fcn.0044c180
add esp, 0x10
lea eax, [ebp - 0x28]
push eax
push 0x100000
push esi
push dword [ebp - 0x2c]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x417fd7
mov ebx, eax
mov dword [ebp - 0x38], ebx
lea esi, [eax + 1]
push esi
call fcn.00448f65
mov edi, eax
mov dword [ebp - 0x30], edi
push esi
push 0
push edi
call fcn.0044c180
push ebx
mov esi, dword [ebp - 0x4c]
push esi
push edi
call fcn.0044bc00
add esp, 0x1c
test esi, esi
je 0x417fe4
push esi
call fcn.00448f6e
add esp, 4
push dword [ebp - 0x2c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [ebp - 0x48]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 4], 1
jmp 0x418013
test edi, edi
je 0x4185de
mov esi, dword [ebp - 0x20]
mov ecx, esi
call fcn.00431200
mov dword [esi + 0x550], 1
push ebx
push edi
lea ecx, [esi + 0x53c]
call fcn.00424f80
push str.UpdateList
mov ebx, esi
lea ecx, [ebx + 0x540]
call fcn.00409b20
lea ecx, [esi + 0x53c]
call fcn.0042e810
push edi
call fcn.00448f6e
add esp, 4
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x548]
call fcn.00409ff0
mov ecx, eax
call fcn.0041e530
lea ecx, [ebp - 0x14]
call fcn.0040a030
mov ecx, eax
call fcn.0041e5b0
mov dword [ebp - 0x80], eax
xor edi, edi
mov dword [ebp - 0x24], edi
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [eax]
cmp edi, eax
jge 0x4185d1
lea eax, [ebp - 0x3c]
push eax
push edi
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040a030
mov ecx, eax
call fcn.0041e570
mov ecx, eax
call fcn.0040a010
mov ecx, eax
call fcn.0041e5e0
mov eax, dword [eax]
test eax, eax
je 0x4180d8
mov eax, dword [eax]
jmp 0x4180da
xor eax, eax
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403710
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x418134
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x41812d
test esi, esi
je 0x41812d
mov eax, dword [esi]
test eax, eax
je 0x41810b
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x418122
push eax
call fcn.00448f6e
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00448f57
add esp, 8
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x418141
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push str.SystemSet
lea eax, [ebp - 0x2c]
push eax
call fcn.00409f10
add esp, 8
test al, al
je 0x4184d3
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040a030
mov ecx, eax
call fcn.0041e570
mov ecx, eax
call fcn.0040a010
mov ecx, eax
call fcn.0041e530
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x41818d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x18]
call fcn.0040a030
mov ecx, eax
call fcn.0041e5b0
mov dword [ebp - 0x74], eax
xor edi, edi
mov dword [ebp - 0x70], edi
cmp edi, eax
jge 0x4184bd
lea eax, [ebp - 0x40]
push eax
push edi
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040a030
mov ecx, eax
call fcn.0041e570
mov ecx, eax
call fcn.0040a010
mov ecx, eax
call fcn.0041e5e0
mov eax, dword [eax]
test eax, eax
je 0x4181dc
mov eax, dword [eax]
jmp 0x4181de
xor eax, eax
push eax
lea ecx, [ebp - 0x28]
call fcn.00403710
mov esi, dword [ebp - 0x40]
test esi, esi
je 0x418238
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x418231
test esi, esi
je 0x418231
mov eax, dword [esi]
test eax, eax
je 0x41820f
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x418226
push eax
call fcn.00448f6e
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00448f57
add esp, 8
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x418245
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push str.HistoryTweakcube
lea ecx, [ebp - 0x28]
call fcn.0040ebb0
test eax, eax
jne 0x41830d
lea eax, [ebp - 0x44]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040a030
mov ecx, eax
call fcn.0041e570
mov ecx, eax
call fcn.0040a010
mov ecx, eax
call fcn.0041e650
mov eax, dword [eax]
test eax, eax
je 0x41828a
mov eax, dword [eax]
jmp 0x41828c
xor eax, eax
push eax
mov ecx, 0x4c1100
call fcn.00409b20
mov esi, dword [ebp - 0x44]
test esi, esi
je 0x4182e8
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4182e1
test esi, esi
je 0x4182e1
mov eax, dword [esi]
test eax, eax
je 0x4182bf
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4182d6
push eax
call fcn.00448f6e
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00448f57
add esp, 8
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x4184a9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x28]
call fcn.00409060
inc edi
mov dword [ebp - 0x70], edi
mov eax, dword [ebp - 0x74]
jmp 0x4181a4
push str.HistoryMagictray
lea ecx, [ebp - 0x28]
call fcn.0040ebb0
test eax, eax
jne 0x4183d5
lea eax, [ebp - 0x48]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040a030
mov ecx, eax
call fcn.0041e570
mov ecx, eax
call fcn.0040a010
mov ecx, eax
call fcn.0041e650
mov eax, dword [eax]
test eax, eax
je 0x418352
mov eax, dword [eax]
jmp 0x418354
xor eax, eax
push eax
mov ecx, 0x4c1104
call fcn.00409b20
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x4183b0
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4183a9
test esi, esi
je 0x4183a9
mov eax, dword [esi]
test eax, eax
je 0x418387
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x41839e
push eax
call fcn.00448f6e
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00448f57
add esp, 8
mov dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x4184a9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x28]
call fcn.00409060
inc edi
mov dword [ebp - 0x70], edi
mov eax, dword [ebp - 0x74]
jmp 0x4181a4
push str.UpgradeType
lea ecx, [ebp - 0x28]
call fcn.0040ebb0
test eax, eax
jne 0x4184a9
lea eax, [ebp - 0x4c]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040a030
mov ecx, eax
call fcn.0041e570
mov ecx, eax
call fcn.0040a010
mov ecx, eax
call fcn.0041e650
mov eax, dword [eax]
test eax, eax
je 0x41841a
mov eax, dword [eax]
jmp 0x41841c
xor eax, eax
push eax
lea ecx, [ebp - 0x50]
call fcn.00403710
mov esi, dword [ebp - 0x4c]
test esi, esi
je 0x418476
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x41846f
test esi, esi
je 0x41846f
mov eax, dword [esi]
test eax, eax
je 0x41844d
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x418464
push eax
call fcn.00448f6e
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00448f57
add esp, 8
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x418483
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x4a4ecc
lea eax, [ebp - 0x50]
push eax
call fcn.00409f10
add esp, 8
xor ecx, ecx
test al, al
sete cl
mov dword [0x4c110c], ecx
lea ecx, [ebp - 0x50]
call fcn.00409060
lea ecx, [ebp - 0x28]
call fcn.00409060
inc edi
mov dword [ebp - 0x70], edi
mov eax, dword [ebp - 0x74]
jmp 0x4181a4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4185ba
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4185ba
push 0x30
call fcn.00449604
add esp, 4
test eax, eax
je 0x4184ec
mov ecx, eax
call fcn.004088c0
mov edi, eax
jmp 0x4184ee
xor edi, edi
mov dword [ebp - 0x7c], edi
mov byte [edi + 0x24], 0
mov byte [edi + 0x29], 1
lea ecx, [ebp - 0x2c]
call fcn.00426380
push eax
mov ecx, edi
call fcn.00409a20
mov esi, dword [ebp - 0x20]
cmp byte [esi + 0x538], 0
jne 0x41856f
cmp byte [0x4c1110], 0
jne 0x41856f
push str.pcmaster.exe
lea eax, [esi + 0x594]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0040a190
add esp, 0xc
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
lea ecx, [ebp - 0x78]
call fcn.00409060
push edi
push ecx
mov eax, esp
lea ecx, [ebp - 0x14]
push dword [ebp - 0x24]
push eax
call fcn.0040a030
mov ecx, eax
call fcn.0041e570
test esi, esi
mov esi, dword [ebp - 0x20]
mov ecx, esi
je 0x418588
call fcn.00420940
jmp 0x41858d
push edi
push ecx
mov eax, esp
push dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040a030
mov ecx, eax
call fcn.0041e570
mov ecx, esi
call fcn.00421680
push 0x4a6030
mov ecx, edi
call fcn.0040ebb0
test eax, eax
jne 0x4185ac
lea eax, [edi + 0x10]
lea ecx, [esi + 0x5ac]
push eax
call fcn.00409a20
lea eax, [ebp - 0x7c]
push eax
mov ecx, 0x4c10b8
call fcn.004368a0
lea ecx, [ebp - 0x2c]
call fcn.00409060
mov edi, dword [ebp - 0x24]
inc edi
mov dword [ebp - 0x24], edi
mov eax, dword [ebp - 0x80]
jmp 0x4180a0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4185de
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x1c]
call fcn.00409060
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x4185fa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 0x20]
call fcn.004224a0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret