Function at 0x4a6958
Capabilities:
Connect to http server
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x4a6961
mov eax, dword [ebp - 4]
add esp, 0xffffffc8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x203c], ebx
mov dword [ebp - 0x2038], ebx
mov dword [ebp - 0x2034], ebx
mov dword [ebp - 0x2030], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.004042a8
xor eax, eax
push ebp
push 0x4a6d4f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov ebx, dword [esi + 0x14]
test ebx, ebx
je 0x4a6d0c
push 0
push 0
push 3
push 0
push 0x4a6d64
mov eax, dword [ebp - 4]
call fcn.004a67fc
push eax
lea edx, [ebp - 0x2030]
mov eax, dword [ebp - 4]
call fcn.004a65fc
mov eax, dword [ebp - 0x2030]
call fcn.004042b8
push eax
push ebx
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4a6a08
mov eax, esi
call fcn.004a6e6c
jmp 0x4a6a10
lea eax, [esi + 4]
call fcn.00403e74
cmp dword [ebp - 0x10], 0
je 0x4a6d19
xor edx, edx
push ebp
push 0x4a6d05
push dword fs:[edx]
mov dword fs:[edx], esp
xor eax, eax
mov dword [ebp - 0xc], eax
push 0
push 0x4000100
push 0
push 0
push 0
lea edx, [ebp - 0x2034]
mov eax, dword [ebp - 4]
call fcn.004a6710
mov eax, dword [ebp - 0x2034]
call fcn.004042b8
push eax
push 0x4a6d70
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4a6a74
mov eax, esi
call fcn.004a6e6c
jmp 0x4a6a7c
lea eax, [esi + 4]
call fcn.00403e74
cmp dword [ebp - 0xc], 0
je 0x4a6cee
xor edx, edx
push ebp
push 0x4a6ce7
push dword fs:[edx]
mov dword fs:[edx], esp
xor ebx, ebx
cmp byte [esi + 0x34], 0
jne 0x4a6ad0
mov eax, dword [ebp + 0xc]
push eax
push edi
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_HttpSendRequestA
test eax, eax
je 0x4a6abf
lea eax, [esi + 4]
call fcn.00403e74
jmp 0x4a6bb2
mov eax, esi
call fcn.004a6e6c
mov ebx, 3
jmp 0x4a6bb2
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x21]
push eax
mov cl, 1
xor edx, edx
mov eax, esi
call fcn.004a60ac
test al, al
jne 0x4a6baa
cmp byte [ebp - 0x21], 0
je 0x4a6ba3
cmp byte [esi + 0x35], 0
je 0x4a6ba3
cmp dword [esi + 0x38], 0
je 0x4a6ba3
push 0x10
push 0x4a6d78
push dword [esi + 4]
push 0x4a6d88
push 0x4a6d94
lea eax, [ebp - 0x2038]
mov edx, 3
call fcn.004041b4
mov eax, dword [ebp - 0x2038]
call fcn.004042b8
push eax
push 0
call sub.user32.dll_MessageBoxA_1
mov eax, dword [esi + 0x38]
mov eax, dword [eax + 0x350]
test eax, eax
je 0x4a6b6e
push 0
push eax
call sub.wininet.dll_InternetHangUp
mov eax, dword [esi + 0x38]
xor edx, edx
mov dword [eax + 0x350], edx
push 0
mov eax, dword [esi + 0x38]
add eax, 0x350
push eax
push 1
push 0x4a6db0
push 0
call sub.wininet.dll_InternetDial
test eax, eax
je 0x4a6ad0
lea eax, [esi + 4]
mov edx, 0x4a6dbc
call fcn.00403ec8
mov ebx, 3
jmp 0x4a6bb2
mov ebx, 3
jmp 0x4a6bb2
lea eax, [esi + 4]
call fcn.00403e74
cmp ebx, 3
jge 0x4a6cd0
mov bl, 1
push 0
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetQueryDataAvailable
test eax, eax
jne 0x4a6bde
mov eax, esi
call fcn.004a6e6c
jmp 0x4a6cd0
lea eax, [ebp - 0x2029]
xor ecx, ecx
mov edx, 0x2001
call fcn.00402ca0
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0x2000
lea eax, [ebp - 0x2029]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x4a6cc9
cmp dword [ebp - 0x18], 0
jne 0x4a6c2e
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.004a5e04
mov byte [ebp - 5], al
jmp 0x4a6cd0
mov eax, dword [ebp - 0x18]
mov byte [ebp + eax - 0x2029], 0
test bl, bl
je 0x4a6c75
cmp byte [ebp + 8], 0
je 0x4a6c75
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x2029]
call fcn.00409e34
lea ecx, [esi + 0x2c]
lea edx, [ebp - 0x28]
mov eax, esi
call fcn.004a5a88
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
call fcn.004040fc
cmp dword [esi + 0x2c], 0
jle 0x4a6c94
sub dword [ebp - 0x18], 0x14
jmp 0x4a6c94
lea edx, [ebp - 0x203c]
lea eax, [ebp - 0x2029]
call fcn.00409e34
mov edx, dword [ebp - 0x203c]
lea eax, [ebp - 0x1c]
call fcn.004040fc
xor ebx, ebx
cmp byte [ebp + 8], 0
je 0x4a6bbd
mov eax, dword [ebp - 0x18]
add dword [esi + 0x28], eax
cmp word [esi + 0x22], 0
je 0x4a6bbd
mov eax, dword [esi + 0x28]
push eax
mov eax, dword [esi + 0x2c]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, esi
mov eax, dword [esi + 0x24]
call dword [esi + 0x20]
jmp 0x4a6bbd
mov eax, esi
call fcn.004a6e6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a6cee
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a6d19
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
lea eax, [esi + 4]
mov edx, 0x4a6dd8
call fcn.00403ec8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a6d56
lea eax, [ebp - 0x203c]
mov edx, 4
call fcn.00403e98
lea eax, [ebp - 0x28]
call fcn.00403e74
lea eax, [ebp - 0x1c]
call fcn.00403e74
lea eax, [ebp - 4]
call fcn.00403e74
ret