Function at 0x4364b0
Capabilities:
Check http status code

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x30]
push ebx
mov ebx, dword [esp + 0x30]
mov ecx, dword [ebx + eax*4 + 0x1a8]
push ebp
push esi
mov esi, dword [ebx + 0x650]
xor ebp, ebp
push edi
mov edi, dword [ebx]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ecx
mov dword [esp + 0x10], ebp
cmp esi, ebp
je 0x436f77
cmp dword [esi + 0x401c], 2
je 0x436f77
mov dword [ebx + 0x2f8], ebp
jmp 0x436500
cmp dword [esi + 0x401c], ebp
jne 0x43677f
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
push edx
push eax
push str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
push edi
call fcn.004153c0
mov ecx, dword [edi + 0x148]
push ecx
call dword [0x46d004]
add esp, 0x14
mov dword [edi + 0x148], 0
call fcn.004318d0
mov ebp, eax
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x436db8
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
push edx
push eax
push str._s:_hu
call fcn.0041c610
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x436daf
mov ecx, dword [esp + 0x3c]
push 1
push ebx
push str.CONNECT
push ecx
call fcn.00431420
push ebx
mov ebp, eax
call dword [0x46d004]
add esp, 0x14
test ebp, ebp
jne 0x436756
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x3c]
cmp dword [ebp + 0xf0], 1
mov eax, 0x468eca
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0x463b3c
je 0x4365c3
mov dword [esp + 0x24], 0x463b40
mov ebx, dword [esp + 0x44]
mov eax, dword [ebp + 0x2b8]
cmp ebx, dword [ebp + 0xa0]
je 0x4365e6
push 0x3a
push ebx
call fcn.00446a30
add esp, 8
neg eax
sbb eax, eax
neg eax
test eax, eax
je 0x4365f6
mov ecx, 0x45ca38
mov eax, 0x45ca1c
jmp 0x4365fd
mov ecx, 0x468eca
mov eax, ecx
mov edx, dword [esp + 0x48]
push edx
push ecx
push ebx
push eax
push str._s_s_s:_hu
call fcn.0041c610
mov ebx, eax
add esp, 0x14
mov dword [esp + 0x28], ebx
test ebx, ebx
je 0x436dc5
push str.Host:
push ebp
call fcn.00430e40
add esp, 8
test eax, eax
jne 0x43664c
push ebx
push str.Host:__s_r_n
call fcn.0041c610
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x436ddf
push str.Proxy_Connection:
push ebp
call fcn.00430e40
add esp, 8
test eax, eax
jne 0x436666
mov dword [esp + 0x1c], str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent:
push ebp
call fcn.00430e40
add esp, 8
test eax, eax
jne 0x43668a
cmp dword [edi + 0x658], eax
je 0x43668a
mov eax, dword [ebp + 0x358]
mov dword [esp + 0x20], eax
mov ebp, dword [ebp + 0x354]
mov ecx, ebp
test ebp, ebp
jne 0x43669b
mov ecx, 0x468eca
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4366a8
mov eax, 0x468eca
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x24]
push edx
push ecx
mov ecx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push eax
push ecx
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push ebx
call fcn.004323c0
add esp, 0x20
cmp dword [esp + 0x14], 0
mov ebp, eax
je 0x4366e7
mov edx, dword [esp + 0x14]
push edx
call dword [0x46d004]
add esp, 4
mov eax, dword [esp + 0x28]
push eax
call dword [0x46d004]
add esp, 4
test ebp, ebp
jne 0x436740
mov ecx, dword [esp + 0x3c]
push ebx
push 1
push ecx
call fcn.00432530
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x436740
push 0x469658
push ebx
call fcn.004323c0
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x436740
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
push edx
push eax
lea eax, [edi + 0x4cd0]
push eax
push ecx
push ebx
call fcn.00431910
add esp, 0x14
mov ebp, eax
xor ebx, ebx
test ebp, ebp
je 0x43675a
push str.Failed_sending_CONNECT_to_proxy
push edi
call fcn.00415450
add esp, 8
jmp 0x43675a
mov ebx, dword [esp + 0x18]
push ebx
call fcn.004318e0
add esp, 4
test ebp, ebp
jne 0x436e00
mov ebx, dword [esp + 0x3c]
mov dword [esi + 0x401c], 1
mov dword [esi + 0x4000], ebp
push 1
push ebp
push edi
call fcn.00417500
add esp, 0xc
cmp edx, ebp
jl 0x436e0a
jg 0x43679d
cmp eax, ebp
jbe 0x436e0a
mov edx, dword [esp + 0x40]
push edx
push ebx
call fcn.00418000
add esp, 8
test eax, eax
je 0x436f77
mov dword [esp + 0x28], ebp
cmp dword [esi + 0x4004], ebp
je 0x43688c
lea ebx, [esi + 0x4000]
lea esp, [esp]
mov eax, dword [esi + 0x400c]
cmp eax, ebx
jae 0x436e25
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x2c]
push ecx
push 1
push eax
mov eax, dword [esp + 0x48]
push edx
push eax
call fcn.00415100
mov ebp, eax
add esp, 0x14
cmp ebp, 0x51
je 0x436f77
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0041fe60
add esp, 4
test eax, eax
jne 0x436e40
test ebp, ebp
jne 0x43687c
cmp dword [esp + 0x2c], ebp
jle 0x436cfb
cmp dword [esi + 0x4004], 1
jle 0x436934
mov eax, dword [esi + 0x4010]
mov ecx, dword [esi + 0x4014]
mov edx, eax
or edx, ecx
mov dword [esi + 0x400c], esi
je 0x4368f1
sub eax, 1
sbb ecx, ebp
mov dword [esi + 0x4010], eax
mov dword [esi + 0x4014], ecx
test ecx, ecx
jl 0x436872
jg 0x436ce9
test eax, eax
ja 0x436ce9
mov dword [esi + 0x401c], 2
mov dword [esi + 0x4004], 0
mov ebx, dword [esp + 0x3c]
xor ebp, ebp
push ebx
call fcn.0041fe60
add esp, 4
test eax, eax
jne 0x436e40
cmp dword [esp + 0x28], ebp
jne 0x436e33
mov ecx, dword [edi + 0x4cbc]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
je 0x436d49
push ebx
call fcn.004321f0
add esp, 4
cmp eax, ebp
jne 0x436f79
cmp dword [ebx + 0x294], ebp
je 0x436d49
mov dword [esp + 0x10], 1
jmp 0x436d4f
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x24]
push eax
push 1
push esi
push ecx
mov dword [esp + 0x34], 0
call fcn.0043b600
add esp, 0x10
cmp eax, 0xffffffff
jne 0x436ce9
push str.chunk_reading_DONE_n
push edi
call fcn.004153c0
add esp, 8
mov dword [esi + 0x4004], 0
jmp 0x436cdf
inc dword [ebx]
mov eax, dword [esi + 0x400c]
cmp byte [eax], 0xa
mov ecx, dword [ebx]
je 0x43694f
inc eax
mov dword [esi + 0x400c], eax
jmp 0x436ce9
cmp dword [edi + 0x570], 0
je 0x436970
mov edx, dword [esp + 0x3c]
mov eax, dword [esi + 0x4008]
push edx
push ecx
push eax
push 1
push edi
call fcn.00415280
add esp, 0x14
cmp dword [edi + 0x710], 0
jne 0x4369ac
cmp dword [edi + 0x558], 0
mov eax, 2
je 0x43698c
mov eax, 3
mov ecx, dword [ebx]
mov edx, dword [esi + 0x4008]
push ecx
push edx
push eax
mov eax, dword [esp + 0x48]
push eax
call fcn.00415830
add esp, 0x10
test eax, eax
jne 0x436f79
mov ecx, dword [ebx]
add dword [edi + 0x4ccc], ecx
mov edx, dword [ebx]
add dword [edi + 0xa0], edx
mov eax, dword [esi + 0x4008]
mov cl, byte [eax]
cmp cl, 0xd
je 0x436c0a
cmp cl, 0xa
je 0x436c0a
mov ecx, dword [ebx]
mov byte [eax + ecx], 0
mov edx, dword [esi + 0x4008]
push 0x11
push edx
push str.WWW_Authenticate:
call fcn.0041a770
add esp, 0xc
test eax, eax
je 0x436a03
mov eax, dword [edi + 0xf8]
cmp eax, 0x191
je 0x436a2a
mov eax, dword [esi + 0x4008]
push 0x13
push eax
push str.Proxy_authenticate:
call fcn.0041a770
add esp, 0xc
test eax, eax
je 0x436a77
mov eax, dword [edi + 0xf8]
cmp eax, 0x197
jne 0x436a77
mov ecx, dword [esi + 0x4008]
xor ebx, ebx
cmp eax, 0x197
push ecx
sete bl
call fcn.00430eb0
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x436db8
mov edx, dword [esp + 0x3c]
push ebp
push ebx
push edx
call fcn.00431530
push ebp
mov ebx, eax
call dword [0x46d004]
add esp, 0x10
test ebx, ebx
je 0x436bed
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x28
ret
mov eax, dword [esi + 0x4008]
push 0xf
push eax
push str.Content_Length:
call fcn.0041a770
add esp, 0xc
test eax, eax
je 0x436ae3
mov ecx, dword [edi + 0xf8]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x436ac1
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response_n
push edi
call fcn.004153c0
add esp, 0xc
jmp 0x436bed
mov edx, dword [esi + 0x4008]
lea ecx, [esi + 0x4010]
push ecx
push 0xa
add edx, 0xf
push 0
push edx
call fcn.0043b330
add esp, 0x10
jmp 0x436bed
mov eax, dword [esi + 0x4008]
push str.close
push str.Connection:
push eax
call fcn.00431bc0
add esp, 0xc
test eax, eax
je 0x436b0d
mov dword [esp + 0x10], 1
jmp 0x436bed
mov ecx, dword [esi + 0x4008]
push 0x12
push ecx
push str.Transfer_Encoding:
call fcn.0041a770
add esp, 0xc
test eax, eax
je 0x436b98
mov ecx, dword [edi + 0xf8]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x436b57
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
push edi
call fcn.004153c0
add esp, 0xc
jmp 0x436bed
mov ecx, dword [esi + 0x4008]
push str.chunked
push str.Transfer_Encoding:
push ecx
call fcn.00431bc0
add esp, 0xc
test eax, eax
je 0x436bed
push str.CONNECT_responded_chunked_n
push edi
call fcn.004153c0
mov edx, dword [esp + 0x44]
push edx
mov dword [esi + 0x4018], 1
call fcn.0043b5f0
add esp, 0xc
jmp 0x436bed
mov eax, dword [esi + 0x4008]
push str.close
push str.Proxy_Connection:
push eax
call fcn.00431bc0
add esp, 0xc
test eax, eax
je 0x436bbf
mov dword [esp + 0x10], 1
jmp 0x436bed
mov edx, dword [esi + 0x4008]
lea ebp, [edi + 0xf8]
push ebp
lea ecx, [esp + 0x38]
push ecx
push str.HTTP_1._d__d
push edx
call fcn.0044727a
add esp, 0x10
cmp eax, 2
jne 0x436bed
mov eax, dword [ebp]
mov dword [edi + 0x4cbc], eax
lea ebx, [esi + 0x4000]
mov dword [ebx], 0
mov dword [esi + 0x400c], esi
mov dword [esi + 0x4008], esi
jmp 0x436ce9
mov dword [esi + 0x400c], esi
cmp dword [edi + 0xf8], 0x197
jne 0x436cc7
cmp dword [edi + 0x4a3c], 0
jne 0x436cc7
mov eax, dword [esi + 0x4010]
mov ecx, dword [esi + 0x4014]
mov edx, eax
or edx, ecx
mov dword [esi + 0x4004], 2
je 0x436c5b
push ecx
push eax
push str.Ignore__I64d_bytes_of_response_body_n
push edi
call fcn.004153c0
add esp, 0x10
jmp 0x436cd1
cmp dword [esi + 0x4018], 0
je 0x436cc7
push str.Ignore_chunked_response_body_n
push edi
call fcn.004153c0
mov dword [edi + 0x13c], 1
mov eax, dword [esi + 0x4008]
inc eax
add esp, 8
cmp byte [eax], 0xa
jne 0x436c8e
mov dword [esi + 0x4008], eax
mov ecx, dword [esi + 0x4008]
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x2c]
push eax
push 1
inc ecx
push ecx
push edx
call fcn.0043b600
add esp, 0x10
cmp eax, 0xffffffff
jne 0x436cd1
push str.chunk_reading_DONE_n
push edi
call fcn.004153c0
add esp, 8
mov dword [esi + 0x401c], 2
mov dword [esi + 0x4004], 0
mov eax, dword [esi + 0x4010]
or eax, dword [esi + 0x4014]
jne 0x436ce9
mov dword [esi + 0x401c], 2
cmp dword [esi + 0x4004], 0
jne 0x4367d0
jmp 0x436886
cmp dword [edi + 0x190], 0
je 0x436d2e
cmp dword [edi + 0x4a2c], 0
je 0x436d2e
mov ecx, dword [esp + 0x3c]
push str.Proxy_CONNECT_connection_closed_n
push edi
mov dword [ecx + 0x2f8], 1
call fcn.004153c0
add esp, 8
jmp 0x43687c
push str.Proxy_CONNECT_aborted
push edi
mov dword [esp + 0x30], 1
call fcn.00415450
add esp, 8
jmp 0x43687c
cmp dword [esp + 0x10], ebp
je 0x436d5b
cmp dword [edi + 0x148], ebp
jne 0x436e4d
cmp dword [edi + 0x148], ebp
je 0x436e71
cmp dword [esi + 0x401c], 2
jne 0x436d9e
mov eax, dword [ebx + 0x650]
mov dword [eax + 0x401c], ebp
mov dword [eax + 0x4004], 1
mov dword [eax + 0x4008], eax
mov dword [eax + 0x400c], eax
mov dword [eax + 0x4010], ebp
mov dword [eax + 0x4014], ebp
cmp dword [edi + 0x148], ebp
jne 0x436500
jmp 0x436e71
push ebp
call fcn.004318e0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x28
ret
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004318e0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x28
ret
push ebx
call dword [0x46d004]
mov edx, dword [esp + 0x1c]
push edx
call fcn.004318e0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x28
ret
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x28
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push edi
call fcn.00415450
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1c
pop ebx
add esp, 0x28
ret
push str.CONNECT_response_too_large_
push edi
call fcn.00415450
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x28
ret
pop edi
pop esi
pop ebp
mov eax, 0x2a
pop ebx
add esp, 0x28
ret
mov eax, dword [esp + 0x40]
mov ecx, dword [ebx + eax*4 + 0x1a8]
push ecx
push ebx
call fcn.00417e70
mov edx, dword [esp + 0x48]
add esp, 8
mov dword [ebx + edx*4 + 0x1a8], 0xffffffff
mov ecx, dword [edi + 0x4cbc]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
je 0x436f2f
cmp dword [esp + 0x10], ebp
je 0x436ec0
cmp dword [edi + 0x148], ebp
je 0x436ec0
push str.Connect_me_again_please_n
push edi
mov dword [ebx + 0x2f8], 1
call fcn.004153c0
add esp, 8
mov eax, ebx
call fcn.00436480
jmp 0x436eff
mov ecx, dword [edi + 0x148]
push ecx
call dword [0x46d004]
push 2
push ebx
mov dword [edi + 0x148], ebp
call fcn.00417fb0
mov edx, dword [esp + 0x4c]
mov eax, dword [ebx + edx*4 + 0x1a8]
push eax
push ebx
call fcn.00417e70
mov ecx, dword [esp + 0x54]
add esp, 0x14
mov dword [ebx + ecx*4 + 0x1a8], 0xffffffff
mov dword [esi + 0x401c], ebp
cmp dword [ebx + 0x2f8], ebp
jne 0x436f77
mov edx, dword [edi + 0xf8]
push edx
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push edi
call fcn.00415450
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x28
ret
mov dword [esi + 0x401c], 2
mov eax, dword [ebx + 0x354]
push eax
call dword [0x46d004]
mov dword [ebx + 0x354], ebp
mov ecx, dword [edi + 0x4cbc]
push ecx
push str.Proxy_replied__d_to_CONNECT_request_n
push edi
mov dword [edi + 0x4a30], 1
call fcn.004153c0
mov dword [edi + 0x13c], ebp
add esp, 0x10
mov dword [ebx + 0x2dc], ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret