Function at 0x6b462cb0
Capabilities:
Check http status code

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x40
mov ebx, dword [esp + 0x54]
mov eax, dword [ebx + 0xc]
mov ebp, dword [eax + 0x4a8]
test ebp, ebp
mov dword [esp + 0x28], eax
mov edi, eax
je 0x6b462d4a
mov dword [esp + 0x3c], 0
test ebp, ebp
je 0x6b4639ab
cmp dword [ebp + 0x258], 1
ja 0x6b4639ab
mov eax, dword [esp + 0x58]
mov eax, dword [edi + eax*4 + 0x130]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x114]
mov dword [esp + 0x24], eax
and byte [edi + 0x24c], 0xef
lea eax, [ebp + 0x234]
mov dword [esp + 0xc], eax
lea eax, [ebx + 0xb88]
mov dword [esp + 0x2c], eax
lea eax, [ebp + 0x224]
mov dword [esp + 0x18], eax
lea eax, [ebx + 0xe0]
mov dword [esp + 0x14], eax
lea ecx, [ebp + 0x250]
mov dword [esp + 4], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 8], ebp
jmp 0x6b462e08
push ebx
call fcn.6b485c60
add esp, 4
mov esi, eax
test eax, eax
jne 0x6b463a22
mov eax, dword [0x6b83acf0]
push 0x260
push 1
call dword [eax]
add esp, 8
test eax, eax
je 0x6b463734
mov esi, eax
push str.allocate_connect_buffer_
push ebx
call fcn.6b4767f0
add esp, 8
mov edi, dword [esp + 0x28]
mov dword [edi + 0x4a8], esi
mov eax, esi
add eax, 0x224
push 0x4000
push eax
call fcn.6b44e0a0
add esp, 8
mov eax, dword [ebx + 0x114]
mov dword [esi + 0x220], eax
mov dword [ebx + 0x114], esi
push 0
push edi
call fcn.6b445a40
add esp, 8
mov dword [esi + 0x258], 0
mov dword [esi + 0x248], 1
mov dword [esi + 0x254], 0
mov dword [esi + 0x250], 0
and byte [esi + 0x25c], 0xfd
mov edi, dword [ebx + 0xc]
mov ebp, dword [edi + 0x4a8]
jmp 0x6b462cce
test eax, eax
je 0x6b463805
cmp dword [ebp + 0x258], 0
jne 0x6b462f9f
push dword [esp + 0x60]
mov esi, dword [esp + 0x60]
push esi
push str.Establish_HTTP_proxy_tunnel_to__s:_d
push ebx
call fcn.6b4767f0
add esp, 0x10
push dword [ebx + 0x108]
mov eax, dword [0x6b83acf4]
call dword [eax]
add esp, 4
mov dword [ebx + 0x108], 0
push 0x100000
push dword [esp + 0x10]
call fcn.6b44e0a0
add esp, 8
cmp dword [edi + 0x64], esi
je 0x6b462e70
push 0x3a
push esi
call sub.msvcrt.dll_strchr
add esp, 8
xor ecx, ecx
test eax, eax
setne cl
jmp 0x6b462e7c
mov ecx, dword [edi + 0x24c]
shr ecx, 0xc
and ecx, 1
test ecx, ecx
mov eax, 0x6b72e9a0
mov edx, 0x6b72e6ef
cmove eax, edx
mov ecx, 0x6b72e9a2
cmove ecx, edx
push dword [esp + 0x60]
push ecx
push esi
push eax
push str._s_s_s:_d
call sym.libcurl.dll_curl_maprintf
add esp, 0x14
mov esi, 0x1b
test eax, eax
je 0x6b4639c4
mov edi, eax
push 0x6b72e9a4
push dword [esp + 8]
push ebx
call fcn.6b45a8f0
add esp, 0xc
mov ecx, ebx
xor ebx, ebx
test eax, eax
jne 0x6b462eec
push edi
push str.Host:__s_r_n
mov ebx, ecx
call sym.libcurl.dll_curl_maprintf
mov ecx, ebx
add esp, 8
mov ebx, eax
test eax, eax
je 0x6b463993
push 1
mov dword [esp + 0x24], edi
push edi
push 0
push 0x6b72e6c6
push dword [esp + 0x14]
push ecx
call fcn.6b45b010
add esp, 0x18
mov esi, eax
test eax, eax
jne 0x6b462f70
mov eax, dword [esp + 4]
cmp dword [eax + 0xb8], 1
mov eax, 0x6b72e6d2
mov ecx, 0x6b72e6ce
cmove eax, ecx
test ebx, ebx
mov ecx, ebx
mov esi, 0x6b72e6ef
cmove ecx, esi
mov edi, dword [esp + 0x54]
mov edx, dword [edi + 0xb0c]
test edx, edx
cmove edx, esi
push edx
push ecx
push eax
push dword [esp + 0x2c]
push str.CONNECT__s_HTTP__s_r_n_s_s
push dword [esp + 0x20]
call fcn.6b44e2a0
add esp, 0x18
mov esi, eax
test eax, eax
je 0x6b46355b
push str.Failed_sending_CONNECT_to_proxy
push edi
call fcn.6b476950
add esp, 8
push ebx
mov edi, dword [0x6b83acf4]
call dword [edi]
add esp, 4
push dword [esp + 0x20]
call dword [edi]
add esp, 4
test esi, esi
mov ebx, dword [esp + 0x54]
jne 0x6b4639c4
mov dword [ebp + 0x258], 1
mov edi, dword [esp + 4]
push 1
push 0
push ebx
call fcn.6b4438d0
add esp, 0xc
neg eax
mov eax, 0
sbb eax, edx
jge 0x6b463767
push dword [esp + 0x58]
push edi
call fcn.6b445a90
add esp, 8
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx + 0x1a0]
or eax, ecx
je 0x6b4639ab
cmp ecx, 1
je 0x6b463000
cmp dword [ebp + 0x248], 0
jne 0x6b463078
jmp 0x6b463610
mov eax, dword [ebp + 0x244]
test eax, eax
jne 0x6b46377f
mov eax, dword [ebx + 0x83c]
mov dword [ebx + 0x110], eax
lea eax, [esp + 0x10]
push eax
push dword [ebx + 0x4c4]
push ebx
call fcn.6b485ca0
add esp, 0xc
test eax, eax
jne 0x6b4637cc
mov eax, dword [esp + 0x10]
mov dword [ebp + 0x244], eax
test eax, eax
jne 0x6b46377f
mov eax, dword [esp + 0x24]
mov dword [eax + 0x1a0], 0
cmp dword [ebp + 0x248], 0
jne 0x6b463078
jmp 0x6b463610
test eax, eax
je 0x6b463610
lea eax, [esp + 0x10]
push eax
push 1
lea eax, [esp + 0xb]
push eax
push dword [esp + 0x3c]
push ebx
call fcn.6b477160
add esp, 0x14
cmp eax, 0x51
je 0x6b46373e
mov esi, eax
push ebx
call fcn.6b473ee0
add esp, 4
test eax, eax
jne 0x6b463745
test esi, esi
jne 0x6b4634f6
cmp dword [esp + 0x10], 0
jle 0x6b463505
cmp dword [ebp + 0x248], 2
jne 0x6b463110
mov edi, dword [esp + 0x1c]
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov edx, ecx
or edx, eax
je 0x6b46321d
mov edx, ecx
add edx, 0xffffffff
mov esi, eax
adc esi, 0xffffffff
mov dword [edi], edx
mov dword [edi + 4], esi
mov edx, 1
cmp edx, ecx
mov ecx, 0
sbb ecx, eax
mov edi, dword [esp + 4]
jl 0x6b4633b0
jmp 0x6b4635ed
push 1
lea eax, [esp + 7]
push eax
push dword [esp + 0x20]
call fcn.6b44e110
add esp, 0xc
test eax, eax
jne 0x6b46374f
cmp byte [esp + 3], 0xa
jne 0x6b4633b0
mov esi, dword [esp + 0x18]
push esi
call fcn.6b44e2d0
add esp, 4
mov ebp, eax
push esi
call fcn.6b44e2f0
add esp, 4
mov edi, eax
push eax
push ebp
push 1
push ebx
call fcn.6b4768c0
add esp, 0x10
test byte [ebx + 0x6da], 4
jne 0x6b463192
mov eax, dword [ebx + 0x6d4]
mov ecx, 0x2000000
and eax, ecx
cmp eax, 1
mov eax, 3
sbb eax, 0
push edi
push ebp
push eax
push ebx
call fcn.6b476de0
add esp, 0x10
test eax, eax
jne 0x6b46398f
mov eax, edi
sar eax, 0x1f
add dword [ebx + 0xb80], edi
adc dword [ebx + 0xb84], eax
movzx eax, byte [ebp]
cmp al, 0xd
je 0x6b4631b3
cmp al, 0xa
jne 0x6b463271
mov eax, dword [esp + 0x14]
cmp dword [eax], 0x197
mov edi, dword [esp + 4]
jne 0x6b46333f
test byte [ebx + 0xb44], 0x20
jne 0x6b46333f
mov esi, dword [esp + 8]
mov dword [esi + 0x248], 2
mov eax, dword [esi + 0x250]
mov ecx, dword [esi + 0x254]
mov edx, eax
or edx, ecx
je 0x6b463332
push ecx
push eax
push str.Ignore__I64d_bytes_of_response_body
push ebx
call fcn.6b4767f0
add esp, 0x10
mov ebp, esi
mov eax, dword [ebp + 0x248]
test eax, eax
jne 0x6b463070
jmp 0x6b46334d
mov dword [esp + 0x34], 0
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x38]
push eax
push 1
lea eax, [esp + 0xf]
push eax
push ebx
call fcn.6b461d50
add esp, 0x14
cmp eax, 0xffffffff
jne 0x6b463268
push str.chunk_reading_DONE
push ebx
call fcn.6b4767f0
add esp, 8
mov eax, ebp
mov dword [ebp + 0x248], 0
mov dword [ebp + 0x258], 2
mov edi, dword [esp + 4]
jmp 0x6b4633b0
push 0x11
push ebp
push str.WWW_Authenticate:
call sym.libcurl.dll_curl_strnequal
add esp, 0xc
test eax, eax
je 0x6b463293
xor esi, esi
mov eax, dword [esp + 0x14]
cmp dword [eax], 0x191
je 0x6b4632b8
push 0x13
push ebp
push str.Proxy_authenticate:
call sym.libcurl.dll_curl_strnequal
add esp, 0xc
test eax, eax
je 0x6b4632f8
mov esi, 1
mov eax, dword [esp + 0x14]
cmp dword [eax], 0x197
jne 0x6b4632f8
push ebp
call fcn.6b45a960
add esp, 4
test eax, eax
je 0x6b4639a2
mov edi, eax
push eax
push esi
push ebx
call fcn.6b45b490
add esp, 0xc
mov esi, eax
push edi
mov eax, dword [0x6b83acf4]
call dword [eax]
add esp, 4
test esi, esi
mov edi, dword [esp + 4]
mov ebp, dword [esp + 8]
je 0x6b4633a4
jmp 0x6b4639a7
push 0xf
push ebp
push str.Content_Length:
call sym.libcurl.dll_curl_strnequal
add esp, 0xc
test eax, eax
mov edi, dword [esp + 4]
je 0x6b463364
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
lea ecx, [eax - 0xc8]
cmp ecx, 0x63
ja 0x6b46338c
push eax
push str.Ignoring_Content_Length_in_CONNECT__03d_response
push ebx
call fcn.6b4767f0
add esp, 0xc
jmp 0x6b4633a0
test byte [esi + 0x25c], 1
jne 0x6b4633c3
mov ebp, dword [esp + 8]
mov dword [ebp + 0x248], 0
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
or eax, dword [ecx + 4]
jne 0x6b4633b0
mov dword [ebp + 0x258], 2
jmp 0x6b4633b0
push 0x6b72e89d
push str.Connection:
push ebp
call fcn.6b45bb50
add esp, 0xc
test eax, eax
je 0x6b46342d
mov ebp, dword [esp + 8]
or byte [ebp + 0x25c], 2
jmp 0x6b4633a4
add ebp, 0xf
push dword [esp + 0x1c]
push 0xa
push 0
push ebp
call fcn.6b482020
add esp, 0x10
mov ebp, dword [esp + 8]
push dword [esp + 0x18]
call fcn.6b44e0f0
add esp, 4
mov eax, dword [ebp + 0x248]
test eax, eax
jne 0x6b463078
jmp 0x6b463610
push str.Ignore_chunked_response_body
push ebx
call fcn.6b4767f0
add esp, 8
or byte [ebx + 0x11c], 8
lea eax, [ebp + 1]
cmp byte [ebp + 1], 0xa
cmovne eax, ebp
inc eax
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x14]
push ecx
push 1
push eax
push ebx
call fcn.6b461d50
add esp, 0x14
cmp eax, 0xffffffff
mov ebp, dword [esp + 8]
jne 0x6b46320a
push str.chunk_reading_DONE
push ebx
call fcn.6b4767f0
add esp, 8
mov dword [ebp + 0x248], 0
mov dword [ebp + 0x258], 2
jmp 0x6b46320a
push 0x12
push ebp
push str.Transfer_Encoding:
call sym.libcurl.dll_curl_strnequal
add esp, 0xc
test eax, eax
je 0x6b46345d
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
lea ecx, [eax - 0xc8]
cmp ecx, 0x63
ja 0x6b4634b4
push eax
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
jmp 0x6b463327
push 0x6b72e89d
push str.Proxy_Connection:
push ebp
call fcn.6b45bb50
add esp, 0xc
test eax, eax
jne 0x6b46337f
sub esp, 0x10
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x4c]
mov dword [esp + 8], eax
mov dword [esp], ebp
call fcn.6b463ad0
add esp, 0x10
cmp eax, 2
mov ebp, dword [esp + 8]
jne 0x6b4633a4
mov eax, dword [ebx + 0xe0]
mov dword [ebx + 0xb74], eax
jmp 0x6b4633a4
push str.chunked
push str.Transfer_Encoding:
push ebp
call fcn.6b45bb50
add esp, 0xc
test eax, eax
mov ebp, dword [esp + 8]
je 0x6b4633a4
push str.CONNECT_responded_chunked
push ebx
call fcn.6b4767f0
add esp, 8
or byte [ebp + 0x25c], 1
push ebx
call fcn.6b461d20
add esp, 4
jmp 0x6b4633a4
mov dword [ebp + 0x248], 0
jmp 0x6b463610
cmp dword [ebx + 0x148], 0
je 0x6b463539
cmp dword [ebx + 0x8e8], 0
je 0x6b463539
cmp dword [ebx + 0xb0c], 0
je 0x6b463539
or byte [edi + 0x24c], 0x10
push str.Proxy_CONNECT_connection_closed
push ebx
call fcn.6b4767f0
add esp, 8
xor edi, edi
jmp 0x6b46354c
push str.Proxy_CONNECT_aborted
push ebx
call fcn.6b476950
add esp, 8
mov edi, 1
mov dword [ebp + 0x248], 0
jmp 0x6b463612
push 0x6b72e6f0
push dword [esp + 8]
push edi
call fcn.6b45a8f0
add esp, 0xc
test eax, eax
je 0x6b4636e5
push str.Proxy_Connection
push dword [esp + 8]
push edi
call fcn.6b45a8f0
add esp, 0xc
test eax, eax
je 0x6b463714
push dword [esp + 0xc]
push 1
push edi
call fcn.6b45bcf0
add esp, 0xc
mov esi, eax
test eax, eax
jne 0x6b462f62
push 0x6b72e73c
push dword [esp + 0x10]
call fcn.6b44e1c0
add esp, 8
mov esi, eax
test eax, eax
jne 0x6b462f62
push dword [esp + 0x58]
push 0
push 0
push dword [esp + 0x38]
push edi
push dword [esp + 0x20]
call fcn.6b45b790
add esp, 0x18
mov esi, eax
test eax, eax
jne 0x6b462f62
xor esi, esi
jmp 0x6b462f70
mov dword [ebp + 0x248], 0
mov dword [ebp + 0x258], 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
xor edi, edi
push ebx
call fcn.6b473ee0
add esp, 4
test eax, eax
jne 0x6b4637d3
mov esi, 0x38
test edi, edi
jne 0x6b4639c4
mov eax, dword [ebx + 0xb74]
mov ecx, 0xffffff38
add eax, ecx
cmp eax, 0x64
mov edi, dword [esp + 4]
jb 0x6b463667
push ebx
call fcn.6b45aa30
add esp, 4
test eax, eax
jne 0x6b4637cc
test byte [edi + 0x24c], 0x20
je 0x6b463667
or byte [ebp + 0x25c], 2
test byte [ebp + 0x25c], 2
mov eax, dword [ebx + 0x108]
jne 0x6b4637dd
test eax, eax
je 0x6b463805
cmp dword [ebp + 0x258], 2
jne 0x6b462e00
mov eax, dword [ebx + 0xc]
mov edi, dword [eax + 0x4a8]
lea eax, [edi + 0x224]
push eax
call fcn.6b44e0f0
add esp, 4
mov dword [edi + 0x258], 0
mov dword [edi + 0x248], 1
mov dword [edi + 0x250], 0
mov dword [edi + 0x254], 0
and byte [edi + 0x25c], 0xfd
mov edi, dword [esp + 4]
mov eax, dword [ebx + 0x108]
jmp 0x6b462e00
mov eax, dword [edi + 0x5a4]
test eax, eax
je 0x6b463575
push eax
push 0x6b72e6fb
push dword [esp + 0x14]
call fcn.6b44e2a0
add esp, 0xc
mov esi, eax
test eax, eax
jne 0x6b462f62
jmp 0x6b463575
push 0x6b72e71d
push dword [esp + 0x10]
call fcn.6b44e1c0
add esp, 8
mov esi, eax
test eax, eax
jne 0x6b462f62
jmp 0x6b46358f
mov esi, 0x1b
jmp 0x6b463a22
xor esi, esi
jmp 0x6b4639a7
mov esi, 0x2a
jmp 0x6b4639a7
push str.CONNECT_response_too_large_
push ebx
call fcn.6b476950
add esp, 8
mov esi, 0x38
jmp 0x6b4639a7
push str.Proxy_CONNECT_aborted_due_to_timeout
push ebx
call fcn.6b476950
add esp, 8
mov esi, 0x1c
jmp 0x6b4639c4
lea ecx, [esp + 0x10]
push ecx
push eax
push dword [ebx + 0x110]
push dword [edi + 0x284]
push ebx
call fcn.6b476a40
add esp, 0x14
mov esi, eax
test eax, eax
jne 0x6b4637b7
push dword [esp + 0x10]
push dword [ebx + 0x110]
push 2
push ebx
call fcn.6b4768c0
add esp, 0x10
mov esi, eax
mov eax, dword [esp + 0x10]
sub dword [ebp + 0x244], eax
add dword [ebx + 0x110], eax
jmp 0x6b4639a7
mov esi, eax
jmp 0x6b4639c4
mov esi, 0x2a
jmp 0x6b4639c4
test eax, eax
je 0x6b463805
mov eax, dword [esp + 0x58]
push dword [edi + eax*4 + 0x130]
push edi
push ebx
call fcn.6b444b10
add esp, 0xc
mov eax, dword [esp + 0x58]
mov dword [edi + eax*4 + 0x130], 0xffffffff
mov eax, 0xffffff38
add eax, dword [ebx + 0xb74]
cmp eax, 0x64
jae 0x6b46387e
mov dword [ebp + 0x258], 2
push dword [ebx + 0xb0c]
mov eax, dword [0x6b83acf4]
call dword [eax]
add esp, 4
mov dword [ebx + 0xb0c], 0
mov eax, dword [ebx + 0x8ec]
and eax, 0xfffffffc
or eax, 1
mov dword [ebx + 0x8ec], eax
push dword [ebx + 0xb74]
push str.Proxy_replied__d_to_CONNECT_request
push ebx
call fcn.6b4767f0
add esp, 0xc
and byte [ebx + 0x11c], 0xf7
and byte [edi + 0x24e], 0xfb
push dword [esp + 0x18]
call fcn.6b44e0c0
add esp, 4
jmp 0x6b4639ab
test byte [ebp + 0x25c], 2
mov eax, dword [ebx + 0x108]
je 0x6b463914
test eax, eax
je 0x6b463914
or byte [edi + 0x24c], 0x10
push str.Connect_me_again_please
push ebx
call fcn.6b4767f0
add esp, 8
mov eax, dword [ebx + 0xc]
mov ecx, edi
mov edi, dword [eax + 0x4a8]
cmp dword [edi + 0x258], 3
je 0x6b46395a
mov dword [edi + 0x258], 3
lea eax, [edi + 0x224]
push eax
call fcn.6b44e0c0
add esp, 4
lea eax, [edi + 0x234]
push eax
call fcn.6b44e0c0
add esp, 4
mov eax, dword [edi + 0x220]
mov dword [ebx + 0x114], eax
mov dword [edi + 0x220], 0
push str.CONNECT_phase_completed_
push ebx
call fcn.6b4767f0
mov ecx, dword [esp + 0xc]
add esp, 8
jmp 0x6b46395a
push eax
mov eax, dword [0x6b83acf4]
call dword [eax]
add esp, 4
mov dword [ebx + 0x108], 0
push 2
push edi
call fcn.6b445a40
add esp, 8
mov eax, dword [esp + 0x58]
push dword [edi + eax*4 + 0x130]
push edi
push ebx
call fcn.6b444b10
add esp, 0xc
mov eax, dword [esp + 0x58]
mov dword [edi + eax*4 + 0x130], 0xffffffff
mov ecx, edi
mov dword [ebp + 0x258], 0
test byte [ecx + 0x24c], 0x10
jne 0x6b4639ab
push dword [esp + 0x18]
call fcn.6b44e0c0
add esp, 4
push dword [ebx + 0xe0]
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push ebx
call fcn.6b476950
add esp, 0xc
jmp 0x6b4639c4
mov esi, eax
jmp 0x6b4639a7
push edi
mov eax, dword [0x6b83acf4]
mov ebx, ecx
call dword [eax]
add esp, 4
jmp 0x6b4639c4
mov esi, 0x1b
test esi, esi
jne 0x6b4639c4
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x4a8]
xor esi, esi
test eax, eax
je 0x6b4639c4
cmp dword [eax + 0x258], 2
jb 0x6b463a22
mov eax, dword [ebx + 0xc]
mov edi, dword [eax + 0x4a8]
cmp dword [edi + 0x258], 3
je 0x6b463a22
mov dword [edi + 0x258], 3
lea eax, [edi + 0x224]
push eax
call fcn.6b44e0c0
add esp, 4
lea eax, [edi + 0x234]
push eax
call fcn.6b44e0c0
add esp, 4
mov eax, dword [edi + 0x220]
mov dword [ebx + 0x114], eax
mov dword [edi + 0x220], 0
push str.CONNECT_phase_completed_
push ebx
call fcn.6b4767f0
add esp, 8
mov eax, esi
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret