Function at 0x4082a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534f3f
mov eax, dword fs:[0]
push eax
mov eax, 0x20d4
call fcn.004b0a90
mov eax, dword [0x58c758]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20d8], ecx
cmp dword [ebp + 8], 0
je 0x4082eb
mov eax, dword [ebp + 8]
push eax
call fcn.004b1d80
add esp, 4
test eax, eax
ja 0x4082f2
xor eax, eax
jmp 0x408624
xor ecx, ecx
mov word [ebp - 0x2030], cx
xor edx, edx
mov dword [ebp - 0x202e], edx
mov dword [ebp - 0x202a], edx
mov dword [ebp - 0x2026], edx
mov word [ebp - 0x2022], dx
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x2020], eax
cmp dword [ebp - 0x2020], 0xffffffff
jne 0x408338
xor eax, eax
jmp 0x408624
mov eax, 2
mov word [ebp - 0x2030], ax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x202c], eax
movzx edx, word [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x202e], ax
mov dword [ebp - 0x2034], 0x4e20
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push 4
lea eax, [ebp - 0x2034]
push eax
push 0x1005
push 0xffff
mov ecx, dword [ebp - 0x2020]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4083bb
mov edx, dword [ebp - 0x2020]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x408624
push 4
lea eax, [ebp - 0x2034]
push eax
push 0x1006
push 0xffff
mov ecx, dword [ebp - 0x2020]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 0x10], eax
push 0x10
lea edx, [ebp - 0x2030]
push edx
mov eax, dword [ebp - 0x2020]
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x10], 0xffffffff
jne 0x40840e
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp + 0x10]
jl 0x4083de
cmp dword [ebp - 0x10], 0xffffffff
jne 0x408428
mov eax, dword [ebp - 0x2020]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x408624
lea ecx, [ebp - 0x203c]
call fcn.00403840
mov dword [ebp - 4], 0
push str._entlog.cab_srcent
push str.GET__s_HTTP_1.1_r_n_r_n
lea ecx, [ebp - 0x203c]
push ecx
call fcn.00409170
add esp, 0xc
lea ecx, [ebp - 0x203c]
call fcn.0043e290
push eax
lea ecx, [ebp - 0x20c4]
call fcn.004087b0
mov dword [ebp - 0x20dc], eax
mov edx, dword [ebp - 0x20dc]
mov dword [ebp - 0x20e0], edx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20e0]
call fcn.0043e290
push eax
lea ecx, [ebp - 0x2038]
call fcn.00408660
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20c4]
call fcn.004087e0
push 0
lea ecx, [ebp - 0x2038]
call fcn.004086e0
push eax
lea ecx, [ebp - 0x2038]
call fcn.0043e290
push eax
mov eax, dword [ebp - 0x2020]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x408519
mov ecx, dword [ebp - 0x2020]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 0x20c8], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2038]
call fcn.00401eb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x203c]
call fcn.00401eb0
mov eax, dword [ebp - 0x20c8]
jmp 0x408624
mov byte [ebp - 0x201c], 0
push 0x1fff
push 0
lea edx, [ebp - 0x201b]
push edx
call fcn.004b0ac0
add esp, 0xc
push 0
push 0x2000
lea eax, [ebp - 0x201c]
push eax
mov ecx, dword [ebp - 0x2020]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x2020]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
cmp dword [ebp - 0x10], 0xffffffff
jne 0x40859d
mov dword [ebp - 0x20cc], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2038]
call fcn.00401eb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x203c]
call fcn.00401eb0
mov eax, dword [ebp - 0x20cc]
jmp 0x408624
push str.HTTP_1.1_200
lea eax, [ebp - 0x201c]
push eax
call fcn.00408640
add esp, 8
mov dword [ebp - 0x2040], eax
cmp dword [ebp - 0x2040], 0
jne 0x4085f3
mov dword [ebp - 0x20d0], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2038]
call fcn.00401eb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x203c]
call fcn.00401eb0
mov eax, dword [ebp - 0x20d0]
jmp 0x408624
mov dword [ebp - 0x20d4], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2038]
call fcn.00401eb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x203c]
call fcn.00401eb0
mov eax, dword [ebp - 0x20d4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004b0a79
mov esp, ebp
pop ebp
ret 0xc