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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x43100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ecx, 7
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0x48], ecx
lea eax, [ebp + 0x38]
push esi
cmovb ecx, dword [ebp + 0x48]
cmp dword [ebp + 0x4c], 0x10
push edi
cmovae eax, dword [ebp + 0x38]
push ecx
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
call fcn.00413cf0
sub esp, 0x18
mov ecx, esp
push 0x4325ac
call fcn.00413990
lea ecx, [ebp - 0x78]
call fcn.004029f0
add esp, 0x18
lea ecx, [ebp - 0x60]
mov edx, eax
mov ebx, 3
call fcn.00414270
test al, al
jne 0x40f6dd
mov ecx, 8
mov byte [ebp - 0x30], al
cmp dword [ebp + 0x48], ecx
lea eax, [ebp + 0x38]
mov dword [ebp - 0x20], 0
cmovb ecx, dword [ebp + 0x48]
cmp dword [ebp + 0x4c], 0x10
push ecx
cmovae eax, dword [ebp + 0x38]
lea ecx, [ebp - 0x30]
push eax
mov dword [ebp - 0x1c], 0xf
call fcn.00413cf0
sub esp, 0x18
mov ecx, esp
push 0x431a84
call fcn.00413990
lea ecx, [ebp - 0x48]
call fcn.004029f0
add esp, 0x18
lea ecx, [ebp - 0x30]
mov edx, eax
mov ebx, 0xf
call fcn.00414270
mov byte [ebp - 9], 1
test al, al
je 0x40f6e1
mov byte [ebp - 9], 0
test bl, 8
je 0x40f71d
mov edx, dword [ebp - 0x1c]
and ebx, 0xfffffff7
cmp edx, 0x10
jb 0x40f71d
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f713
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40faed
push edx
push ecx
call fcn.0041535e
add esp, 8
test bl, 4
je 0x40f768
mov edx, dword [ebp - 0x34]
cmp edx, 0x10
jb 0x40f756
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f74c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40faed
push edx
push ecx
call fcn.0041535e
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
mov edx, dword [ebp - 0x4c]
cmp edx, 0x10
jb 0x40f79c
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f792
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40faed
push edx
push ecx
call fcn.0041535e
add esp, 8
mov edx, dword [ebp - 0x64]
cmp edx, 0x10
jb 0x40f7d0
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f7c6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40faed
push edx
push ecx
call fcn.0041535e
add esp, 8
cmp byte [ebp - 9], 0
je 0x40f888
lea eax, [ebp + 0x38]
push eax
sub esp, 0x1c
mov ecx, esp
push 0x4325ac
call fcn.00413990
lea ecx, [ebp - 0x78]
call fcn.004029f0
add esp, 0x1c
lea ecx, [ebp - 0x48]
mov edx, eax
call fcn.00413f30
add esp, 4
lea ecx, [ebp + 0x38]
push eax
call fcn.004138d0
mov edx, dword [ebp - 0x34]
cmp edx, 0x10
jb 0x40f842
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f838
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40faf2
push edx
push ecx
call fcn.0041535e
add esp, 8
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
cmp edx, 0x10
jb 0x40f888
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f87e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40faf2
push edx
push ecx
call fcn.0041535e
add esp, 8
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
xor edi, edi
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp - 0x30]
call fcn.00413990
push 0x3e80000
mov dword [ebp - 8], 0x3e80000
call fcn.0041536c
add esp, 4
mov dword [ebp - 0x14], eax
push dword [ebp - 8]
push 0
push eax
call fcn.00415f70
add esp, 0xc
push 0
push 0
push 0
push 0
push 0x42e35b
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp dword [ebp - 0x1c], 0x10
lea ecx, [ebp - 0x30]
push 0
cmovae ecx, dword [ebp - 0x30]
mov ebx, eax
push 0
push 0
push 0
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
lea ecx, [ebp - 8]
mov dword [ebp - 0x10], eax
push ecx
push dword [ebp - 8]
push dword [ebp - 0x14]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
push ebx
test eax, eax
je 0x40f91e
call esi
push dword [ebp - 0x10]
call esi
mov ecx, dword [ebp - 0x14]
call fcn.00403300
mov byte [ebp - 9], al
jmp 0x40f925
call esi
push dword [ebp - 0x10]
call esi
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x40f959
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f94f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40faed
push edx
push ecx
call fcn.0041535e
add esp, 8
cmp byte [ebp - 9], 0
jne 0x40f985
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 3
jl 0x40f890
sub esp, 0x18
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x43239c
jmp 0x40f994
sub esp, 0x18
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x431d9c
call fcn.00413990
mov ecx, esi
call fcn.004029f0
mov ecx, esp
push 0x431d24
call fcn.00413990
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.00413990
sub esp, 0x18
lea eax, [ebp + 0x20]
mov ecx, esp
push eax
call fcn.00413990
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00413990
call fcn.0040b630
mov edx, dword [ebp + 0x1c]
add esp, 0x78
cmp edx, 0x10
jb 0x40fa12
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fa08
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40faf7
push edx
push ecx
call fcn.0041535e
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x40fa58
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fa4e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40faf7
push edx
push ecx
call fcn.0041535e
add esp, 8
mov edx, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
cmp edx, 0x10
jb 0x40fa9a
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fa90
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40faf7
push edx
push ecx
call fcn.0041535e
add esp, 8
mov edx, dword [ebp + 0x64]
mov dword [ebp + 0x48], 0
mov dword [ebp + 0x4c], 0xf
mov byte [ebp + 0x38], 0
cmp edx, 0x10
jb 0x40fadc
mov ecx, dword [ebp + 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fad2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40faf7
push edx
push ecx
call fcn.0041535e
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414cec
mov esp, ebp
pop ebp
ret
call fcn.004187ac
call fcn.004187ac
call fcn.004187ac
int3