Function at 0x508f50
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
sub esp, 0x208
push ebx
push ebp
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x21c]
test eax, eax
je 0x5091f7
mov ebp, dword [esp + 0x224]
test ebp, ebp
je 0x5091f7
lea eax, [ebx + 0x8c]
push 0
push 0
push eax
mov ecx, ebx
call fcn.00508a90
test eax, eax
je 0x5091f7
mov al, byte [ebx + 0x10c]
lea esi, [ebx + 0x10c]
test al, al
je 0x50903a
push 0x581840
push esi
call dword [sym.imp.MSVCRT.dll_strstr]
push 0x58ea98
push esi
mov edi, eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0x10
test eax, eax
je 0x50900b
test edi, edi
je 0x50900b
cmp eax, edi
jae 0x50900b
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x21c]
push eax
push ecx
mov ecx, ebx
call fcn.00509210
lea ecx, [esp + 0x10]
mov esi, eax
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 0xc
lea edx, [esp + 0x10]
mov ecx, ebx
push edx
push 0
push esi
call fcn.0050aa00
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ebp
push str._sProxy_Authorization:_Basic__s_r_n_r_n
push 0x1ff
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
jmp 0x509053
push ebp
push str._s_r_n
lea edx, [esp + 0x20]
push 0x1ff
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
or ebp, 0xffffffff
lea edi, [esp + 0x18]
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [ebx + 4]
mov dword [esp + 0x14], 0xa
not ecx
dec ecx
cmp eax, ebp
mov esi, ecx
lea edi, [esp + 0x18]
je 0x5091f7
lea eax, [esp + 0x18]
test eax, eax
je 0x5091f7
test esi, esi
jl 0x5091f7
jle 0x5090e8
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov ecx, dword [ebx + 4]
push 0
push esi
push edi
push ecx
call sub.WS2_32.dll_send
cmp eax, 1
jge 0x5090d5
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x50917f
mov eax, dword [esp + 0x14]
dec eax
test eax, eax
mov dword [esp + 0x14], eax
jle 0x50917f
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x5090e1
push eax
push 0x5a1094
add edi, eax
sub esi, eax
call ebp
test esi, esi
jg 0x509098
or ebp, 0xffffffff
lea eax, [esp + 0x18]
push 0xfa
push eax
mov ecx, ebx
call fcn.0050abd0
test eax, eax
je 0x5091f7
mov ecx, 5
mov edi, str.HTTP_
lea esi, [esp + 0x18]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x5091bc
lea eax, [esp + 0x18]
push 0x5829dc
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x5091bc
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
cmp eax, 0xc8
je 0x5091a1
lea eax, [ebx + 0x8c]
lea ecx, [esp + 0x18]
push eax
push ecx
push str.HTTP_Proxy:__s___s_
push 1
push 0x596558
call fcn.004aa400
mov eax, dword [ebx + 4]
add esp, 0x14
cmp eax, ebp
je 0x5091f7
push 2
push eax
call sub.WS2_32.dll_shutdown
mov edx, dword [ebx + 4]
push edx
jmp 0x5091ef
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
je 0x5091f7
push 2
push eax
call sub.WS2_32.dll_shutdown
mov edx, dword [ebx + 4]
push edx
call sub.WS2_32.dll_closesocket
mov dword [ebx + 4], 0xffffffff
jmp 0x5091f7
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x208
ret 0xc
lea eax, [ebx + 0x8c]
push eax
lea eax, [esp + 0x1c]
push eax
push str.HTTP_Proxy:_invalid_answer__s___s_
push 1
push 0x596558
call fcn.004aa400
mov eax, dword [ebx + 4]
add esp, 0x14
cmp eax, ebp
je 0x5091f7
push 2
push eax
call sub.WS2_32.dll_shutdown
mov ecx, dword [ebx + 4]
push ecx
call sub.WS2_32.dll_closesocket
mov dword [ebx + 4], ebp
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret 0xc