Function at 0x423854
Capabilities:
Check for time delay via gettickcount
Check internet connectivity via wininet
Create http request
Get http content length
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x44], esp
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
nop
nop
nop
nop
cmp dword [ebp - 0x44], esp
je 0x4238f5
push 6
call fcn.0043fb89
add esp, 4
push 0
mov ebx, 0x308
call sub.KERNEL32.dll_GetTickCount
add esp, 4
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.00441470
add esp, 0x10
mov dword [ebp - 0x48], eax
push dword [ebp - 0x48]
push str.Agent
mov ecx, 2
call fcn.00402ed8
add esp, 8
mov dword [ebp - 0x4c], eax
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x42394c
push ebx
call fcn.0043fb83
add esp, 4
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x423960
push ebx
call fcn.0043fb83
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc4
call fcn.004401f0
add esp, 0x1c
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x4239d7
mov dword [ebp - 0x44], esp
push 0
push 0x478de2
push 0x478de2
push 4
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetOpenA]
nop
nop
nop
nop
cmp dword [ebp - 0x44], esp
je 0x4239cf
push 6
call fcn.0043fb89
add esp, 4
mov dword [ebp - 0xc], eax
jmp 0x423a10
mov dword [ebp - 0x44], esp
push 0
push 0x478de2
push 0x478de2
push 0
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetOpenA]
nop
nop
nop
nop
cmp dword [ebp - 0x44], esp
je 0x423a0d
push 6
call fcn.0043fb89
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x423a29
mov eax, str.Internetl
jmp 0x42413c
push str.Accept:___r_n
push dword [ebp - 0x10]
mov ecx, 2
call fcn.00402ed8
add esp, 8
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x423a55
push ebx
call fcn.0043fb83
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push str.Accept_Language:_zh_cn_r_n
push dword [ebp - 0x10]
mov ecx, 2
call fcn.00402ed8
add esp, 8
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x423a85
push ebx
call fcn.0043fb83
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push str.Accept_Encoding:_gzip__deflate_r_n
push dword [ebp - 0x10]
mov ecx, 2
call fcn.00402ed8
add esp, 8
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x423ab5
push ebx
call fcn.0043fb83
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push str.User_Agent:_Mozilla_4.0_compatible__MSIE_6.0__Windows_NT_5.0__MyIE2__.NET_CLR_1.1.4322__r_n
push dword [ebp - 0x10]
mov ecx, 2
call fcn.00402ed8
add esp, 8
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x423ae5
push ebx
call fcn.0043fb83
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x10], 0
mov eax, 0
sete al
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 1
jne 0x423b66
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
push dword [ebp + 8]
call fcn.00424184
mov dword [ebp - 0x48], eax
push 0x7437ab
push dword [ebp - 0x48]
push str.Referer:_http:__
push dword [ebp - 0x10]
mov ecx, 4
call fcn.00402ed8
add esp, 0x10
mov dword [ebp - 0x4c], eax
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x423b49
push ebx
call fcn.0043fb83
add esp, 4
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x423b5d
push ebx
call fcn.0043fb83
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
jmp 0x423ba0
push 0x7437ab
mov ebx, dword [ebp + 0xc]
push dword [ebx]
push str.Referer:
push dword [ebp - 0x10]
mov ecx, 4
call fcn.00402ed8
add esp, 0x10
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x423b9c
push ebx
call fcn.0043fb83
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x34], 0
mov eax, 0
sete al
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x423c20
push 0x80000301
push 0
push dword [ebp + 0x30]
push 1
mov ebx, 0x168
call fcn.00441470
add esp, 0x10
mov dword [ebp - 0x44], eax
push 0x78979e
push dword [ebp - 0x44]
push str._r_nRange:_bytes
push dword [ebp - 0x10]
mov ecx, 4
call fcn.00402ed8
add esp, 0x10
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x423c08
push ebx
call fcn.0043fb83
add esp, 4
mov eax, dword [ebp - 0x48]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x423c1c
push ebx
call fcn.0043fb83
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push 0x80000004
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x423c33
mov eax, 0x478de2
push eax
push 1
mov ebx, 0x130
call fcn.00441880
add esp, 0x10
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], esp
push 0
push 0x84000100
push dword [ebp - 0x44]
push dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
nop
nop
nop
nop
cmp dword [ebp - 0x48], esp
je 0x423c80
push 6
call fcn.0043fb89
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x423cbe
mov dword [ebp - 0x44], esp
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x44], esp
je 0x423caf
push 6
call fcn.0043fb89
add esp, 4
mov eax, 0x7897b0
jmp 0x42413c
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 4
mov eax, dword [ebp + 0x30]
cdq
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
cmp dword [0x78a48f], 0
jne 0x423d14
mov dword [ebp - 0x44], esp
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x44], esp
je 0x423d05
push 6
call fcn.0043fb89
add esp, 4
mov eax, 0x7897bf
jmp 0x42413c
push 0x80000301
push 0
push 0x400
push 1
mov ebx, 0x184
call fcn.00444860
add esp, 0x10
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x423d49
push ebx
call fcn.0043fb83
add esp, 4
pop eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x44], esp
push 0
mov eax, 0x400
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x28]
push 0x16
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
nop
nop
nop
nop
cmp dword [ebp - 0x44], esp
je 0x423d88
push 6
call fcn.0043fb89
add esp, 4
push 0x80000002
push 0
push 0
push 0
push 0
push 0
push 0x80000004
push 0
push str.HTTP_1.1_404
push 0x80000004
push 0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x423db9
mov eax, 0x478de2
push eax
push 4
mov ebx, 0x148
call fcn.004402c0
add esp, 0x34
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jle 0x423e21
mov dword [ebp - 0x44], esp
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x44], esp
je 0x423dfb
push 6
call fcn.0043fb89
add esp, 4
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x423e17
push eax
mov ebx, eax
call fcn.0040162e
inc eax
push eax
call fcn.0043fb7d
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x42413c
push 0x80000002
push 0
push 0
push 0
push 0
push 0
push 0x80000004
push 0
push str.HTTP_1.1_206
push 0x80000004
push 0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x423e52
mov eax, 0x478de2
push eax
push 4
mov ebx, 0x148
call fcn.004402c0
add esp, 0x34
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jle 0x423e72
mov dword [ebp - 0x44], esp
mov eax, 0
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x20000005
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
nop
nop
nop
nop
cmp dword [ebp - 0x44], esp
je 0x423ead
push 6
call fcn.0043fb89
add esp, 4
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x423ec6
mov dword [ebp - 0x18], 0
jmp 0x423ec6
push 0
mov ebx, 0x308
call sub.KERNEL32.dll_GetTickCount
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0xa
cmp dword [ebp + 0x24], 0
jne 0x423ef9
mov eax, dword [ebp - 0x18]
mov dword [ebp + 0x20], eax
fild dword [ebp - 0x18]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fild qword [ebp - 0x24]
fstp qword [ebp - 0x50]
fadd qword [ebp - 0x50]
fstp qword [ebp - 0x58]
fld qword [ebp - 0x58]
call fcn.004011c3
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0x1c], 0
jne 0x423f2a
mov dword [ebp + 0x18], 0x2800
push 0x80000301
push 0
push dword [ebp + 0x18]
push 1
mov ebx, 0x1bc
call fcn.00441e80
add esp, 0x10
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x423f5d
push ebx
call fcn.0043fb83
add esp, 4
pop eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], esp
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 0x18]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x423f75
add eax, 8
push eax
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetReadFile]
nop
nop
nop
nop
cmp dword [ebp - 0x44], esp
je 0x423f95
push 6
call fcn.0043fb89
add esp, 4
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x423fd3
mov dword [ebp - 0x44], esp
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x44], esp
je 0x423fc4
push 6
call fcn.0043fb89
add esp, 4
mov eax, 0x7897ed
jmp 0x42413c
cmp dword [ebp - 0x40], 0
jne 0x423fdd
cmp dword [ebp - 0x3c], 0
jne 0x423fed
jmp 0x424110
push 0x80000301
push 0
push dword [ebp - 0x40]
push 0x80000005
push 0
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x42400a
mov eax, 0x4788ac
push eax
push 2
mov ebx, 0x1a0
call fcn.00443c70
add esp, 0x1c
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x424034
push ebx
call fcn.0043fb83
add esp, 4
pop eax
mov dword [ebp - 0x38], eax
push 0x80000005
push 0
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x42404b
mov eax, 0x4788ac
push eax
push 0x80000301
push 0
push dword [0x78a48f]
push 2
mov ebx, 0x298
call fcn.00444e50
add esp, 0x1c
fild qword [ebp - 0x24]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fild qword [ebp - 0x40]
fstp qword [ebp - 0x50]
fadd qword [ebp - 0x50]
fstp qword [ebp - 0x58]
fld qword [ebp - 0x58]
call fcn.004011c3
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
push 0
mov ebx, 0x308
call sub.KERNEL32.dll_GetTickCount
add esp, 4
mov dword [ebp - 0x30], eax
fild dword [ebp - 0x30]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fild dword [ebp - 0x2c]
fstp qword [ebp - 0x50]
fsub qword [ebp - 0x50]
fstp qword [ebp - 0x58]
fld qword [ebp - 0x58]
call fcn.004011c3
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x4240d4
mov dword [ebp - 0x34], 0xa
fild qword [ebp - 0x24]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fild dword [ebp + 0x30]
fstp qword [ebp - 0x50]
fsub qword [ebp - 0x50]
fstp qword [ebp - 0x58]
fild dword [ebp + 0x20]
fstp qword [ebp - 0x60]
fld qword [ebp - 0x58]
fsub qword [ebp - 0x60]
fcomp qword [0x7897f9]
fnstsw ax
test ah, 1
jne 0x42410b
jmp 0x424110
jmp 0x423f61
mov dword [ebp - 0x44], esp
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x44], esp
je 0x424132
push 6
call fcn.0043fb89
add esp, 4
mov eax, 0x789801
jmp 0x42413c
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x42414d
push ebx
call fcn.0043fb83
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x42415d
push ebx
call fcn.0043fb83
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x42416d
push ebx
call fcn.0043fb83
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x42417d
push ebx
call fcn.0043fb83
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x30