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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff620
push ebx
push esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], 0x3e8
mov eax, dword [ebp + 0xc]
push eax
push ebx
push str.get__s_____s_r_n
push 0x6f1a44
call fcn.0045a6e0
add esp, 0x10
mov dl, byte [0x62f5c1]
test dl, dl
jne 0x42f0c1
push 0
push 0
push 0
push 0
push 0x62d591
call sub.wininet.dll_InternetOpenA
mov esi, eax
mov dword [0x6f2dcc], esi
test esi, esi
jne 0x42f032
push str.InternetOpen_failed_r_n
push 0x6f1a44
call fcn.0045698c
pop ecx
add eax, 0x6f1a44
push eax
call fcn.0045a6e0
add esp, 8
xor eax, eax
jmp 0x42f3ae
push str.InternetOpen_ok_r_n
push 0x6f1a44
call fcn.0045698c
pop ecx
add eax, 0x6f1a44
push eax
call fcn.0045a6e0
add esp, 8
lea edx, [ebp - 8]
mov dword [ebp - 8], 0x3e8
push edx
lea ecx, [ebp - 0x7ec]
push ecx
lea eax, [ebp - 4]
push eax
call sub.wininet.dll_InternetGetLastResponseInfoA
mov edx, dword [ebp - 4]
test edx, edx
je 0x42f09d
lea ecx, [ebp - 0x7ec]
push ecx
mov eax, dword [ebp - 4]
push eax
push str.err_d___s__r_n
push 0x6f1a44
call fcn.0045698c
pop ecx
add eax, 0x6f1a44
push eax
call fcn.0045a6e0
add esp, 0x10
mov dword [ebp - 0xc], 0x7530
push 4
lea edx, [ebp - 0xc]
push edx
push 6
mov ecx, dword [0x6f2dcc]
push ecx
call sub.wininet.dll_InternetSetOptionA
mov byte [0x62f5c1], 1
jmp 0x42f0e0
push str.already_open_r_n
push 0x6f1a44
call fcn.0045698c
pop ecx
add eax, 0x6f1a44
push eax
call fcn.0045a6e0
add esp, 8
push 0
push 0x80080100
push 0
push 0
push ebx
mov eax, dword [0x6f2dcc]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov esi, eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x3e8
push eax
lea edx, [ebp - 0x7ec]
push edx
lea ecx, [ebp - 4]
push ecx
call sub.wininet.dll_InternetGetLastResponseInfoA
mov eax, dword [ebp - 4]
test eax, eax
je 0x42f145
lea edx, [ebp - 0x7ec]
push edx
mov ecx, dword [ebp - 4]
push ecx
push str.err_d___s__r_n
push 0x6f1a44
call fcn.0045698c
pop ecx
add eax, 0x6f1a44
push eax
call fcn.0045a6e0
add esp, 0x10
test esi, esi
jne 0x42f175
call sub.kernel32.dll_GetLastError
push eax
push str.InternetOpenUrl_failed___d__r_n
push 0x6f1a44
call fcn.0045698c
pop ecx
add eax, 0x6f1a44
push eax
call fcn.0045a6e0
add esp, 0xc
xor eax, eax
jmp 0x42f3ae
push str.InternetOpenUrl_ok_r_n
push 0x6f1a44
call fcn.0045698c
pop ecx
add eax, 0x6f1a44
push eax
call fcn.0045a6e0
add esp, 8
push 0x500000
call fcn.004555e4
pop ecx
mov dword [ebp - 0x10], eax
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x10]
mov byte [eax], 0
xor edx, edx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], edx
push ecx
lea eax, [ebp - 0x9e0]
push 0xfa
push eax
push esi
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x42f265
mov dword [ebp - 8], 0x3e8
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x7ec]
push ecx
lea eax, [ebp - 4]
push eax
call sub.wininet.dll_InternetGetLastResponseInfoA
mov edx, dword [ebp - 4]
test edx, edx
je 0x42f221
lea ecx, [ebp - 0x7ec]
push ecx
mov eax, dword [ebp - 4]
push eax
push str.err_d___s__r_n
push 0x6f1a44
call fcn.0045698c
pop ecx
add eax, 0x6f1a44
push eax
call fcn.0045a6e0
add esp, 0x10
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x42f29b
mov ecx, dword [ebp - 4]
test ecx, ecx
jne 0x42f29b
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
xor ecx, ecx
lea edx, [eax + edx]
lea eax, [ebp - 0x9e0]
jmp 0x42f249
mov bl, byte [eax]
mov byte [edx], bl
inc ecx
inc edx
inc eax
mov ebx, dword [ebp - 0x14]
cmp ecx, ebx
jl 0x42f242
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
add eax, edx
mov dword [ebp - 0x18], eax
call fcn.0042e4d4
jmp 0x42f1b2
push str.file_not_read_r_n
push 0x6f1a44
call fcn.0045698c
pop ecx
add eax, 0x6f1a44
push eax
call fcn.0045a6e0
add esp, 8
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004555f4
pop ecx
push esi
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
jmp 0x42f3ae
mov edx, dword [ebp - 0x18]
push edx
push str.InternetReadFile_ok__read_d_r_n
push 0x6f1a44
call fcn.0045698c
pop ecx
add eax, 0x6f1a44
push eax
call fcn.0045a6e0
add esp, 0xc
mov dword [ebp - 0x1c], 0x1388
push str.StatusCode
push 0x6f1a44
call fcn.0045698c
pop ecx
add eax, 0x6f1a44
push eax
call fcn.0045a6e0
add esp, 8
lea ecx, [ebp - 0x1c]
push 0
push ecx
push 0x6f1a44
call fcn.0045698c
pop ecx
add eax, 0x6f1a44
push eax
push 0x13
push esi
call sub.wininet.dll_HttpQueryInfoA
push 0x62f675
push 0x6f1a44
call fcn.0045698c
pop ecx
add eax, 0x6f1a44
push eax
call fcn.0045a6e0
add esp, 8
push esi
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x18]
push eax
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0041e700
add esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x3e8
push eax
lea ecx, [ebp - 4]
mov edx, dword [ebp - 0x10]
push edx
push ecx
call sub.wininet.dll_InternetGetLastResponseInfoA
mov eax, dword [ebp - 4]
test eax, eax
je 0x42f383
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp - 4]
push ecx
push str.err_d___s__r_n
push 0x6f1a44
call fcn.0045698c
pop ecx
add eax, 0x6f1a44
push eax
call fcn.0045a6e0
add esp, 0x10
mov eax, dword [ebp - 0x10]
push eax
call fcn.004555f4
pop ecx
push 0x62fa5d
push 0x6f1a44
call fcn.0045698c
pop ecx
add eax, 0x6f1a44
push eax
call fcn.0045a6e0
add esp, 8
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret