Function at 0x41d060
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
push edi
mov ebp, eax
push esi
push ebx
sub esp, 0xe3c
test cl, cl
mov dword [esp + 0x28], edx
je 0x41d373
mov eax, dword [eax + 0x2b8]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x2c8]
mov dword [esp + 8], str.CONNECT__s:_s_HTTP_1.0_r_n_r_n
mov dword [esp + 4], 0x400
mov dword [esp + 0xc], eax
lea eax, [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 0x20], eax
call sym._snprintf_1
cmp byte [0x732fa1], 0
je 0x41d11e
cmp byte [0x745ef7], 0
jne 0x41d0cb
cmp byte [0x732fa0], 0
je 0x41d515
mov eax, dword [esp + 0x20]
lea ebx, [esp + 0x430]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x2d0]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x2cc]
mov dword [esp + 8], str.Sending_proxy__s:_s____s
mov dword [esp + 4], 0xa00
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call sym._snprintf_1
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 4
call sym.__applog
mov edx, dword [esp + 0x20]
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x41d122
mov ecx, eax
mov edi, dword [esp + 0x20]
mov dword [esp + 0xc], 0
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea ecx, [edx + 2]
mov ebx, eax
mov dword [esp + 4], edi
cmove edx, ecx
add bl, al
mov ebx, dword [esp + 0x28]
sbb edx, 3
sub edx, edi
mov dword [esp + 8], edx
mov dword [esp], ebx
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [sym.imp.WS2_32.dll_recv]
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xc
mov dword [esp + 4], edi
mov dword [esp], ebx
mov dword [esp + 0x24], eax
call eax
sub esp, 0x10
test eax, eax
jle 0x41d430
cmp byte [0x732fa1], 0
mov byte [esp + eax + 0x30], 0
je 0x41d21c
cmp byte [0x745ef7], 0
jne 0x41d1c9
cmp byte [0x732fa0], 0
je 0x41d530
mov eax, dword [esp + 0x20]
lea ebx, [esp + 0x430]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x2d0]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x2cc]
mov dword [esp + 8], str.Received_from_proxy__s:_s____s
mov dword [esp + 4], 0xa00
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call sym._snprintf_1
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 4
call sym.__applog
mov esi, dword [esp + 0x20]
mov edi, str.HTTP_1.1_200
mov ecx, 0xd
repe cmpsb byte [esi], byte es:[edi]
jne 0x41d3b4
mov edi, dword [esp + 0x28]
lea ebx, [esp + 0x430]
xor esi, esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], ebx
mov dword [esp], edi
call dword [esp + 0x24]
sub esp, 0x10
cmp eax, 0xffffffff
je 0x41d300
movzx eax, byte [esp + 0x430]
mov ecx, dword [esp + 0x20]
cmp al, 0xff
mov byte [ecx + esi], al
je 0x41d305
add esi, 1
cmp esi, 4
jne 0x41d23f
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0x28]
lea esi, [esi]
mov esi, dword [esp + 0x20]
mov ecx, 4
mov edi, str._r_n_r_n
repe cmpsb byte [esi], byte es:[edi]
je 0x41d490
movzx eax, byte [esp + 0x31]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], ebx
mov dword [esp], ebp
mov byte [esp + 0x30], al
movzx eax, byte [esp + 0x32]
mov byte [esp + 0x31], al
movzx eax, byte [esp + 0x33]
mov byte [esp + 0x32], al
call dword [esp + 0x24]
sub esp, 0x10
cmp eax, 0xffffffff
je 0x41d480
movzx eax, byte [esp + 0x430]
cmp al, 0xff
mov byte [esp + 0x33], al
jne 0x41d290
mov ebp, dword [esp + 0x2c]
jmp 0x41d305
mov byte [esp + esi + 0x30], 0xff
cmp byte [0x745ef7], 0
jne 0x41d320
cmp byte [0x732fa0], 0
jne 0x41d320
mov eax, dword [0x5bc2e0]
test eax, eax
jle 0x41d364
mov eax, dword [ebp + 0x2d0]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x2cc]
mov dword [esp + 8], str.Couldnt_read_HTTP_byte_from_proxy__s:_s
mov dword [esp + 4], 0xa00
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call sym._snprintf_1
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 1
call sym.__applog
xor esi, esi
add esp, 0xe3c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [eax + 0x2b8]
mov eax, dword [eax + 0x2c8]
mov dword [esp + 8], str.CONNECT__s:_s_HTTP_1.1_r_nHost:__s:_s_r_n_r_n
mov dword [esp + 4], 0x400
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], edx
mov dword [esp], eax
mov dword [esp + 0x20], eax
call sym._snprintf_1
jmp 0x41d0ac
mov esi, dword [esp + 0x20]
mov edi, str.HTTP_1.0_200
mov ecx, 0xd
repe cmpsb byte [esi], byte es:[edi]
je 0x41d232
cmp byte [0x745ef7], 0
jne 0x41d3ea
cmp byte [0x732fa0], 0
jne 0x41d3ea
mov edx, dword [0x5bc2e0]
test edx, edx
jle 0x41d364
mov eax, dword [esp + 0x20]
lea ebx, [esp + 0x430]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x2d0]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x2cc]
mov dword [esp + 8], str.HTTP_Error_from_proxy__s:_s____s
mov dword [esp + 4], 0xa00
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call sym._snprintf_1
jmp 0x41d34c
cmp byte [0x745ef7], 0
jne 0x41d450
cmp byte [0x732fa0], 0
jne 0x41d450
mov ecx, dword [0x5bc2e0]
test ecx, ecx
jle 0x41d364
mov eax, dword [ebp + 0x2d0]
lea ebx, [esp + 0x430]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x2cc]
mov dword [esp + 8], str.Couldnt_read_from_proxy__s:_s_after_sending_CONNECT
mov dword [esp + 4], 0xa00
mov dword [esp + 0xc], eax
jmp 0x41d344
mov ebp, dword [esp + 0x2c]
mov byte [esp + 0x33], 0xff
jmp 0x41d305
movzx esi, byte [0x732fa1]
mov ebp, dword [esp + 0x2c]
mov eax, esi
test al, al
je 0x41d542
cmp byte [0x745ef7], 0
jne 0x41d4c4
cmp byte [0x732fa0], 0
jne 0x41d4c4
cmp dword [0x5bc2e0], 3
jle 0x41d366
mov eax, dword [ebp + 0x2d0]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x2cc]
mov dword [esp], ebx
mov dword [esp + 8], str.Success_negotiating_with__s:_s_HTTP_proxy
mov dword [esp + 4], 0xa00
mov dword [esp + 0xc], eax
call sym._snprintf_1
mov dword [esp + 4], ebx
mov dword [esp + 8], 0
mov dword [esp], 4
call sym.__applog
add esp, 0xe3c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [0x5bc2e0], 3
jle 0x41d11e
jmp 0x41d0cb
cmp dword [0x5bc2e0], 3
jle 0x41d21c
jmp 0x41d1c9
mov esi, 1
jmp 0x41d366