Function at 0x567fc0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
add eax, 0x6a
push esi
push edi
mov dword [ebp - 0x28], 0
mov esi, dword [ebx + 0x40c]
lea eax, [ebx + eax*4]
mov edi, dword [ebx]
mov dword [ebp - 8], eax
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
test esi, esi
je 0x568bc8
cmp dword [esi + 0x4018], 2
je 0x568bc8
and dword [ebx + 0x284], 0xff7fffff
nop dword [eax + eax]
cmp dword [esi + 0x4018], 0
jne 0x56826d
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push str.Establish_HTTP_proxy_tunnel_to__s:_d_n
push edi
call fcn.005738f0
push dword [edi + 0x148]
call dword [0x7f152c]
push 0xc
push 1
mov dword [edi + 0x148], 0
call dword [0x7f1538]
add esp, 0x1c
mov dword [ebp - 4], eax
test eax, eax
je 0x568a52
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push str._s:_d
call fcn.0057f550
add esp, 0xc
mov dword [ebp - 0x14], eax
test eax, eax
je 0x568a46
push 1
push eax
push str.CONNECT
push ebx
call fcn.00571ec0
push dword [ebp - 0x14]
mov ebx, eax
call dword [0x7f152c]
add esp, 0x14
test ebx, ebx
jne 0x568a28
mov edx, dword [ebp + 8]
mov ecx, 0x752194
mov eax, 0x752198
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 0x71376a
cmp dword [edx + 0xf0], 1
cmovne eax, ecx
mov ecx, dword [edx + 0x284]
shr ecx, 9
mov dword [ebp - 0x20], eax
and cl, 1
mov eax, dword [ebp + 0x10]
cmp eax, dword [edx + 0x9c]
je 0x5680e9
push 0x3a
push eax
call fcn.006c2590
add esp, 8
test eax, eax
setne cl
push dword [ebp + 0x14]
test cl, cl
mov edx, 0x71376a
mov eax, 0x74fa40
cmove eax, edx
push eax
push dword [ebp + 0x10]
mov eax, 0x744b3c
cmove eax, edx
push eax
push str._s_s_s:_d
call fcn.0057f550
add esp, 0x14
mov dword [ebp - 0xc], eax
test eax, eax
je 0x568a46
push str.Host
push dword [ebp + 8]
call fcn.0056b7d0
add esp, 8
test eax, eax
jne 0x568151
push dword [ebp - 0xc]
push str.Host:__s_r_n
call fcn.0057f550
mov ebx, eax
add esp, 8
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x5689e8
push str.Proxy_Connection
push dword [ebp + 8]
call fcn.0056b7d0
test eax, eax
mov ecx, 0x71376a
mov eax, str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent
push dword [ebp + 8]
cmove ecx, eax
mov dword [ebp - 0x1c], ecx
call fcn.0056b7d0
add esp, 0x10
test eax, eax
jne 0x568198
cmp dword [edi + 0x9c4], eax
je 0x568198
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2d8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov edx, 0x71376a
push dword [ebp - 0x1c]
mov ecx, edx
push dword [ebp - 0x10]
mov eax, dword [eax + 0x2d4]
test eax, eax
cmovne ecx, eax
mov eax, edx
push ecx
test ebx, ebx
cmovne eax, ebx
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 4]
push dword [ebp - 0xc]
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push eax
call fcn.0056a7b0
mov ebx, eax
add esp, 0x20
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x5681e6
push eax
call dword [0x7f152c]
add esp, 4
push dword [ebp - 0xc]
call dword [0x7f152c]
add esp, 4
test ebx, ebx
jne 0x568a09
push dword [ebp - 4]
push 1
push dword [ebp + 8]
call fcn.0056a820
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x568a09
lea eax, [ebp - 4]
push 0x715898
push eax
call fcn.0056a7b0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x568a09
push dword [ebp + 0xc]
push eax
lea eax, [edi + 0xfb8]
push eax
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.0056a4a0
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x568a09
push eax
call dword [0x7f152c]
add esp, 4
mov dword [esi + 0x4018], 1
mov dword [esi + 0x4000], ebx
mov edx, dword [edi + 0x640]
xor ecx, ecx
xor ebx, ebx
mov eax, 0x493e0
test edx, edx
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x644]
setg cl
test eax, eax
jle 0x568291
or ecx, 2
sub ecx, 1
je 0x5682a7
sub ecx, 1
je 0x5682a9
sub ecx, 1
jne 0x5682af
cmp edx, eax
cmovl eax, edx
jmp 0x5682a9
mov eax, edx
cdq
mov dword [ebp - 4], eax
mov ebx, edx
lea eax, [ebp - 0x38]
push eax
call fcn.00575cf0
movups xmm0, xmmword [edi + 0xb40]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.0057b020
mov ecx, dword [ebp - 4]
add esp, 0x20
sub ecx, eax
mov eax, ecx
sbb ebx, edx
or eax, ebx
je 0x568bdd
test ebx, ebx
jl 0x568bdd
jg 0x5682fd
test ecx, ecx
je 0x568bdd
mov eax, dword [0x7f153c]
push dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push ebx
mov eax, dword [eax + 0x24]
call eax
add esp, 8
test al, al
jne 0x568362
mov ecx, dword [ebp + 0xc]
shl ecx, 4
add ecx, ebx
cmp dword [ecx + 0x1cc], 0
je 0x56833d
cmp dword [ecx + 0x1d0], 0
je 0x56833d
mov eax, dword [ecx + 0x1d4]
cmp eax, dword [ecx + 0x1d8]
ja 0x568362
mov eax, dword [ebp - 8]
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [eax]
call fcn.00579bc0
add esp, 0x14
test eax, eax
jle 0x568bc8
test al, 1
je 0x568bc8
cmp dword [esi + 0x4004], 0
mov dword [ebp - 0x10], 0
je 0x5688d2
lea ecx, [esi + 0x4000]
nop dword [eax]
mov eax, dword [esi + 0x400c]
cmp eax, ecx
jae 0x568a5e
lea ecx, [ebp - 0x18]
push ecx
push 1
push eax
push dword [ebp - 0x24]
push ebx
call fcn.00578430
mov ebx, eax
add esp, 0x14
cmp ebx, 0x51
je 0x568bc8
push dword [ebp + 8]
call fcn.00576a80
add esp, 4
test eax, eax
jne 0x568bd1
test ebx, ebx
jne 0x5688c5
cmp dword [ebp - 0x18], ebx
jle 0x568999
cmp dword [esi + 0x4004], 1
jle 0x56845e
mov ecx, dword [esi + 0x4010]
mov eax, ecx
mov edx, dword [esi + 0x4014]
or eax, edx
mov dword [esi + 0x400c], esi
je 0x56841e
sub ecx, 1
mov dword [esi + 0x4010], ecx
sbb edx, ebx
mov dword [esi + 0x4014], edx
js 0x5688bb
jg 0x568416
test ecx, ecx
je 0x5688bb
mov ebx, dword [ebp + 8]
jmp 0x5688a6
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
push 1
push esi
push ebx
mov dword [ebp - 0x20], 0
call fcn.00573460
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5688a6
push str.chunk_reading_DONE_n
push edi
call fcn.005738f0
add esp, 8
mov dword [esi + 0x4004], 0
jmp 0x56889c
mov ebx, dword [esi + 0x4000]
lea ecx, [esi + 0x4000]
mov eax, dword [esi + 0x400c]
inc ebx
mov dword [ecx], ebx
cmp byte [eax], 0xa
je 0x568487
mov ebx, dword [ebp + 8]
inc eax
mov dword [esi + 0x400c], eax
jmp 0x5688ac
test dword [edi + 0xa8c], 0x4000000
je 0x56852e
cmp dword [edi + 0x608], 0
mov ecx, dword [esi + 0x4008]
mov dword [ebp - 0x20], ecx
je 0x568500
mov eax, dword [edi + 0x88]
test eax, eax
jne 0x5684bd
mov eax, dword [edi + 0x84]
test eax, eax
je 0x5684c4
mov byte [eax + 0x108], 1
push dword [edi + 0x59c]
mov eax, dword [edi + 0x608]
push ebx
push ecx
push 1
push edi
call eax
mov eax, dword [edi + 0x88]
add esp, 0x14
test eax, eax
je 0x5684ed
mov byte [eax + 0x108], 0
jmp 0x568528
mov eax, dword [edi + 0x84]
test eax, eax
je 0x568528
mov byte [eax + 0x108], 0
jmp 0x568528
push dword [edi + 0x598]
push 1
push 2
push 0x75122f
call fcn.006d3ac7
push dword [edi + 0x598]
push 1
push ebx
push dword [ebp - 0x20]
call fcn.006d3ac7
add esp, 0x20
lea ecx, [esi + 0x4000]
test dword [edi + 0xa90], 0x40000
jne 0x568586
mov edx, dword [edi + 0xa8c]
mov ecx, dword [ecx]
and edx, 0x200000
mov ebx, dword [esi + 0x4008]
or edx, 0x400000
shr edx, 0x15
test ecx, ecx
jne 0x56856d
mov ecx, ebx
lea eax, [ecx + 1]
mov dword [ebp - 0x20], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x568563
sub ecx, dword [ebp - 0x20]
push ecx
push ebx
mov ebx, dword [ebp + 8]
push edx
push ebx
call fcn.0057d130
add esp, 0x10
test eax, eax
jne 0x568bca
jmp 0x568589
mov ebx, dword [ebp + 8]
mov eax, dword [esi + 0x4000]
cdq
add dword [edi + 0xfb0], eax
adc dword [edi + 0xfb4], edx
mov eax, dword [esi + 0x4000]
cdq
add dword [edi + 0xb0], eax
adc dword [edi + 0xb4], edx
mov ecx, dword [esi + 0x4008]
mov al, byte [ecx]
cmp al, 0xd
je 0x5687ce
cmp al, 0xa
je 0x5687ce
mov eax, dword [esi + 0x4000]
push 0x11
mov byte [ecx + eax], 0
mov ebx, dword [esi + 0x4008]
push ebx
push str.WWW_Authenticate:
call fcn.0057af10
add esp, 0xc
test eax, eax
je 0x5685fb
mov eax, dword [edi + 0x108]
mov dword [ebp - 0x14], eax
cmp eax, 0x191
je 0x56861f
push 0x13
push ebx
push str.Proxy_authenticate:
call fcn.0057af10
add esp, 0xc
test eax, eax
je 0x568666
mov eax, dword [edi + 0x108]
mov dword [ebp - 0x14], eax
cmp eax, 0x197
jne 0x568666
push ebx
call fcn.0056e4c0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x568a52
cmp dword [ebp - 0x14], 0x197
push ebx
sete cl
movzx ecx, cl
push ecx
push dword [ebp + 8]
call fcn.00571d20
push ebx
mov dword [ebp - 0x20], eax
call dword [0x7f152c]
mov eax, dword [ebp - 0x20]
add esp, 0x10
test eax, eax
jne 0x568bca
jmp 0x5687ae
push 0xf
push ebx
push str.Content_Length:
call fcn.0057af10
add esp, 0xc
test eax, eax
je 0x5686bb
mov ecx, dword [edi + 0x108]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x56869f
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response_n
push edi
call fcn.005738f0
add esp, 0xc
jmp 0x5687ae
lea eax, [esi + 0x4010]
push eax
push 0xa
lea eax, [ebx + 0xf]
push 0
push eax
call fcn.005811d0
add esp, 0x10
jmp 0x5687ae
push 0x74c3dc
push str.Connection:
push ebx
call fcn.0056bf80
add esp, 0xc
test al, al
je 0x5686de
or dword [esi + 0x401c], 2
jmp 0x5687ae
mov ebx, dword [esi + 0x4008]
push 0x12
push ebx
push str.Transfer_Encoding:
call fcn.0057af10
add esp, 0xc
test eax, eax
je 0x568763
mov ecx, dword [edi + 0x108]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x56871d
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
push edi
call fcn.005738f0
add esp, 0xc
jmp 0x5687ae
push str.chunked
push str.Transfer_Encoding:
push ebx
call fcn.0056bf80
add esp, 0xc
test al, al
je 0x5687ae
push str.CONNECT_responded_chunked_n
push edi
call fcn.005738f0
mov ebx, dword [ebp + 8]
add esp, 8
or dword [esi + 0x401c], 1
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x28], 0
jmp 0x5687b1
push 0x74c3dc
push str.Proxy_Connection:
push ebx
call fcn.0056bf80
add esp, 0xc
test al, al
je 0x568783
or dword [esi + 0x401c], 2
jmp 0x5687ae
lea ebx, [edi + 0x108]
push ebx
lea eax, [ebp - 0x28]
push eax
push str.HTTP_1._d__d
push dword [esi + 0x4008]
call fcn.005901d0
add esp, 0x10
cmp eax, 2
jne 0x5687ae
mov eax, dword [ebx]
mov dword [edi + 0xf9c], eax
mov ebx, dword [ebp + 8]
lea ecx, [esi + 0x4000]
mov dword [esi + 0x400c], esi
mov dword [ecx], 0
mov dword [esi + 0x4008], esi
jmp 0x5688ac
mov dword [esi + 0x400c], esi
cmp dword [edi + 0x108], 0x197
jne 0x568884
test byte [edi + 0xf6c], 0x20
jne 0x568884
mov edx, dword [esi + 0x4010]
mov eax, edx
mov ecx, dword [esi + 0x4014]
or eax, ecx
mov dword [esi + 0x4004], 2
je 0x56881f
push ecx
push edx
push str.Ignore__I64d_bytes_of_response_body_n
push edi
call fcn.005738f0
add esp, 0x10
jmp 0x56888e
test byte [esi + 0x401c], 1
je 0x568884
push str.Ignore_chunked_response_body_n
push edi
call fcn.005738f0
or dword [edi + 0x590], 8
add esp, 8
mov ecx, dword [esi + 0x4008]
cmp byte [ecx + 1], 0xa
lea eax, [ecx + 1]
jne 0x568854
mov dword [esi + 0x4008], eax
mov ecx, eax
lea eax, [ebp - 0x18]
push eax
push 1
lea eax, [ecx + 1]
push eax
push ebx
call fcn.00573460
add esp, 0x10
cmp eax, 0xffffffff
jne 0x56888e
push str.chunk_reading_DONE_n
push edi
call fcn.005738f0
add esp, 8
mov dword [esi + 0x4018], 2
mov dword [esi + 0x4004], 0
mov eax, dword [esi + 0x4010]
or eax, dword [esi + 0x4014]
jne 0x5688a6
mov dword [esi + 0x4018], 2
lea ecx, [esi + 0x4000]
cmp dword [esi + 0x4004], 0
jne 0x568380
jmp 0x5688d2
mov dword [esi + 0x4018], 2
mov ebx, dword [ebp + 8]
mov dword [esi + 0x4004], 0
push ebx
call fcn.00576a80
add esp, 4
test eax, eax
jne 0x568bd1
cmp dword [ebp - 0x10], eax
jne 0x568a6c
mov eax, dword [edi + 0xf9c]
sub eax, 0xc8
cmp eax, 0x64
jb 0x56891d
push ebx
call fcn.00571af0
add esp, 4
test eax, eax
jne 0x568bca
test byte [ebx + 0x284], 1
je 0x56891d
or dword [esi + 0x401c], 2
test byte [esi + 0x401c], 2
jne 0x568a78
mov eax, dword [edi + 0x148]
test eax, eax
je 0x568a98
cmp dword [esi + 0x4018], 2
jne 0x568010
mov eax, dword [ebx + 0x40c]
and dword [eax + 0x401c], 0xfffffffd
mov dword [eax + 0x4018], 0
mov dword [eax + 0x4004], 1
mov dword [eax + 0x4008], eax
mov dword [eax + 0x400c], eax
mov dword [eax + 0x4010], 0
mov dword [eax + 0x4014], 0
mov eax, dword [edi + 0x148]
test eax, eax
jne 0x568010
jmp 0x568a98
cmp dword [edi + 0x5c0], 0
je 0x5689cb
cmp dword [edi + 0xd10], 0
je 0x5689cb
mov ebx, dword [ebp + 8]
push str.Proxy_CONNECT_connection_closed_n
push edi
or dword [ebx + 0x284], 0x800000
call fcn.005738f0
add esp, 8
jmp 0x5688c8
push str.Proxy_CONNECT_aborted
push edi
mov dword [ebp - 0x10], 1
call fcn.0056f390
mov ebx, dword [ebp + 8]
add esp, 8
jmp 0x5688c8
push dword [ebp - 0xc]
call dword [0x7f152c]
lea eax, [ebp - 4]
push eax
call fcn.0056a470
add esp, 8
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Failed_sending_CONNECT_to_proxy
push edi
call fcn.0056f390
push 0
call dword [0x7f152c]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 4]
push dword [esi]
call dword [0x7f152c]
push esi
call dword [0x7f152c]
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
call fcn.0056a470
add esp, 4
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.CONNECT_response_too_large_
push edi
call fcn.0056f390
add esp, 8
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x148], 0
je 0x568a98
mov eax, dword [ebp - 8]
push dword [eax]
push ebx
call fcn.0056be70
mov eax, dword [ebp - 8]
add esp, 8
mov dword [eax], 0xffffffff
mov eax, dword [edi + 0xf9c]
sub eax, 0xc8
cmp eax, 0x64
jb 0x568b7c
test byte [esi + 0x401c], 2
je 0x568af4
cmp dword [edi + 0x148], 0
je 0x568af4
or dword [ebx + 0x284], 0x800000
push str.Connect_me_again_please_n
push edi
call fcn.005738f0
mov eax, dword [ebx + 0x40c]
push str.CONNECT_phase_completed__n
mov dword [eax + 0x4018], 2
push dword [ebx]
call fcn.005738f0
add esp, 0x10
jmp 0x568b46
push dword [edi + 0x148]
call dword [0x7f152c]
mov dword [edi + 0x148], 0
add esp, 4
mov eax, dword [ebx + 0x2a8]
test dword [eax + 0x44], 0x200
jne 0x568b2f
mov eax, dword [ebx + 0x284]
test al, 1
jne 0x568b2f
or eax, 1
mov dword [ebx + 0x284], eax
mov eax, dword [ebp - 8]
push dword [eax]
push ebx
call fcn.0056be70
mov eax, dword [ebp - 8]
add esp, 8
mov dword [eax], 0xffffffff
mov dword [esi + 0x4018], 0
test dword [ebx + 0x284], 0x800000
jne 0x568bc8
push dword [edi + 0x108]
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push edi
call fcn.0056f390
add esp, 0xc
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x4018], 2
push dword [ebx + 0x2d4]
call dword [0x7f152c]
mov dword [ebx + 0x2d4], 0
push dword [edi + 0xf9c]
or dword [edi + 0xd14], 1
push str.Proxy_replied__d_to_CONNECT_request_n
push edi
call fcn.005738f0
and dword [edi + 0x590], 0xfffffff7
add esp, 0x10
and dword [ebx + 0x284], 0xfffeffff
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push edi
call fcn.0056f390
add esp, 8
mov eax, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret