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

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x4f1371
mov eax, dword [ebp - 4]
add esp, 0xfffffbcc
xor ecx, ecx
mov dword [ebp - 0x2434], ecx
mov dword [ebp - 0x2438], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f15e0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
push 0
push 0
push 0
push 0
push 0x4f15f0
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4f15b3
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x10], 0
je 0x4f159c
mov dword [ebp - 0x18], 0x400
lea eax, [ebp - 0x2430]
xor ecx, ecx
mov edx, 0x400
call fcn.00403450
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2430]
push eax
push 6
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetQueryOptionA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x21], al
cmp byte [ebp - 0x21], 0
je 0x4f145b
push 0x2710
lea eax, [ebp - 0x2430]
xor ecx, ecx
mov edx, 0x3ff
call fcn.004a0274
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x2430]
push eax
push 6
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetSetOptionA
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x2430]
push eax
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetSetOptionA
push 0
push 0x80000000
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405748
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4f159c
xor eax, eax
push ebp
push 0x4f1595
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebp - 0x20]
call fcn.00405278
call fcn.0040d300
fstp qword [ebp - 0x30]
wait
lea eax, [ebp - 0x1c]
push eax
push 0x2000
lea eax, [ebp - 0x2030]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetReadFile
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call fcn.0040d300
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.004a603c
cmp edx, 0
jne 0x4f14ec
cmp eax, 0x1388
jb 0x4f1527
jmp 0x4f14ee
jl 0x4f1527
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x44]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004f1368
mov byte [ebp - 9], al
call fcn.00404cc0
call fcn.00404cc0
jmp 0x4f15ba
cmp dword [ebp - 0x1c], 0
je 0x4f156d
lea eax, [ebp - 0x2434]
push eax
lea eax, [ebp - 0x2438]
lea edx, [ebp - 0x2030]
mov ecx, 0x2000
call fcn.004054f8
mov eax, dword [ebp - 0x2438]
mov ecx, dword [ebp - 0x1c]
xor edx, edx
call fcn.004057a8
mov edx, dword [ebp - 0x2434]
lea eax, [ebp - 0x20]
call fcn.00405550
jmp 0x4f14a5
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f159c
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f15ba
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f15e7
lea eax, [ebp - 0x2438]
mov edx, 2
call fcn.0040529c
lea eax, [ebp - 0x20]
call fcn.00405278
ret