Function at 0x42fcc0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x244
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
push edi
mov edi, dword [ebp + 0x14]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
push edi
push eax
push str.Establish_HTTP_proxy_tunnel_to__s:_d_n
push ebx
mov dword [esp + 0x40], 0xe10
call fcn.0042a770
mov eax, dword [ebx + 0x50]
add esp, 0x10
test eax, eax
je 0x42fd0f
mov ecx, dword [esi + 0x330]
jmp 0x42fd14
mov ecx, 0x4747f4
mov al, byte [esi + 0x2f5]
test al, al
je 0x42fd26
mov eax, dword [esi + 0x32c]
jmp 0x42fd2b
mov eax, 0x4747f4
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
push edi
push ecx
push str.CONNECT__s:_d_HTTP_1.0_r_n_s_s_r_n
push esi
push edx
call fcn.0042a910
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x42fd61
push str.Failed_sending_CONNECT_to_proxy
push ebx
call fcn.0042a840
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x88]
test eax, eax
je 0x42fdc7
mov eax, dword [esi + 0x2a4]
mov ecx, dword [esi + 0x2a0]
push eax
push ecx
call fcn.0042b000
push edx
push eax
call fcn.0042b020
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, eax
mov eax, dword [ebx + 0x88]
sub eax, ecx
add esp, 0x10
test eax, eax
mov dword [esp + 0x30], eax
jg 0x42fdc7
push str.Transfer_aborted_due_to_timeout
push ebx
call fcn.0042a840
add esp, 8
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
lea eax, [ebx + 0x294]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
xor eax, eax
mov ecx, 0x41
lea esi, [esp + 0x40]
lea edi, [esp + 0x148]
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], 1
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov byte [esp + 0xf], 1
jmp 0x42fe10
mov al, byte [esp + 0xf]
test al, al
je 0x42ff8f
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x42ffd2
mov eax, dword [esp + 0x30]
mov ecx, 0x41
lea esi, [esp + 0x148]
lea edi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0xc]
lea ecx, [esp + 0x38]
push ecx
push 0
push 0
lea edx, [esp + 0x4c]
mov dword [esp + 0x44], eax
push edx
lea eax, [edi + 1]
push eax
mov dword [esp + 0x50], 0
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
je 0x42ff6b
test eax, eax
je 0x42ff5c
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
push ecx
mov edx, 0x4000
sub edx, eax
mov eax, dword [ebp + 8]
push edx
push esi
push edi
push eax
call fcn.0042a6b0
add esp, 0x14
test eax, eax
jl 0x42ff81
je 0x42feac
mov byte [esp + 0xf], 0
jmp 0x42ff81
mov eax, dword [esp + 0x2c]
test eax, eax
jg 0x42fec3
mov byte [esp + 0xf], 0
push str.Connection_aborted
jmp 0x42ff70
mov edx, dword [esp + 0x18]
add edx, eax
test eax, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x28], 0
jle 0x42ff81
lea ecx, [ecx]
mov edx, dword [esp + 0x14]
mov cl, byte [esi]
inc edx
cmp cl, 0xa
mov dword [esp + 0x14], edx
jne 0x42ff3d
mov edi, dword [esp + 0x20]
cmp byte [edi], 0xd
je 0x42ff51
mov al, byte [ebx + 0x154]
test al, al
je 0x42ff12
mov ecx, edx
push ecx
push edi
push 1
push ebx
call fcn.0042a700
add esp, 0x10
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x38]
push eax
push str.HTTP_1._d__d
push edi
call fcn.004532fc
mov eax, dword [esp + 0x3c]
lea ecx, [esi + 1]
add esp, 0x10
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x28]
inc esi
inc ecx
cmp ecx, eax
mov dword [esp + 0x28], ecx
jl 0x42fee0
mov dword [esp + 0x1c], esi
jmp 0x42ff81
mov dword [esp + 0x1c], esi
mov byte [esp + 0xf], 0
jmp 0x42ff81
mov dword [esp + 0x10], 2
push str.Transfer_aborted_due_to_timeout
jmp 0x42ff78
push str.Transfer_aborted_due_to_select___error
mov dword [esp + 0x14], 1
push ebx
call fcn.0042a840
add esp, 8
cmp dword [esp + 0x18], 0x4000
jl 0x42fe10
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x42ffd2
mov eax, dword [esp + 0x24]
cmp eax, 0xc8
je 0x42ffde
cmp eax, 0x197
jne 0x42ffc3
push str.Proxy_requires_authorization_
push ebx
call fcn.0042a840
add esp, 8
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push str.Received_error_code__d_from_proxy
push ebx
call fcn.0042a840
add esp, 0xc
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Proxy_replied_to_CONNECT_request_n
push ebx
call fcn.0042a770
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret