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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa70
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x590], ebx
mov dword [ebp - 0x58c], ebx
mov dword [ebp - 0x588], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00404e4c
mov eax, dword [ebp - 0xc]
call fcn.00404e4c
xor eax, eax
push ebp
push 0x4a1512
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov eax, esi
call fcn.0040499c
cmp dword [ebp - 4], 0
je 0x4a14e4
cmp dword [ebp - 8], 0
je 0x4a130e
mov eax, dword [ebp - 0xc]
call fcn.0040951c
cmp al, 1
jne 0x4a12b7
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.0040964c
mov eax, dword [ebp - 0xc]
call fcn.00409768
mov eax, dword [ebp - 0xc]
call fcn.0040951c
cmp al, 1
je 0x4a14e4
xor eax, eax
push ebp
push 0x4a12fa
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x570]
call fcn.00402f50
mov eax, dword [0x4a9e7c]
mov byte [eax], 2
mov edx, 1
lea eax, [ebp - 0x570]
call fcn.00403444
call fcn.004028cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a130e
nop
nop
push 0
push 0
push 0
push 0
push 0x4a1528
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x14], eax
xor edx, edx
push ebp
push 0x4a14a5
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 0x14], 0
je 0x4a148e
push 0
push 0x84000000
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404e5c
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4a148e
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 0xa
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x584]
push eax
push 0x13
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_HttpQueryInfoA
lea ebx, [ebp - 0x584]
lea eax, [ebp - 0x588]
mov edx, ebx
call fcn.00404b94
mov eax, dword [ebp - 0x588]
mov edx, 0x4a153c
call fcn.00404da8
je 0x4a13d5
lea eax, [ebp - 0x58c]
mov edx, ebx
call fcn.00404b94
mov eax, dword [ebp - 0x58c]
mov edx, 0x4a1548
call fcn.00404da8
jne 0x4a148e
xor edx, edx
push ebp
push 0x4a1487
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x424]
xor ecx, ecx
mov edx, 0x400
call fcn.004032e4
lea eax, [ebp - 0x1c]
push eax
push 0x400
lea eax, [ebp - 0x424]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetReadFile
cmp dword [ebp - 0x1c], 0
jbe 0x4a1462
cmp dword [ebp - 8], 0
je 0x4a1437
push 0
lea edx, [ebp - 0x424]
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x570]
call fcn.004030d4
call fcn.004028cc
jmp 0x4a1462
mov edi, dword [ebp - 0x1c]
test edi, edi
jle 0x4a1462
lea ebx, [ebp - 0x424]
lea eax, [ebp - 0x590]
mov dl, byte [ebx]
call fcn.00404b84
mov edx, dword [ebp - 0x590]
mov eax, esi
call fcn.00404c64
inc ebx
dec edi
jne 0x4a1444
cmp dword [ebp - 0x1c], 0
jne 0x4a13e3
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a148e
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a14ac
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 0x4a1519
lea eax, [ebp - 0x590]
mov edx, 3
call fcn.004049c0
lea eax, [ebp - 0xc]
call fcn.0040499c
lea eax, [ebp - 4]
call fcn.0040499c
ret