Function at 0x45e2b4
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, 0x245
push 0
push 0
dec ecx
jne 0x45e2bd
push ecx
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 eax, dword [ebp - 8]
call fcn.00404d04
mov eax, dword [ebp + 0x24]
call fcn.00404d04
mov eax, dword [ebp + 0x20]
call fcn.00404d04
mov eax, dword [ebp + 0xc]
call fcn.00404d04
mov eax, dword [ebp + 8]
call fcn.00404d04
xor eax, eax
push ebp
push 0x45ece8
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.004048ec
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.0045cd64
lea ecx, [ebp - 0x11ac]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0045d490
mov edx, dword [ebp - 0x11ac]
lea eax, [ebp - 8]
call fcn.004048ec
mov eax, dword [ebx + 0x94]
call fcn.00419014
dec eax
jle 0x45e3ba
lea edx, [ebp - 0x11b4]
mov eax, dword [ebx + 0x34]
call fcn.00408da0
push dword [ebp - 0x11b4]
push 0x45ed08
push dword [ebx + 0x104]
push 0x45ed08
mov eax, dword [ebx + 0x94]
call fcn.00463e34
lea edx, [ebp - 0x11b8]
call fcn.00408da0
push dword [ebp - 0x11b8]
push 0x45ed14
lea eax, [ebp - 0x11b0]
mov edx, 6
call fcn.00404bd4
mov edx, dword [ebp - 0x11b0]
mov eax, dword [ebx + 0x48]
call fcn.0044d738
jmp 0x45e3c4
xor edx, edx
mov eax, dword [ebx + 0x48]
call fcn.0044d738
cmp byte [ebx + 0x115], 0
je 0x45e433
push dword [ebx + 0x78]
push 0x45ed08
lea edx, [ebp - 0x11c0]
mov esi, dword [ebx + 0x48]
mov eax, esi
call fcn.0044d708
push dword [ebp - 0x11c0]
push dword [ebp - 0x14]
push 0x45ed08
push dword [ebx + 0x108]
push 0x45ed08
lea ecx, [ebp - 0x11c4]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0045d590
push dword [ebp - 0x11c4]
lea eax, [ebp - 0x11bc]
mov edx, 8
call fcn.00404bd4
mov edx, dword [ebp - 0x11bc]
mov eax, esi
call fcn.0044d738
jmp 0x45e471
push dword [ebx + 0x78]
push 0x45ed08
lea edx, [ebp - 0x11cc]
mov esi, dword [ebx + 0x48]
mov eax, esi
call fcn.0044d708
push dword [ebp - 0x11cc]
push dword [ebp - 0x14]
lea eax, [ebp - 0x11c8]
mov edx, 4
call fcn.00404bd4
mov edx, dword [ebp - 0x11c8]
mov eax, esi
call fcn.0044d738
mov eax, dword [0x46d164]
mov eax, dword [eax]
call fcn.0043efdc
mov edi, 0x84000000
cmp byte [ebx + 0x142], 0
je 0x45e491
or edi, 0x400000
cmp byte [ebp + 0x10], 1
jne 0x45e50c
cmp dword [ebp + 0xc], 0
je 0x45e4a3
cmp dword [ebp + 8], 0
jne 0x45e50c
lea eax, [ebp - 0x44]
mov edx, dword [ebp + 0xc]
call fcn.004048ec
lea eax, [ebp - 0x48]
mov edx, dword [ebp + 8]
call fcn.004048ec
lea edx, [ebp - 0x11d4]
mov eax, dword [ebp - 8]
call fcn.0045e068
mov ecx, dword [ebp - 0x11d4]
lea eax, [ebp - 0x11d0]
mov edx, 0x45ed20
call fcn.00404b60
mov eax, dword [ebp - 0x11d0]
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x44]
call fcn.0045b680
test al, al
je 0x45ec48
lea eax, [ebp + 0xc]
mov edx, dword [ebp - 0x44]
call fcn.004048ec
lea eax, [ebp + 8]
mov edx, dword [ebp - 0x48]
call fcn.004048ec
cmp dword [ebp + 0xc], 0
jne 0x45e518
cmp dword [ebp + 8], 0
je 0x45e563
push 0x45ed34
push dword [ebp + 0xc]
push 0x45ed54
push dword [ebp + 8]
lea eax, [ebp - 0x11dc]
mov edx, 3
call fcn.00404bd4
mov eax, dword [ebp - 0x11dc]
lea edx, [ebp - 0x11d8]
call fcn.0045b330
push dword [ebp - 0x11d8]
push 0x45ed60
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.00404bd4
jmp 0x45e56b
lea eax, [ebp - 0x4c]
call fcn.00404854
push 0
push edi
mov eax, dword [ebp - 0x4c]
call fcn.00404b14
push eax
mov eax, dword [ebp - 0x4c]
call fcn.00404d14
push eax
mov eax, dword [ebp - 8]
call fcn.00404d14
push eax
mov eax, dword [ebx + 0x98]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov esi, eax
mov dword [ebp - 0x24], 4
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [0x46d164]
mov eax, dword [eax]
call fcn.0043efdc
test esi, esi
je 0x45e6d0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x20000013
push esi
call sub.wininet.dll_HttpQueryInfoA
cmp dword [ebp - 0x2c], 0x191
jne 0x45e653
mov al, byte [ebp + 0x10]
dec eax
sub al, 2
jae 0x45e653
lea eax, [ebp - 0x44]
mov edx, dword [ebp + 0xc]
call fcn.004048ec
lea eax, [ebp - 0x48]
mov edx, dword [ebp + 8]
call fcn.004048ec
lea edx, [ebp - 0x11e4]
mov eax, dword [ebp - 8]
call fcn.0045e068
mov ecx, dword [ebp - 0x11e4]
lea eax, [ebp - 0x11e0]
mov edx, 0x45ed20
call fcn.00404b60
mov eax, dword [ebp - 0x11e0]
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x44]
call fcn.0045b680
test al, al
je 0x45ec48
lea eax, [ebp + 0xc]
mov edx, dword [ebp - 0x44]
call fcn.004048ec
lea eax, [ebp + 8]
mov edx, dword [ebp - 0x48]
call fcn.004048ec
push esi
call sub.wininet.dll_InternetCloseHandle
jmp 0x45e50c
cmp dword [ebp - 0x2c], 0x12c
jb 0x45e6d0
push esi
call sub.wininet.dll_InternetCloseHandle
cmp word [ebx + 0xa2], 0
je 0x45e67d
mov ecx, dword [ebp - 0x2c]
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
cmp word [ebx + 0xaa], 0
je 0x45ec48
mov eax, dword [ebp - 0x2c]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x11ec]
call fcn.00408e8c
mov ecx, dword [ebp - 0x11ec]
lea eax, [ebp - 0x11e8]
mov edx, 0x45ed70
call fcn.00404b60
mov eax, dword [ebp - 0x11e8]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
jmp 0x45ec48
test esi, esi
jne 0x45e6f8
cmp word [ebx + 0xd2], 0
je 0x45ec48
mov ecx, dword [ebp - 8]
mov edx, ebx
mov eax, dword [ebx + 0xd4]
call dword [ebx + 0xd0]
jmp 0x45ec48
cmp byte [ebp + 0x1c], 0
jne 0x45e70c
cmp word [ebx + 0x14a], 0
je 0x45e7ef
mov dword [ebp - 0x24], 0x10
xor eax, eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x11a8]
push eax
push 0x4000000b
push esi
call sub.wininet.dll_HttpQueryInfoA
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x11a8]
call fcn.0045ccf8
cmp word [ebx + 0x14a], 0
je 0x45e788
mov byte [ebp - 0x31], 1
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp - 0x40]
mov dword [eax], edx
mov edx, dword [ebp - 0x3c]
mov dword [eax + 4], edx
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 + 0x14c]
call dword [ebx + 0x148]
cmp byte [ebp - 0x31], 0
jne 0x45e7e1
push esi
call sub.wininet.dll_InternetCloseHandle
jmp 0x45ec48
fld qword [ebp - 0x40]
mov eax, dword [ebp + 0x18]
fcomp qword [eax]
fnstsw ax
sahf
ja 0x45e7e1
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp - 0x40]
mov dword [eax], edx
mov edx, dword [ebp - 0x3c]
mov dword [eax + 4], edx
push esi
call sub.wininet.dll_InternetCloseHandle
cmp word [ebx + 0x12a], 0
je 0x45ec48
mov eax, dword [ebp + 0x18]
push dword [eax + 4]
push dword [eax]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
mov ecx, dword [ebp - 0x14]
mov edx, ebx
mov eax, dword [ebx + 0x12c]
call dword [ebx + 0x128]
jmp 0x45ec48
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp - 0x40]
mov dword [eax], edx
mov edx, dword [ebp - 0x3c]
mov dword [eax + 4], edx
cmp dword [ebp + 0x20], 0
je 0x45e802
lea eax, [ebp - 0x14]
mov edx, dword [ebp + 0x20]
call fcn.004048ec
jmp 0x45e80d
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.0045cd64
lea ecx, [ebp - 0x11f0]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x24]
call fcn.0045d258
mov edx, dword [ebp - 0x11f0]
lea eax, [ebp - 0x14]
call fcn.004048ec
lea eax, [ebx + 0x68]
mov edx, dword [ebp - 0x14]
call fcn.004048a8
lea eax, [ebx + 0x6c]
mov edx, dword [ebp + 0x24]
call fcn.004048a8
mov eax, dword [ebp - 0x14]
call fcn.004092b4
test al, al
je 0x45e8a7
mov byte [ebp - 0x31], 1
cmp word [ebx + 0xe2], 0
je 0x45e871
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 0x45e882
push esi
call sub.wininet.dll_InternetCloseHandle
jmp 0x45ec48
cmp byte [ebx + 0x164], 0
je 0x45e8a7
lea edx, [ebp - 0x11f4]
mov eax, dword [ebp - 0x14]
call fcn.0045e1fc
mov edx, dword [ebp - 0x11f4]
lea eax, [ebp - 0x14]
call fcn.004048ec
lea edx, [ebp - 0x11f8]
mov eax, dword [ebp - 0x14]
call fcn.00409460
mov eax, dword [ebp - 0x11f8]
call fcn.0045d32c
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x1198]
call fcn.00402fd4
mov edx, 1
lea eax, [ebp - 0x1198]
call fcn.00403464
call fcn.00402cac
test eax, eax
je 0x45e94a
push esi
call sub.wininet.dll_InternetCloseHandle
cmp word [ebx + 0xa2], 0
je 0x45e90a
mov ecx, 3
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
cmp word [ebx + 0xaa], 0
je 0x45ec48
lea eax, [ebp - 0x11fc]
mov ecx, dword [ebp - 0x14]
mov edx, 0x45ed94
call fcn.00404b60
mov eax, dword [ebp - 0x11fc]
push eax
mov ecx, 3
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
jmp 0x45ec48
mov dword [ebp - 0x10], 0x1000
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 4
xor eax, eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x20000005
push esi
call sub.wininet.dll_HttpQueryInfoA
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x10], 0x1000
jmp 0x45ec14
mov eax, dword [0x46d164]
mov eax, dword [eax]
call fcn.0043efdc
lea eax, [ebp - 0x10]
push eax
push 0x1000
lea eax, [ebp - 0x104c]
push eax
push esi
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x45ec24
cmp dword [ebp - 0x10], 0
jbe 0x45e9ef
cmp dword [ebp - 0x10], 0x1000
ja 0x45e9ef
push 0
lea edx, [ebp - 0x104c]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1198]
call fcn.0040314c
call fcn.00402c2c
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 - 0x2c], 0
jbe 0x45ea9b
fild qword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1204], eax
xor eax, eax
mov dword [ebp - 0x1200], eax
fild qword [ebp - 0x1204]
fdivp st(1)
fmul dword [0x45eda8]
call fcn.00402d30
mov edx, eax
mov eax, dword [ebx + 0x44]
call fcn.0045a414
push dword [ebx + 0x7c]
push 0x45ed08
lea edx, [ebp - 0x120c]
mov eax, dword [ebp - 0x20]
call fcn.0045ce28
push dword [ebp - 0x120c]
push 0x45ed08
push dword [ebx + 0x104]
push 0x45ed08
lea edx, [ebp - 0x1210]
mov eax, dword [ebp - 0x2c]
call fcn.0045ce28
push dword [ebp - 0x1210]
lea eax, [ebp - 0x1208]
mov edx, 7
call fcn.00404bd4
mov edx, dword [ebp - 0x1208]
mov eax, dword [ebx + 0x4c]
call fcn.0044d738
jmp 0x45ead5
push dword [ebx + 0x7c]
push 0x45ed08
lea edx, [ebp - 0x1218]
mov eax, dword [ebp - 0x20]
call fcn.0045ce28
push dword [ebp - 0x1218]
lea eax, [ebp - 0x1214]
mov edx, 3
call fcn.00404bd4
mov edx, dword [ebp - 0x1214]
mov eax, dword [ebx + 0x4c]
call fcn.0044d738
cmp word [ebx + 0xea], 0
je 0x45eaf8
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebx + 0x34]
mov edx, ebx
mov eax, dword [ebx + 0xec]
call dword [ebx + 0xe8]
cmp byte [ebx + 0x114], 0
je 0x45eb4e
push dword [ebx + 0x11c]
push 0x45ed14
mov eax, dword [ebx + 0x44]
call fcn.0045a264
lea edx, [ebp - 0x1220]
call fcn.00408da0
push dword [ebp - 0x1220]
push 0x45edb4
push dword [ebx + 0x118]
lea eax, [ebp - 0x121c]
mov edx, 5
call fcn.00404bd4
mov edx, dword [ebp - 0x121c]
mov eax, dword [ebx + 0x3c]
call fcn.0044d738
push dword [ebx + 0x80]
push 0x45ed08
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x1204], eax
xor eax, eax
mov dword [ebp - 0x1200], eax
fild qword [ebp - 0x1204]
fild qword [ebp - 0x20]
fdivrp st(1)
fmul dword [0x45edb8]
call fcn.00402d30
lea edx, [ebp - 0x1228]
call fcn.0045cf7c
push dword [ebp - 0x1228]
lea eax, [ebp - 0x1224]
mov edx, 3
call fcn.00404bd4
mov edx, dword [ebp - 0x1224]
mov eax, dword [ebx + 0x50]
call fcn.0044d738
push dword [ebx + 0x84]
push 0x45ed08
lea eax, [ebp - 0x1230]
push eax
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
call fcn.0045d0d0
push dword [ebp - 0x1230]
lea eax, [ebp - 0x122c]
mov edx, 3
call fcn.00404bd4
mov edx, dword [ebp - 0x122c]
mov eax, dword [ebx + 0x54]
call fcn.0044d738
mov eax, dword [0x46d164]
mov eax, dword [eax]
call fcn.0043efdc
cmp dword [ebp - 0x10], 0
jbe 0x45ec14
mov byte [ebp - 9], 1
cmp dword [ebp - 0x10], 0
jbe 0x45ec24
cmp byte [ebx + 0x38], 0
je 0x45e99b
lea eax, [ebp - 0x1198]
call fcn.0040316c
call fcn.00402c2c
cmp byte [ebx + 0x38], 0
je 0x45ec42
mov eax, dword [ebp - 0x14]
call fcn.004093c0
push esi
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ecf2
lea eax, [ebp - 0x1230]
mov edx, 0xb
call fcn.00404878
lea eax, [ebp - 0x11fc]
mov edx, 0xc
call fcn.00404878
lea eax, [ebp - 0x11cc]
call fcn.00404854
lea eax, [ebp - 0x11c8]
mov edx, 2
call fcn.00404878
lea eax, [ebp - 0x11c0]
call fcn.00404854
lea eax, [ebp - 0x11bc]
mov edx, 5
call fcn.00404878
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.00404878
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404878
lea eax, [ebp - 8]
call fcn.00404854
lea eax, [ebp + 8]
mov edx, 2
call fcn.00404878
lea eax, [ebp + 0x20]
mov edx, 2
call fcn.00404878
ret