Function at 0x40afc0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 3
add esp, 0xfffff004
push eax
dec eax
jne 0x40afc9
mov eax, dword [ebp - 4]
add esp, 0xfffff094
push ebx
xor ebx, ebx
mov dword [ebp - 0x3f70], ebx
mov dword [ebp - 0x3f6c], ebx
mov dword [ebp - 0x3f68], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004043e4
xor eax, eax
push ebp
push 0x40b239
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.004043f4
push eax
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x40b20b
xor eax, eax
push ebp
push 0x40b204
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004043f4
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x40b07b
call fcn.00403b24
jmp 0x40b20b
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x40b1e6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 0xc], 0
je 0x40b0c1
push ebp
lea ecx, [ebp - 0x3f68]
mov edx, 0x16
mov eax, dword [ebp - 0x2c]
call fcn.0040aef8
pop ecx
mov edx, dword [ebp - 0x3f68]
mov eax, dword [ebp + 0xc]
call fcn.00407d7c
push ebp
call fcn.0040afb8
pop ecx
push ebp
lea ecx, [ebp - 0x3f6c]
mov edx, 5
mov eax, dword [ebp - 0x2c]
call fcn.0040aef8
pop ecx
mov eax, dword [ebp - 0x3f6c]
xor edx, edx
call fcn.0040aec8
mov dword [ebp - 0x14], eax
push ebp
lea ecx, [ebp - 0x3f70]
mov edx, 0x13
mov eax, dword [ebp - 0x2c]
call fcn.0040aef8
pop ecx
mov edx, dword [ebp - 0x3f70]
lea eax, [ebp - 0x28]
call fcn.0040407c
mov eax, dword [ebp - 0x28]
mov edx, 0x40b254
call fcn.0040438c
jne 0x40b121
mov dword [ebp - 0x10], 0xc8
jmp 0x40b176
mov eax, dword [ebp - 0x28]
mov edx, 0x40b260
call fcn.0040438c
jne 0x40b139
mov dword [ebp - 0x10], 0x191
jmp 0x40b176
mov eax, dword [ebp - 0x28]
mov edx, 0x40b26c
call fcn.0040438c
jne 0x40b151
mov dword [ebp - 0x10], 0x194
jmp 0x40b176
mov eax, dword [ebp - 0x28]
mov edx, 0x40b278
call fcn.0040438c
jne 0x40b169
mov dword [ebp - 0x10], 0x1f4
jmp 0x40b176
xor edx, edx
mov eax, dword [ebp - 0x28]
call fcn.0040aec8
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
push 0x3f38
lea eax, [ebp - 0x3f64]
push eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.wininet.dll_InternetReadFile
cmp dword [ebp - 0x1c], 0
jbe 0x40b1c9
lea edx, [ebp - 0x3f64]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
call fcn.004062a8
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x18], eax
cmp dword [ebp + 8], 0
je 0x40b1c2
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call dword [ebp + 8]
test al, al
je 0x40b1cf
push 0xa
call sub.kernel32.dll_Sleep_1
cmp dword [ebp - 0x1c], 0
jne 0x40b176
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b1ed
mov eax, dword [ebp - 0x2c]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b240
lea eax, [ebp - 0x3f70]
mov edx, 3
call fcn.00404008
lea eax, [ebp - 0x28]
call fcn.00403fe4
lea eax, [ebp - 4]
call fcn.00403fe4
ret