Function at 0x465c74
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, 0x247
push 0
push 0
dec ecx
jne 0x465c7d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004053c4
mov eax, dword [ebp + 0x28]
call fcn.004053c4
mov eax, dword [ebp + 0x24]
call fcn.004053c4
mov eax, dword [ebp + 0x20]
call fcn.004053c4
mov eax, dword [ebp + 0xc]
call fcn.004053c4
mov eax, dword [ebp + 8]
call fcn.004053c4
xor eax, eax
push ebp
push 0x46678b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x1d], 0
mov eax, dword [ebp + 0x14]
mov byte [eax], 0
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00404fdc
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00464668
lea ecx, [ebp - 0x11b0]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00464d98
mov edx, dword [ebp - 0x11b0]
lea eax, [ebp - 4]
call fcn.00404fdc
mov eax, dword [ebx + 0xa0]
call fcn.00416484
dec eax
jle 0x465d80
lea edx, [ebp - 0x11b8]
mov eax, dword [ebx + 0x34]
call fcn.00409140
push dword [ebp - 0x11b8]
push 0x4667ac
push dword [ebx + 0x10c]
push 0x4667ac
mov eax, dword [ebx + 0xa0]
call fcn.0046be38
lea edx, [ebp - 0x11bc]
call fcn.00409140
push dword [ebp - 0x11bc]
push 0x4667b8
lea eax, [ebp - 0x11b4]
mov edx, 6
call fcn.004052d8
mov edx, dword [ebp - 0x11b4]
mov eax, dword [ebx + 0x48]
call fcn.00440004
jmp 0x465d8a
xor edx, edx
mov eax, dword [ebx + 0x48]
call fcn.00440004
cmp dword [ebp + 0x28], 0
je 0x465d9d
lea eax, [ebp - 8]
mov edx, dword [ebp + 0x28]
call fcn.00404fdc
jmp 0x465da8
lea eax, [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.00404fdc
cmp byte [ebx + 0x11e], 0
je 0x465e17
push dword [ebx + 0x7c]
push 0x4667ac
lea edx, [ebp - 0x11c4]
mov edi, dword [ebx + 0x48]
mov eax, edi
call fcn.0043ffd4
push dword [ebp - 0x11c4]
push dword [ebp - 8]
push 0x4667ac
push dword [ebx + 0x110]
push 0x4667ac
lea ecx, [ebp - 0x11c8]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00464e98
push dword [ebp - 0x11c8]
lea eax, [ebp - 0x11c0]
mov edx, 8
call fcn.004052d8
mov edx, dword [ebp - 0x11c0]
mov eax, edi
call fcn.00440004
jmp 0x465e55
push dword [ebx + 0x7c]
push 0x4667ac
lea edx, [ebp - 0x11d0]
mov edi, dword [ebx + 0x48]
mov eax, edi
call fcn.0043ffd4
push dword [ebp - 0x11d0]
push dword [ebp - 8]
lea eax, [ebp - 0x11cc]
mov edx, 4
call fcn.004052d8
mov edx, dword [ebp - 0x11cc]
mov eax, edi
call fcn.00440004
mov eax, dword [0x470c2c]
mov eax, dword [eax]
call fcn.0045e748
mov edi, 0x84000000
cmp byte [ebx + 0x14b], 0
je 0x465e75
or edi, 0x400000
cmp byte [ebp + 0x10], 1
jne 0x465ef0
cmp dword [ebp + 0xc], 0
je 0x465e87
cmp dword [ebp + 8], 0
jne 0x465ef0
lea eax, [ebp - 0x14]
mov edx, dword [ebp + 0xc]
call fcn.00404fdc
lea eax, [ebp - 0x18]
mov edx, dword [ebp + 8]
call fcn.00404fdc
lea edx, [ebp - 0x11d8]
mov eax, dword [ebp - 4]
call fcn.00465a28
mov ecx, dword [ebp - 0x11d8]
lea eax, [ebp - 0x11d4]
mov edx, 0x4667c4
call fcn.0040525c
mov eax, dword [ebp - 0x11d4]
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00460ab0
test al, al
je 0x466700
lea eax, [ebp + 0xc]
mov edx, dword [ebp - 0x14]
call fcn.00404fdc
lea eax, [ebp + 8]
mov edx, dword [ebp - 0x18]
call fcn.00404fdc
cmp dword [ebp + 0xc], 0
jne 0x465efc
cmp dword [ebp + 8], 0
je 0x465f47
push 0x4667d8
push dword [ebp + 0xc]
push 0x4667f8
push dword [ebp + 8]
lea eax, [ebp - 0x11e0]
mov edx, 3
call fcn.004052d8
mov eax, dword [ebp - 0x11e0]
lea edx, [ebp - 0x11dc]
call fcn.00460c30
push dword [ebp - 0x11dc]
push 0x466804
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.004052d8
jmp 0x465f4f
lea eax, [ebp - 0x1c]
call fcn.00404f44
push 0
push edi
mov eax, dword [ebp - 0x1c]
call fcn.00405204
push eax
mov eax, dword [ebp - 0x1c]
call fcn.004053d4
push eax
mov eax, dword [ebp - 4]
call fcn.004053d4
push eax
mov eax, dword [ebx + 0xa4]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], 4
xor eax, eax
mov dword [ebp - 0x3c], eax
mov eax, dword [0x470c2c]
mov eax, dword [eax]
call fcn.0045e748
cmp dword [ebp - 0x34], 0
je 0x4660c5
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x40]
push eax
push 0x20000013
mov eax, dword [ebp - 0x34]
push eax
call sub.wininet.dll_HttpQueryInfoA
cmp dword [ebp - 0x40], 0x191
jne 0x466045
movzx eax, byte [ebp + 0x10]
dec eax
sub al, 2
jae 0x466045
lea eax, [ebp - 0x14]
mov edx, dword [ebp + 0xc]
call fcn.00404fdc
lea eax, [ebp - 0x18]
mov edx, dword [ebp + 8]
call fcn.00404fdc
lea edx, [ebp - 0x11e8]
mov eax, dword [ebp - 4]
call fcn.00465a28
mov ecx, dword [ebp - 0x11e8]
lea eax, [ebp - 0x11e4]
mov edx, 0x4667c4
call fcn.0040525c
mov eax, dword [ebp - 0x11e4]
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00460ab0
test al, al
je 0x466700
lea eax, [ebp + 0xc]
mov edx, dword [ebp - 0x14]
call fcn.00404fdc
lea eax, [ebp + 8]
mov edx, dword [ebp - 0x18]
call fcn.00404fdc
mov eax, dword [ebp - 0x34]
push eax
call sub.wininet.dll_InternetCloseHandle
jmp 0x465ef0
cmp dword [ebp - 0x40], 0x12c
jb 0x4660c5
mov eax, dword [ebp - 0x34]
push eax
call sub.wininet.dll_InternetCloseHandle
cmp word [ebx + 0xaa], 0
je 0x466072
mov ecx, dword [ebp - 0x40]
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
cmp word [ebx + 0xb2], 0
je 0x466700
mov eax, dword [ebp - 0x40]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x11f0]
call fcn.0040922c
mov ecx, dword [ebp - 0x11f0]
lea eax, [ebp - 0x11ec]
mov edx, 0x466814
call fcn.0040525c
mov eax, dword [ebp - 0x11ec]
push eax
mov ecx, dword [ebp - 0x40]
mov edx, ebx
mov eax, dword [ebx + 0xb4]
call dword [ebx + 0xb0]
jmp 0x466700
cmp dword [ebp - 0x34], 0
jne 0x4660ef
cmp word [ebx + 0xda], 0
je 0x466700
mov ecx, dword [ebp - 4]
mov edx, ebx
mov eax, dword [ebx + 0xdc]
call dword [ebx + 0xd8]
jmp 0x466700
cmp byte [ebp + 0x1c], 0
jne 0x466103
cmp word [ebx + 0x152], 0
je 0x4661ef
mov dword [ebp - 0x38], 0x10
xor eax, eax
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x11ac]
push eax
push 0x4000000b
mov eax, dword [ebp - 0x34]
push eax
call sub.wininet.dll_HttpQueryInfoA
lea edx, [ebp - 0x50]
lea eax, [ebp - 0x11ac]
call fcn.004645fc
cmp word [ebx + 0x152], 0
je 0x466184
mov byte [ebp - 0x41], 1
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp - 0x50]
mov dword [eax], edx
mov edx, dword [ebp - 0x4c]
mov dword [eax + 4], edx
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
lea eax, [ebp - 0x41]
push eax
mov ecx, esi
mov edx, ebx
mov eax, dword [ebx + 0x154]
call dword [ebx + 0x150]
cmp byte [ebp - 0x41], 0
jne 0x4661e1
mov eax, dword [ebp - 0x34]
push eax
call sub.wininet.dll_InternetCloseHandle
jmp 0x466700
fld qword [ebp - 0x50]
mov eax, dword [ebp + 0x18]
fcomp qword [eax]
wait
fnstsw ax
sahf
ja 0x4661e1
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp - 0x50]
mov dword [eax], edx
mov edx, dword [ebp - 0x4c]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x34]
push eax
call sub.wininet.dll_InternetCloseHandle
cmp word [ebx + 0x132], 0
je 0x466700
mov eax, dword [ebp + 0x18]
push dword [eax + 4]
push dword [eax]
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
mov ecx, dword [ebp - 0xc]
mov edx, ebx
mov eax, dword [ebx + 0x134]
call dword [ebx + 0x130]
jmp 0x466700
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp - 0x50]
mov dword [eax], edx
mov edx, dword [ebp - 0x4c]
mov dword [eax + 4], edx
cmp dword [ebp + 0x20], 0
je 0x466202
lea eax, [ebp - 0xc]
mov edx, dword [ebp + 0x20]
call fcn.00404fdc
jmp 0x46620d
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00464668
lea ecx, [ebp - 0x11f4]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x24]
call fcn.00464b60
mov edx, dword [ebp - 0x11f4]
lea eax, [ebp - 0xc]
call fcn.00404fdc
lea eax, [ebx + 0x6c]
mov edx, dword [ebp - 0xc]
call fcn.00404f98
lea eax, [ebx + 0x70]
mov edx, dword [ebp + 0x24]
call fcn.00404f98
mov eax, dword [ebp - 0xc]
call fcn.00409664
test al, al
je 0x4662aa
mov byte [ebp - 0x41], 1
cmp word [ebx + 0xea], 0
je 0x466271
lea eax, [ebp - 0x41]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, ebx
mov eax, dword [ebx + 0xec]
call dword [ebx + 0xe8]
cmp byte [ebp - 0x41], 0
jne 0x466285
mov eax, dword [ebp - 0x34]
push eax
call sub.wininet.dll_InternetCloseHandle
jmp 0x466700
cmp byte [ebx + 0x178], 0
je 0x4662aa
lea edx, [ebp - 0x11f8]
mov eax, dword [ebp - 0xc]
call fcn.00465bbc
mov edx, dword [ebp - 0x11f8]
lea eax, [ebp - 0xc]
call fcn.00404fdc
lea edx, [ebp - 0x11fc]
mov eax, dword [ebp - 0xc]
call fcn.00409a10
mov eax, dword [ebp - 0x11fc]
call fcn.00464c34
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x119c]
call fcn.004035cc
mov edx, 1
lea eax, [ebp - 0x119c]
call fcn.00403adc
call fcn.00403094
test eax, eax
je 0x466350
mov eax, dword [ebp - 0x34]
push eax
call sub.wininet.dll_InternetCloseHandle
cmp word [ebx + 0xaa], 0
je 0x466310
mov ecx, 3
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
cmp word [ebx + 0xb2], 0
je 0x466700
lea eax, [ebp - 0x1200]
mov ecx, dword [ebp - 0xc]
mov edx, 0x466838
call fcn.0040525c
mov eax, dword [ebp - 0x1200]
push eax
mov ecx, 3
mov edx, ebx
mov eax, dword [ebx + 0xb4]
call dword [ebx + 0xb0]
jmp 0x466700
mov dword [ebp - 0x24], 0x1000
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], 4
xor eax, eax
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x40]
push eax
push 0x20000005
mov eax, dword [ebp - 0x34]
push eax
call sub.wininet.dll_HttpQueryInfoA
cmp dword [ebp - 0x40], 0
jne 0x4663ae
mov edx, esi
mov eax, dword [ebx + 0xa0]
call fcn.0046be70
cmp dword [eax + 0x58], 0
jbe 0x4663ae
mov edx, esi
mov eax, dword [ebx + 0xa0]
call fcn.0046be70
mov eax, dword [eax + 0x58]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call sub.kernel32.dll_GetTickCount
mov esi, eax
mov dword [ebp - 0x24], 0x1000
jmp 0x4666c9
mov eax, dword [0x470c2c]
mov eax, dword [eax]
call fcn.0045e748
lea eax, [ebp - 0x24]
push eax
push 0x1000
lea eax, [ebp - 0x1050]
push eax
mov eax, dword [ebp - 0x34]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x4666d9
cmp dword [ebp - 0x24], 0
jbe 0x466426
cmp dword [ebp - 0x24], 0x1000
ja 0x466426
push 0
lea edx, [ebp - 0x1050]
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x119c]
call fcn.00403748
call fcn.00403014
mov eax, dword [ebp - 0x24]
xor edx, edx
add eax, dword [ebp - 0x30]
adc edx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x40], 0
jbe 0x4664d5
fild qword [ebp - 0x30]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x1208], eax
xor eax, eax
mov dword [ebp - 0x1204], eax
fild qword [ebp - 0x1208]
fdivp st(1)
fmul dword [0x46684c]
call fcn.00403328
mov edx, eax
mov eax, dword [ebx + 0x44]
call fcn.004620b8
push dword [ebx + 0x80]
push 0x4667ac
lea edx, [ebp - 0x1210]
mov eax, dword [ebp - 0x30]
call fcn.0046472c
push dword [ebp - 0x1210]
push 0x4667ac
push dword [ebx + 0x10c]
push 0x4667ac
lea edx, [ebp - 0x1214]
mov eax, dword [ebp - 0x40]
call fcn.0046472c
push dword [ebp - 0x1214]
lea eax, [ebp - 0x120c]
mov edx, 7
call fcn.004052d8
mov edx, dword [ebp - 0x120c]
mov eax, dword [ebx + 0x4c]
call fcn.00440004
jmp 0x466512
push dword [ebx + 0x80]
push 0x4667ac
lea edx, [ebp - 0x121c]
mov eax, dword [ebp - 0x30]
call fcn.0046472c
push dword [ebp - 0x121c]
lea eax, [ebp - 0x1218]
mov edx, 3
call fcn.004052d8
mov edx, dword [ebp - 0x1218]
mov eax, dword [ebx + 0x4c]
call fcn.00440004
cmp byte [ebx + 0x11d], 0
je 0x466568
push dword [ebx + 0x124]
push 0x4667b8
mov eax, dword [ebx + 0x44]
call fcn.00461f08
lea edx, [ebp - 0x1224]
call fcn.00409140
push dword [ebp - 0x1224]
push 0x466858
push dword [ebx + 0x120]
lea eax, [ebp - 0x1220]
mov edx, 5
call fcn.004052d8
mov edx, dword [ebp - 0x1220]
mov eax, dword [ebx + 0x3c]
call fcn.00440004
call sub.kernel32.dll_GetTickCount
sub eax, esi
inc eax
mov dword [ebp - 0x1208], eax
xor eax, eax
mov dword [ebp - 0x1204], eax
fild qword [ebp - 0x1208]
fild qword [ebp - 0x30]
fdivrp st(1)
fmul dword [0x46685c]
call fcn.00403328
lea edx, [ebp - 0x1228]
call fcn.00464880
mov edx, dword [ebp - 0x1228]
lea eax, [ebx + 0x16c]
call fcn.00404f98
push dword [ebx + 0x84]
push 0x4667ac
push dword [ebx + 0x16c]
lea eax, [ebp - 0x122c]
mov edx, 3
call fcn.004052d8
mov edx, dword [ebp - 0x122c]
mov eax, dword [ebx + 0x50]
call fcn.00440004
lea eax, [ebp - 0x1230]
push eax
call sub.kernel32.dll_GetTickCount
sub eax, esi
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x30]
call fcn.004649d4
mov edx, dword [ebp - 0x1230]
lea eax, [ebx + 0x170]
call fcn.00404f98
push dword [ebx + 0x88]
push 0x4667ac
push dword [ebx + 0x170]
lea eax, [ebp - 0x1234]
mov edx, 3
call fcn.004052d8
mov edx, dword [ebp - 0x1234]
mov eax, dword [ebx + 0x54]
call fcn.00440004
lea eax, [ebp - 0x1238]
push eax
call sub.kernel32.dll_GetTickCount
sub eax, esi
mov ecx, dword [ebp - 0x40]
xor edx, edx
call fcn.004649d4
mov edx, dword [ebp - 0x1238]
lea eax, [ebx + 0x174]
call fcn.00404f98
push dword [ebx + 0x8c]
push 0x4667ac
push dword [ebx + 0x174]
lea eax, [ebp - 0x123c]
mov edx, 3
call fcn.004052d8
mov edx, dword [ebp - 0x123c]
mov eax, dword [ebx + 0x58]
call fcn.00440004
cmp word [ebx + 0xf2], 0
je 0x4666b3
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebx + 0x34]
mov edx, ebx
mov eax, dword [ebx + 0xf4]
call dword [ebx + 0xf0]
mov eax, dword [0x470c2c]
mov eax, dword [eax]
call fcn.0045e748
cmp dword [ebp - 0x24], 0
jbe 0x4666c9
mov byte [ebp - 0x1d], 1
cmp dword [ebp - 0x24], 0
jbe 0x4666d9
cmp byte [ebx + 0x38], 0
je 0x4663cf
lea eax, [ebp - 0x119c]
call fcn.00403768
call fcn.00403014
cmp byte [ebx + 0x38], 0
je 0x4666f7
mov eax, dword [ebp - 0xc]
call fcn.004098dc
mov eax, dword [ebp - 0x34]
push eax
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466795
lea eax, [ebp - 0x123c]
mov edx, 0xd
call fcn.00404f68
lea eax, [ebp - 0x1200]
mov edx, 0xc
call fcn.00404f68
lea eax, [ebp - 0x11d0]
call fcn.00404f44
lea eax, [ebp - 0x11cc]
mov edx, 2
call fcn.00404f68
lea eax, [ebp - 0x11c4]
call fcn.00404f44
lea eax, [ebp - 0x11c0]
mov edx, 5
call fcn.00404f68
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.00404f68
lea eax, [ebp + 8]
mov edx, 2
call fcn.00404f68
lea eax, [ebp + 0x20]
mov edx, 3
call fcn.00404f68
ret