Function at 0x412400
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 0x4a0180
mov eax, dword fs:[0]
push eax
sub esp, 0x78
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 - 0x2c], ebx
mov dword [ebp - 0x30], 1
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 4], 0
mov dword [ebp - 0x50], 0
push 0x17
push 0
push str.MSXML2.XMLHTTP
lea ecx, [ebp - 0x50]
call fcn.0040fcb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00407480
cmp byte [ebx + 0x538], 0
jne 0x4124bb
cmp byte [0x4c1110], 0
jne 0x4124bb
push str.pcmaster.exe
lea eax, [ebx + 0x594]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0040a190
add esp, 0xc
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
lea ecx, [ebp - 0x48]
call fcn.00409060
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x18]
test esi, esi
je 0x4124c5
push str.http:__dat.ruanmei.com_pcmaster_history.xml_a_d
jmp 0x4124ca
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x18]
push 0x4a6208
push eax
call fcn.0041ad10
add esp, 0xc
xor edi, edi
mov dword [ebp - 0x24], edi
xor ebx, ebx
mov dword [ebp - 0x34], 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 - 0x40], esi
test esi, esi
je 0x4125aa
mov dword [ebp - 0x48], ebx
push 4
lea eax, [ebp - 0x48]
push eax
push 2
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push ebx
push 0x102
push ebx
push ebx
push dword [ebp - 0x18]
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4125a3
push 0x100000
call fcn.00448f65
mov esi, eax
mov dword [ebp - 0x44], 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 - 0x20]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x41258a
mov ebx, eax
mov dword [ebp - 0x34], ebx
lea esi, [eax + 1]
push esi
call fcn.00448f65
mov edi, eax
mov dword [ebp - 0x24], edi
push esi
push 0
push edi
call fcn.0044c180
push ebx
mov esi, dword [ebp - 0x44]
push esi
push edi
call fcn.0044bc00
add esp, 0x1c
test esi, esi
je 0x412597
push esi
call fcn.00448f6e
add esp, 4
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [ebp - 0x40]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 4], 1
jmp 0x4125c6
test edi, edi
je 0x412cb1
mov esi, dword [ebp - 0x2c]
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 - 0x24], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebx + 0x548]
call fcn.00409ff0
mov ecx, eax
call fcn.0041e530
lea ecx, [ebp - 0x20]
call fcn.0040a030
mov ecx, eax
call fcn.0041e5b0
mov dword [ebp - 0x68], eax
xor ebx, ebx
mov dword [ebp - 0x4c], ebx
nop dword [eax]
cmp ebx, eax
jge 0x412a53
lea ecx, [ebp - 0x84]
call fcn.00408b10
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x20]
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 0x412693
mov eax, dword [eax]
jmp 0x412695
xor eax, eax
push eax
lea ecx, [ebp - 0x48]
call fcn.00403710
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x4126f3
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4126ec
test esi, esi
je 0x4126ec
mov eax, dword [esi]
test eax, eax
je 0x4126ca
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4126e1
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 - 0x38], 0
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x412700
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x20]
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 - 0x58]
test eax, eax
je 0x412733
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x1c]
call fcn.0040a030
mov ecx, eax
call fcn.0041e5b0
mov ebx, eax
lea ecx, [ebp - 0x28]
call fcn.00407480
xor edi, edi
mov dword [ebp - 0x64], edi
cmp edi, ebx
jge 0x4128b6
lea eax, [ebp - 0x3c]
push eax
push edi
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x1c]
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 0x412789
mov eax, dword [eax]
jmp 0x41278b
xor eax, eax
push eax
lea ecx, [ebp - 0x44]
call fcn.00403710
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x4127e9
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4127e2
test esi, esi
je 0x4127e2
mov eax, dword [esi]
test eax, eax
je 0x4127c0
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4127d7
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 - 0x5c]
test eax, eax
je 0x4127f6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push str.hHDFI34uy8i_:ojfsa__g_59pA__Yr
lea ecx, [ebp - 0x44]
call fcn.0040ebb0
test eax, eax
jne 0x4128a8
lea eax, [ebp - 0x40]
push eax
push edi
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x1c]
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 0x41283b
mov eax, dword [eax]
jmp 0x41283d
xor eax, eax
push eax
lea ecx, [ebp - 0x28]
call fcn.00409b20
mov esi, dword [ebp - 0x40]
test esi, esi
je 0x41289b
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x412894
test esi, esi
je 0x412894
mov eax, dword [esi]
test eax, eax
je 0x412872
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x412889
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 0x4128a8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x44]
call fcn.00409060
inc edi
jmp 0x41274e
mov eax, dword [ebp - 0x48]
lea esi, [eax - 0x10]
mov edi, dword [ebp - 0x84]
add edi, 0xfffffff0
cmp esi, edi
je 0x412967
cmp dword [edi + 0xc], 0
jl 0x412958
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x412958
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edx, eax
lea ecx, [esi + 0xc]
cmp dword [ecx], 0
jl 0x4128f7
cmp edx, dword [esi]
jne 0x4128f7
mov ebx, esi
lock inc dword [ecx]
jmp 0x412936
mov eax, dword [edx]
push 2
push dword [esi + 4]
mov ecx, edx
call dword [eax]
mov ebx, eax
test ebx, ebx
jne 0x41290d
call fcn.004026d0
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov ecx, dword [esi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.00437560
add esp, 0x10
or eax, 0xffffffff
lea ecx, [edi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41294d
mov ecx, dword [edi]
mov eax, dword [ecx]
push edi
call dword [eax + 4]
lea eax, [ebx + 0x10]
mov dword [ebp - 0x84], eax
jmp 0x412967
push dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x84]
call fcn.00402620
mov eax, dword [ebp - 0x28]
lea esi, [eax - 0x10]
mov edi, dword [ebp - 0x80]
add edi, 0xfffffff0
cmp esi, edi
je 0x412a0b
cmp dword [edi + 0xc], 0
jl 0x4129ff
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x4129ff
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edx, eax
lea ecx, [esi + 0xc]
cmp dword [ecx], 0
jl 0x4129a1
cmp edx, dword [esi]
jne 0x4129a1
mov ebx, esi
lock inc dword [ecx]
jmp 0x4129e0
mov eax, dword [edx]
push 2
push dword [esi + 4]
mov ecx, edx
call dword [eax]
mov ebx, eax
test ebx, ebx
jne 0x4129b7
call fcn.004026d0
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov ecx, dword [esi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.00437560
add esp, 0x10
or eax, 0xffffffff
lea ecx, [edi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4129f7
mov ecx, dword [edi]
mov eax, dword [ecx]
push edi
call dword [eax + 4]
lea eax, [ebx + 0x10]
mov dword [ebp - 0x80], eax
jmp 0x412a0b
push dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x80]
call fcn.00402620
lea eax, [ebp - 0x84]
push eax
mov ecx, 0x4c10ac
call fcn.00436b70
lea ecx, [ebp - 0x28]
call fcn.00409060
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x412a31
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x48]
call fcn.00409060
lea ecx, [ebp - 0x84]
call fcn.00409910
mov ebx, dword [ebp - 0x4c]
inc ebx
mov dword [ebp - 0x4c], ebx
mov eax, dword [ebp - 0x68]
jmp 0x412650
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [0x4c10bc]
mov ecx, dword [0x4c10b8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jae 0x412ca4
push dword [ecx + ebx*4]
lea ecx, [ebp - 0x48]
call fcn.004073e0
xor esi, esi
mov dword [ebp - 0x6c], esi
mov ecx, dword [0x4c10b0]
mov edi, dword [0x4c10ac]
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jae 0x412c8a
lea ebx, [esi + esi*2]
shl ebx, 3
mov dword [ebp - 0x28], ebx
push dword [ebx + edi]
lea ecx, [ebp - 0x48]
call fcn.0040ebb0
test eax, eax
jne 0x412c98
mov eax, dword [0x4c10b8]
mov edx, dword [ebp - 0x14]
mov eax, dword [eax + edx*4]
mov ecx, dword [eax + 0x2c]
mov eax, dword [0x4c10ac]
mov dword [ebx + eax + 0x10], ecx
mov eax, dword [0x4c10b8]
mov eax, dword [eax + edx*4]
mov cl, byte [eax + 0x24]
mov eax, dword [0x4c10ac]
mov byte [ebx + eax + 0x14], cl
mov eax, dword [0x4c10b8]
mov ecx, dword [eax + edx*4]
mov eax, dword [0x4c10ac]
add eax, 8
add eax, ebx
mov dword [ebp - 0x60], eax
mov ebx, dword [ecx + 4]
lea esi, [ebx - 0x10]
mov edi, dword [eax]
sub edi, 0x10
cmp esi, edi
je 0x412baf
cmp dword [edi + 0xc], 0
jl 0x412ba1
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x412ba1
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edx, eax
lea ecx, [esi + 0xc]
cmp dword [ecx], 0
jl 0x412b3e
cmp edx, dword [esi]
jne 0x412b3e
lock inc dword [ecx]
jmp 0x412b80
lea ecx, [esi + 4]
mov dword [ebp - 0x68], ecx
mov eax, dword [edx]
push 2
push dword [ecx]
mov ecx, edx
call dword [eax]
mov esi, eax
test esi, esi
jne 0x412b59
call fcn.004026d0
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx]
mov dword [esi + 4], eax
mov ecx, dword [ecx]
lea eax, [ecx*2 + 2]
push eax
push ebx
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
call fcn.00437560
add esp, 0x10
or eax, 0xffffffff
lea ecx, [edi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x412b97
mov ecx, dword [edi]
mov eax, dword [ecx]
push edi
call dword [eax + 4]
lea eax, [esi + 0x10]
mov ecx, dword [ebp - 0x60]
mov dword [ecx], eax
jmp 0x412bac
push dword [ebx - 0xc]
push ebx
mov ecx, eax
call fcn.00402620
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4c10b8]
mov ecx, dword [eax + edx*4]
mov eax, dword [0x4c10ac]
mov edx, dword [ebp - 0x28]
add eax, 0xc
add eax, edx
mov dword [ebp - 0x60], eax
mov ebx, dword [ecx + 0x10]
lea esi, [ebx - 0x10]
mov edi, dword [eax]
sub edi, 0x10
cmp esi, edi
je 0x412c73
cmp dword [edi + 0xc], 0
jl 0x412c65
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x412c65
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edx, eax
lea ecx, [esi + 0xc]
cmp dword [ecx], 0
jl 0x412c02
cmp edx, dword [esi]
jne 0x412c02
lock inc dword [ecx]
jmp 0x412c44
lea ecx, [esi + 4]
mov dword [ebp - 0x68], ecx
mov eax, dword [edx]
push 2
push dword [ecx]
mov ecx, edx
call dword [eax]
mov esi, eax
test esi, esi
jne 0x412c1d
call fcn.004026d0
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx]
mov dword [esi + 4], eax
mov ecx, dword [ecx]
lea eax, [ecx*2 + 2]
push eax
push ebx
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
call fcn.00437560
add esp, 0x10
or eax, 0xffffffff
lea ecx, [edi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x412c5b
mov ecx, dword [edi]
mov eax, dword [ecx]
push edi
call dword [eax + 4]
lea eax, [esi + 0x10]
mov ecx, dword [ebp - 0x60]
mov dword [ecx], eax
jmp 0x412c70
push dword [ebx - 0xc]
push ebx
mov ecx, eax
call fcn.00402620
mov edx, dword [ebp - 0x28]
mov eax, dword [0x4c10b8]
mov ebx, dword [ebp - 0x14]
mov eax, dword [eax + ebx*4]
mov cl, byte [eax + 0x25]
mov eax, dword [0x4c10ac]
mov byte [edx + eax + 0x15], cl
lea ecx, [ebp - 0x48]
call fcn.00409060
inc ebx
jmp 0x412a55
inc esi
mov dword [ebp - 0x6c], esi
mov ebx, dword [ebp - 0x14]
jmp 0x412a80
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x412cb1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x18]
call fcn.00409060
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x412ccd
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 - 0x2c]
call fcn.004224a0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret