Function at 0x405d20
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Send http request

Disassembly:
sub esp, 0x408
mov eax, dword [0x41e3fc]
mov ecx, dword [0x41e3f8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x41c]
and eax, 0xffff
push edi
mov edi, dword [esp + 0x41c]
and esi, 0xffff
push eax
push ecx
push esi
xor ebp, ebp
push edi
push str.connecting_to__s:_hu_via_proxy__s:_hu
push ebp
push 4
mov dword [esp + 0x2c], esi
call fcn.00404de0
mov edx, dword [esp + 0x440]
mov ax, word [0x41e3fc]
mov ecx, dword [0x41e3f8]
push edx
push ebp
push ebp
push ebp
push eax
push ecx
call fcn.00405b90
mov ebx, eax
add esp, 0x34
cmp ebx, 0xffffffff
jne 0x405dc4
mov edx, dword [0x41e3fc]
mov eax, dword [0x41e3f8]
and edx, 0xffff
push edx
push eax
push str.cant_connect_to_proxy_server_at__s:_hu
call dword [sym.imp.MSVCRT.dll__errno]
mov ecx, dword [eax]
push ecx
push ebp
call fcn.00404de0
add esp, 0x14
or eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x408
ret
push str.connected_to_proxy
push 0
push 5
call fcn.00404de0
push esi
push edi
push str.CONNECT__s:_hu_HTTP_1.0_r_nUser_Agent:_Zebedee_r_n_r_n
lea edx, [esp + 0x2c]
push 0x400
push edx
mov byte [esp + 0x434], 0
call dword [sym.imp.MSVCRT.dll__snprintf]
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x20
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0
lea eax, [esp + 0x18]
push ecx
push eax
push ebx
call sub.WS2_32.dll_send
test eax, eax
jg 0x405e2c
push str.failed_writing_to_proxy_server
call dword [sym.imp.MSVCRT.dll__errno]
mov ecx, dword [eax]
push ecx
push 0
call fcn.00404de0
add esp, 0xc
push str.written_connect_string
push 0
push 5
call fcn.00404de0
add esp, 0xc
lea edx, [esp + 0x14]
lea esi, [esp + 0x14]
push 0
push 0x400
push edx
push ebx
call sub.WS2_32.dll_recv
test eax, eax
jle 0x405eac
mov edi, dword [sym.imp.MSVCRT.dll_strncmp]
add esi, eax
add ebp, eax
mov ecx, esi
sub ecx, eax
mov byte [esi], 0
push ecx
push eax
push str.read__d_bytes_from_proxy:__s
push 0
push 5
call fcn.00404de0
add esp, 0x14
cmp ebp, 0x400
jge 0x405ed8
push 4
lea edx, [esi - 4]
push str._r_n_r_n
push edx
call edi
add esp, 0xc
test eax, eax
je 0x405ed8
mov eax, 0x400
push 0
sub eax, ebp
push eax
push esi
push ebx
call sub.WS2_32.dll_recv
test eax, eax
jg 0x405e5d
push str.failed_reading_response_from_proxy
call dword [sym.imp.MSVCRT.dll__errno]
mov ecx, dword [eax]
push ecx
push 0
call fcn.00404de0
add esp, 0xc
push ebx
call sub.WS2_32.dll_closesocket
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x408
ret
push 0xc
lea edx, [esp + 0x18]
push str.HTTP_1.0_200
push edx
call edi
add esp, 0xc
test eax, eax
je 0x405f3b
lea eax, [esp + 0x14]
push 0xd
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
je 0x405f04
mov byte [eax], 0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x41c]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
push str.proxy_server_refused_connection_to__s:_h___s_
push 0
push 0
call fcn.00404de0
add esp, 0x18
push ebx
call sub.WS2_32.dll_closesocket
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x408
ret
push str.connection_via_proxy_successful
push 0
push 4
call fcn.00404de0
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x408
ret