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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d8cd6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x864
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x10], ebx
push ebx
push ebx
push ebx
push 1
push str.MyAgent
mov dword [ebp - 4], ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, 0xf
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x5a2ae7
cmp dword [ebp + 0x24], 0x10
mov ecx, dword [ebp + 0x10]
jae 0x5a2962
lea ecx, [ebp + 0x10]
push ebx
push ebx
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
cmp edi, ebx
je 0x5a2ae4
jmp 0x5a2980
lea eax, [ebp - 0x14]
push eax
push 0x7d0
lea ecx, [ebp - 0x870]
push ecx
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov edx, dword [ebp - 0x14]
push edx
lea eax, [ebp - 0x870]
push eax
lea ecx, [ebp - 0x68]
call fcn.00412cb0
push 0x7d0
lea ecx, [ebp - 0x870]
push ebx
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
cmp dword [ebp - 0x14], ebx
jne 0x5a2980
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 2
push 0x66b7e8
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.00406de0
push 2
push 0x66b7e4
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00406de0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x30]
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x68]
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push edx
mov byte [ebp - 4], 3
mov byte [ecx + 4], bl
call fcn.00406ad0
lea eax, [ebp - 0x84]
push eax
call fcn.005a2850
add esp, 0x28
mov edi, 0x10
cmp dword [ebp - 0x18], edi
jb 0x5a2a57
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00570810
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov byte [ebp - 4], 6
cmp dword [ebp - 0x34], edi
jb 0x5a2a75
mov edx, dword [ebp - 0x48]
push edx
call fcn.00570810
add esp, 4
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x84]
mov dword [edi + 0x18], esi
mov dword [edi + 0x14], ebx
push eax
mov ecx, edi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov byte [edi + 4], bl
call fcn.00406ad0
cmp dword [ebp - 0x6c], 0x10
jb 0x5a2aad
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.00570810
add esp, 4
cmp dword [ebp - 0x50], 0x10
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0x80], bl
jb 0x5a2ac8
mov edx, dword [ebp - 0x64]
push edx
call fcn.00570810
add esp, 4
cmp dword [ebp + 0x24], 0x10
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
jb 0x5a2c0b
mov eax, dword [ebp + 0x10]
push eax
jmp 0x5a2c03
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 2
push 0x66b7e8
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00406de0
push 2
push 0x66b7e4
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 7
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.00406de0
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x4c]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x68]
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push eax
mov byte [ebp - 4], 8
mov byte [ecx + 4], bl
call fcn.00406ad0
lea ecx, [ebp - 0xa0]
push ecx
call fcn.005a2850
add esp, 0x28
mov edi, 0x10
cmp dword [ebp - 0x34], edi
jb 0x5a2b70
mov edx, dword [ebp - 0x48]
push edx
call fcn.00570810
add esp, 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x18], edi
jb 0x5a2b8e
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00570810
add esp, 4
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0xa0]
push ecx
mov dword [edi + 0x18], esi
mov dword [edi + 0x14], ebx
mov ecx, edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov byte [edi + 4], bl
call fcn.00406ad0
cmp dword [ebp - 0x88], 0x10
jb 0x5a2bcc
mov edx, dword [ebp - 0x9c]
push edx
call fcn.00570810
add esp, 4
cmp dword [ebp - 0x50], 0x10
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x8c], ebx
mov byte [ebp - 0x9c], bl
jb 0x5a2bf0
mov eax, dword [ebp - 0x64]
push eax
call fcn.00570810
add esp, 4
cmp dword [ebp + 0x24], 0x10
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
jb 0x5a2c0b
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00570810
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret