Function at 0x470368
Capabilities:
Check for time delay via gettickcount
Check http status code
Get http content length
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x246
push 0
push 0
dec ecx
jne 0x470371
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp - 8]
call fcn.00404f44
mov eax, dword [ebp + 0x24]
call fcn.00404f44
mov eax, dword [ebp + 0x20]
call fcn.00404f44
mov eax, dword [ebp + 0xc]
call fcn.00404f44
mov eax, dword [ebp + 8]
call fcn.00404f44
xor eax, eax
push ebp
push 0x470da8
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp + 0x14]
mov byte [eax], 0
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 8]
call fcn.00404b2c
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.0046ef68
lea ecx, [ebp - 0x11ac]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0046f694
mov edx, dword [ebp - 0x11ac]
lea eax, [ebp - 8]
call fcn.00404b2c
mov eax, dword [ebx + 0x94]
call fcn.0041ab50
dec eax
jle 0x470470
lea edx, [ebp - 0x11b4]
mov eax, dword [ebx + 0x34]
call fcn.00408eb0
push dword [ebp - 0x11b4]
push 0x470dc8
push dword [ebx + 0xfc]
push 0x470dc8
mov eax, dword [ebx + 0x94]
call fcn.00475324
lea edx, [ebp - 0x11b8]
call fcn.00408eb0
push dword [ebp - 0x11b8]
push 0x470dd4
lea eax, [ebp - 0x11b0]
mov edx, 6
call fcn.00404e14
mov edx, dword [ebp - 0x11b0]
mov eax, dword [ebx + 0x48]
call fcn.0044c614
jmp 0x47047a
xor edx, edx
mov eax, dword [ebx + 0x48]
call fcn.0044c614
cmp byte [ebx + 0x10d], 0
je 0x4704e9
push dword [ebx + 0x78]
push 0x470dc8
lea edx, [ebp - 0x11c0]
mov edi, dword [ebx + 0x48]
mov eax, edi
call fcn.0044c5e4
push dword [ebp - 0x11c0]
push dword [ebp - 0x14]
push 0x470dc8
push dword [ebx + 0x100]
push 0x470dc8
lea ecx, [ebp - 0x11c4]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0046f794
push dword [ebp - 0x11c4]
lea eax, [ebp - 0x11bc]
mov edx, 8
call fcn.00404e14
mov edx, dword [ebp - 0x11bc]
mov eax, edi
call fcn.0044c614
jmp 0x470527
push dword [ebx + 0x78]
push 0x470dc8
lea edx, [ebp - 0x11cc]
mov edi, dword [ebx + 0x48]
mov eax, edi
call fcn.0044c5e4
push dword [ebp - 0x11cc]
push dword [ebp - 0x14]
lea eax, [ebp - 0x11c8]
mov edx, 4
call fcn.00404e14
mov edx, dword [ebp - 0x11c8]
mov eax, edi
call fcn.0044c614
mov eax, dword [0x480798]
mov eax, dword [eax]
call fcn.0046bfc0
mov edi, 0x84000000
cmp byte [ebx + 0x138], 0
je 0x470547
or edi, 0x400000
cmp byte [ebp + 0x10], 1
jne 0x4705c2
cmp dword [ebp + 0xc], 0
je 0x470559
cmp dword [ebp + 8], 0
jne 0x4705c2
lea eax, [ebp - 0x44]
mov edx, dword [ebp + 0xc]
call fcn.00404b2c
lea eax, [ebp - 0x48]
mov edx, dword [ebp + 8]
call fcn.00404b2c
lea edx, [ebp - 0x11d4]
mov eax, dword [ebp - 8]
call fcn.00470264
mov ecx, dword [ebp - 0x11d4]
lea eax, [ebp - 0x11d0]
mov edx, 0x470de0
call fcn.00404da0
mov eax, dword [ebp - 0x11d0]
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x44]
call fcn.0046db3c
test al, al
je 0x470d08
lea eax, [ebp + 0xc]
mov edx, dword [ebp - 0x44]
call fcn.00404b2c
lea eax, [ebp + 8]
mov edx, dword [ebp - 0x48]
call fcn.00404b2c
cmp dword [ebp + 0xc], 0
jne 0x4705ce
cmp dword [ebp + 8], 0
je 0x470619
push 0x470df4
push dword [ebp + 0xc]
push 0x470e14
push dword [ebp + 8]
lea eax, [ebp - 0x11dc]
mov edx, 3
call fcn.00404e14
mov eax, dword [ebp - 0x11dc]
lea edx, [ebp - 0x11d8]
call fcn.0046d7ec
push dword [ebp - 0x11d8]
push 0x470e20
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.00404e14
jmp 0x470621
lea eax, [ebp - 0x4c]
call fcn.00404a94
push 0
push edi
mov eax, dword [ebp - 0x4c]
call fcn.00404d54
push eax
mov eax, dword [ebp - 0x4c]
call fcn.00404f54
push eax
mov eax, dword [ebp - 8]
call fcn.00404f54
push eax
mov eax, dword [ebx + 0x98]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 4
xor eax, eax
mov dword [ebp - 0x2c], eax
mov eax, dword [0x480798]
mov eax, dword [eax]
call fcn.0046bfc0
cmp dword [ebp - 0x24], 0
je 0x470792
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
push 0x20000013
mov eax, dword [ebp - 0x24]
push eax
call sub.wininet.dll_HttpQueryInfoA
cmp dword [ebp - 0x30], 0x191
jne 0x470712
mov al, byte [ebp + 0x10]
dec eax
sub al, 2
jae 0x470712
lea eax, [ebp - 0x44]
mov edx, dword [ebp + 0xc]
call fcn.00404b2c
lea eax, [ebp - 0x48]
mov edx, dword [ebp + 8]
call fcn.00404b2c
lea edx, [ebp - 0x11e4]
mov eax, dword [ebp - 8]
call fcn.00470264
mov ecx, dword [ebp - 0x11e4]
lea eax, [ebp - 0x11e0]
mov edx, 0x470de0
call fcn.00404da0
mov eax, dword [ebp - 0x11e0]
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x44]
call fcn.0046db3c
test al, al
je 0x470d08
lea eax, [ebp + 0xc]
mov edx, dword [ebp - 0x44]
call fcn.00404b2c
lea eax, [ebp + 8]
mov edx, dword [ebp - 0x48]
call fcn.00404b2c
mov eax, dword [ebp - 0x24]
push eax
call sub.wininet.dll_InternetCloseHandle
jmp 0x4705c2
cmp dword [ebp - 0x30], 0x12c
jb 0x470792
mov eax, dword [ebp - 0x24]
push eax
call sub.wininet.dll_InternetCloseHandle
cmp word [ebx + 0xa2], 0
je 0x47073f
mov ecx, dword [ebp - 0x30]
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
cmp word [ebx + 0xaa], 0
je 0x470d08
mov eax, dword [ebp - 0x30]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x11ec]
call fcn.00408f9c
mov ecx, dword [ebp - 0x11ec]
lea eax, [ebp - 0x11e8]
mov edx, 0x470e30
call fcn.00404da0
mov eax, dword [ebp - 0x11e8]
push eax
mov ecx, dword [ebp - 0x30]
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
jmp 0x470d08
cmp dword [ebp - 0x24], 0
jne 0x4707bc
cmp word [ebx + 0xd2], 0
je 0x470d08
mov ecx, dword [ebp - 8]
mov edx, ebx
mov eax, dword [ebx + 0xd4]
call dword [ebx + 0xd0]
jmp 0x470d08
cmp byte [ebp + 0x1c], 0
jne 0x4707d0
cmp word [ebx + 0x142], 0
je 0x4708ad
mov dword [ebp - 0x28], 0x10
xor eax, eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x11a8]
push eax
push 0x4000000b
mov eax, dword [ebp - 0x24]
push eax
call sub.wininet.dll_HttpQueryInfoA
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x11a8]
call fcn.0046eefc
cmp word [ebx + 0x142], 0
je 0x47084f
mov byte [ebp - 0x31], 1
mov eax, dword [ebp - 0x40]
mov dword [esi], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi + 4], eax
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
lea eax, [ebp - 0x31]
push eax
mov ecx, dword [ebp - 4]
mov edx, ebx
mov eax, dword [ebx + 0x144]
call dword [ebx + 0x140]
cmp byte [ebp - 0x31], 0
jne 0x4708a2
mov eax, dword [ebp - 0x24]
push eax
call sub.wininet.dll_InternetCloseHandle
jmp 0x470d08
fld qword [ebp - 0x40]
fcomp qword [esi]
fnstsw ax
sahf
ja 0x4708a2
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
mov eax, dword [ebp - 0x40]
mov dword [esi], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x24]
push eax
call sub.wininet.dll_InternetCloseHandle
cmp word [ebx + 0x122], 0
je 0x470d08
push dword [esi + 4]
push dword [esi]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
mov ecx, dword [ebp - 0x14]
mov edx, ebx
mov eax, dword [ebx + 0x124]
call dword [ebx + 0x120]
jmp 0x470d08
mov eax, dword [ebp - 0x40]
mov dword [esi], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi + 4], eax
cmp dword [ebp + 0x20], 0
je 0x4708c0
lea eax, [ebp - 0x14]
mov edx, dword [ebp + 0x20]
call fcn.00404b2c
jmp 0x4708cb
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.0046ef68
lea ecx, [ebp - 0x11f0]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x24]
call fcn.0046f45c
mov edx, dword [ebp - 0x11f0]
lea eax, [ebp - 0x14]
call fcn.00404b2c
lea eax, [ebx + 0x68]
mov edx, dword [ebp - 0x14]
call fcn.00404ae8
lea eax, [ebx + 0x6c]
mov edx, dword [ebp + 0x24]
call fcn.00404ae8
mov eax, dword [ebp - 0x14]
call fcn.004093c4
test al, al
je 0x470943
mov byte [ebp - 0x31], 1
cmp word [ebx + 0xe2], 0
je 0x47092f
lea eax, [ebp - 0x31]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, ebx
mov eax, dword [ebx + 0xe4]
call dword [ebx + 0xe0]
cmp byte [ebp - 0x31], 0
jne 0x470943
mov eax, dword [ebp - 0x24]
push eax
call sub.wininet.dll_InternetCloseHandle
jmp 0x470d08
lea edx, [ebp - 0x11f4]
mov eax, dword [ebp - 0x14]
call fcn.00409594
mov eax, dword [ebp - 0x11f4]
call fcn.0046f530
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x1198]
call fcn.004031bc
mov edx, 1
lea eax, [ebp - 0x1198]
call fcn.0040364c
call fcn.00402ccc
test eax, eax
je 0x4709e9
mov eax, dword [ebp - 0x24]
push eax
call sub.wininet.dll_InternetCloseHandle
cmp word [ebx + 0xa2], 0
je 0x4709a9
mov ecx, 3
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
cmp word [ebx + 0xaa], 0
je 0x470d08
lea eax, [ebp - 0x11f8]
mov ecx, dword [ebp - 0x14]
mov edx, 0x470e54
call fcn.00404da0
mov eax, dword [ebp - 0x11f8]
push eax
mov ecx, 3
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
jmp 0x470d08
mov dword [ebp - 0x10], 0x1000
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 4
xor eax, eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
push 0x20000005
mov eax, dword [ebp - 0x24]
push eax
call sub.wininet.dll_HttpQueryInfoA
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call sub.kernel32.dll_GetTickCount
mov esi, eax
mov dword [ebp - 0x10], 0x1000
jmp 0x470cd1
mov eax, dword [0x480798]
mov eax, dword [eax]
call fcn.0046bfc0
lea eax, [ebp - 0x10]
push eax
push 0x1000
lea eax, [ebp - 0x104c]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x470ce1
cmp dword [ebp - 0x10], 0
jbe 0x470a93
cmp dword [ebp - 0x10], 0x1000
ja 0x470a93
push 0
lea edx, [ebp - 0x104c]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1198]
call fcn.00403334
call fcn.00402c4c
mov eax, dword [ebp - 0x10]
xor edx, edx
add eax, dword [ebp - 0x20]
adc edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x30], 0
jbe 0x470b5a
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov eax, 0x64
xor edx, edx
call fcn.004058c0
mov dword [ebp - 0x1200], eax
mov dword [ebp - 0x11fc], edx
fild qword [ebp - 0x1200]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1208], eax
xor eax, eax
mov dword [ebp - 0x1204], eax
fild qword [ebp - 0x1208]
fdivp st(1)
call fcn.00402f18
mov edx, eax
mov eax, dword [ebx + 0x44]
call fcn.00438f04
push dword [ebx + 0x7c]
push 0x470dc8
lea edx, [ebp - 0x1210]
mov eax, dword [ebp - 0x20]
call fcn.0046f02c
push dword [ebp - 0x1210]
push 0x470dc8
push dword [ebx + 0xfc]
push 0x470dc8
lea edx, [ebp - 0x1214]
mov eax, dword [ebp - 0x30]
call fcn.0046f02c
push dword [ebp - 0x1214]
lea eax, [ebp - 0x120c]
mov edx, 7
call fcn.00404e14
mov edx, dword [ebp - 0x120c]
mov eax, dword [ebx + 0x4c]
call fcn.0044c614
jmp 0x470b94
push dword [ebx + 0x7c]
push 0x470dc8
lea edx, [ebp - 0x121c]
mov eax, dword [ebp - 0x20]
call fcn.0046f02c
push dword [ebp - 0x121c]
lea eax, [ebp - 0x1218]
mov edx, 3
call fcn.00404e14
mov edx, dword [ebp - 0x1218]
mov eax, dword [ebx + 0x4c]
call fcn.0044c614
cmp word [ebx + 0xea], 0
je 0x470bb7
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebx + 0x34]
mov edx, ebx
mov eax, dword [ebx + 0xec]
call dword [ebx + 0xe8]
cmp byte [ebx + 0x10c], 0
je 0x470c0d
push dword [ebx + 0x114]
push 0x470dd4
mov eax, dword [ebx + 0x44]
call fcn.00438d54
lea edx, [ebp - 0x1224]
call fcn.00408eb0
push dword [ebp - 0x1224]
push 0x470e70
push dword [ebx + 0x110]
lea eax, [ebp - 0x1220]
mov edx, 5
call fcn.00404e14
mov edx, dword [ebp - 0x1220]
mov eax, dword [ebx + 0x3c]
call fcn.0044c614
push dword [ebx + 0x80]
push 0x470dc8
call sub.kernel32.dll_GetTickCount
sub eax, esi
inc eax
mov dword [ebp - 0x1200], eax
xor eax, eax
mov dword [ebp - 0x11fc], eax
fild qword [ebp - 0x1200]
fild qword [ebp - 0x20]
fdivrp st(1)
fmul dword [0x470e74]
call fcn.00402f18
lea edx, [ebp - 0x122c]
call fcn.0046f180
push dword [ebp - 0x122c]
lea eax, [ebp - 0x1228]
mov edx, 3
call fcn.00404e14
mov edx, dword [ebp - 0x1228]
mov eax, dword [ebx + 0x50]
call fcn.0044c614
push dword [ebx + 0x84]
push 0x470dc8
lea eax, [ebp - 0x1234]
push eax
call sub.kernel32.dll_GetTickCount
sub eax, esi
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x20]
call fcn.0046f2d4
push dword [ebp - 0x1234]
lea eax, [ebp - 0x1230]
mov edx, 3
call fcn.00404e14
mov edx, dword [ebp - 0x1230]
mov eax, dword [ebx + 0x54]
call fcn.0044c614
mov eax, dword [0x480798]
mov eax, dword [eax]
call fcn.0046bfc0
cmp dword [ebp - 0x10], 0
jbe 0x470cd1
mov byte [ebp - 9], 1
cmp dword [ebp - 0x10], 0
jbe 0x470ce1
cmp byte [ebx + 0x38], 0
je 0x470a3c
lea eax, [ebp - 0x1198]
call fcn.00403354
call fcn.00402c4c
cmp byte [ebx + 0x38], 0
je 0x470cff
mov eax, dword [ebp - 0x14]
call fcn.004094f4
mov eax, dword [ebp - 0x24]
push eax
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470db2
lea eax, [ebp - 0x1234]
mov edx, 0xb
call fcn.00404ab8
lea eax, [ebp - 0x11f8]
mov edx, 0xb
call fcn.00404ab8
lea eax, [ebp - 0x11cc]
call fcn.00404a94
lea eax, [ebp - 0x11c8]
mov edx, 2
call fcn.00404ab8
lea eax, [ebp - 0x11c0]
call fcn.00404a94
lea eax, [ebp - 0x11bc]
mov edx, 5
call fcn.00404ab8
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.00404ab8
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404ab8
lea eax, [ebp - 8]
call fcn.00404a94
lea eax, [ebp + 8]
mov edx, 2
call fcn.00404ab8
lea eax, [ebp + 0x20]
mov edx, 2
call fcn.00404ab8
ret