Function at 0x4064d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x586f0c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 1
call fcn.00401082
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
jne 0x40651f
call sub.WS2_32.dll_WSAGetLastError
push eax
call fcn.00415fb0
push eax
push str.Proxy_connection_failed:__s._n
call fcn.004010eb
add esp, 0xc
or eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bf32e
mov esp, ebp
pop ebp
ret
push ebx
push esi
lea eax, [ebp - 0x220]
xor ebx, ebx
push eax
mov esi, 0x58a180
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x21c], ebx
call fcn.004062c0
mov ecx, dword [ebp - 0x220]
add esp, 4
push ebx
push ecx
mov esi, eax
push esi
push edi
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x40658c
call sub.WS2_32.dll_WSAGetLastError
push eax
call fcn.00415fb0
push eax
push str.Error_sending_proxy_request:__s._n
call fcn.004010eb
push esi
call fcn.004be321
add esp, 0x10
pop esi
pop ebx
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bf32e
mov esp, ebp
pop ebp
ret
push esi
call fcn.004be321
lea edx, [ebp - 0x214]
push edi
push edx
call fcn.00401230
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x214]
push ecx
call fcn.00401131
add esp, 0x14
test eax, eax
je 0x4065c3
push str.Error_reading_proxy_response_Status_Line._n
jmp 0x4067f7
mov edx, dword [ebp - 0x218]
push edx
call fcn.0040112c
mov esi, eax
push esi
push str.Proxy_returned_status_code__d._n
call fcn.00401113
mov eax, dword [ebp - 0x218]
push eax
call fcn.004be321
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x214]
push edx
mov dword [ebp - 0x218], ebx
call fcn.00401235
add esp, 0x18
test eax, eax
jne 0x4067f2
cmp esi, 0x197
jne 0x406840
cmp dword [0x58a29c], ebx
je 0x406840
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x224]
push ecx
call fcn.0040100f
add esp, 8
test eax, eax
je 0x406657
push str.Error_parsing_proxy_response_header._n
call fcn.004010eb
add esp, 4
jmp 0x406806
mov edx, dword [ebp - 0x21c]
push edx
call fcn.004be321
mov ecx, dword [ebp - 0x224]
lea eax, [ebp - 0x240]
push eax
push ecx
mov dword [ebp - 0x21c], ebx
call fcn.00401023
add esp, 0xc
test eax, eax
jne 0x4066a1
push str.Error_getting_Proxy_Authenticate_challenge._n
call fcn.004010eb
mov edx, dword [ebp - 0x224]
push edx
call fcn.00401186
add esp, 8
jmp 0x406806
mov eax, dword [ebp - 0x224]
push eax
call fcn.00401186
push 1
call fcn.00401082
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x4066dc
call sub.WS2_32.dll_WSAGetLastError
push eax
call fcn.00415fb0
push eax
push str.Proxy_reconnection_failed:__s._n
call fcn.004010eb
add esp, 0xc
jmp 0x406806
lea ecx, [ebp - 0x240]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0x58a180
call fcn.00406320
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x40671b
push str.Error_building_Proxy_Authorization_header._n
call fcn.004010eb
lea eax, [ebp - 0x240]
push eax
call fcn.00401014
add esp, 8
jmp 0x4067ff
push esi
push str.Reconnection_header:_n_s
call fcn.00401113
mov ecx, dword [ebp - 0x220]
add esp, 8
push ebx
push ecx
push esi
push edi
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x40676d
call sub.WS2_32.dll_WSAGetLastError
push eax
call fcn.00415fb0
push eax
push str.Error_sending_proxy_request:__s._n
call fcn.004010eb
push esi
call fcn.004be321
lea edx, [ebp - 0x240]
push edx
call fcn.00401014
add esp, 0x14
jmp 0x4067ff
push esi
call fcn.004be321
lea eax, [ebp - 0x240]
push eax
call fcn.00401014
lea ecx, [ebp - 0x214]
push edi
push ecx
call fcn.00401230
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x214]
push eax
call fcn.00401131
add esp, 0x18
test eax, eax
je 0x4067ad
push str.Error_reading_proxy_response_Status_Line._n
jmp 0x4067f7
mov ecx, dword [ebp - 0x218]
push ecx
call fcn.0040112c
mov esi, eax
push esi
push str.Proxy_returned_status_code__d._n
call fcn.00401113
mov edx, dword [ebp - 0x218]
push edx
call fcn.004be321
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x214]
push ecx
mov dword [ebp - 0x218], ebx
call fcn.00401235
add esp, 0x18
test eax, eax
je 0x406840
push str.Error_reading_proxy_response_header._n
call fcn.004010eb
add esp, 4
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x218]
cmp eax, ebx
je 0x406819
push eax
call fcn.004be321
add esp, 4
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x40682c
push eax
call fcn.004be321
add esp, 4
pop esi
pop ebx
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bf32e
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x21c]
push edx
call fcn.004be321
add esp, 4
mov dword [ebp - 0x21c], ebx
cmp esi, 0xc8
je 0x40687f
push esi
push str.Proxy_returned_status_code__d._n
call fcn.004010eb
add esp, 8
pop esi
pop ebx
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bf32e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x214]
push ecx
call fcn.004011bd
mov edx, dword [ebp - 0x228]
push edx
push eax
push 1
call fcn.00401050
mov ecx, dword [ebp - 4]
add esp, 0x14
pop esi
pop ebx
mov eax, edi
xor ecx, ebp
pop edi
call fcn.004bf32e
mov esp, ebp
pop ebp
ret