Function at 0x4526f0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
add eax, 0x52
mov dword [ebp - 0x38], 0
push edi
mov edx, dword [esi + 0xc]
mov dword [ebp - 4], edx
mov ebx, dword [edx + 0x3b0]
lea eax, [edx + eax*4]
mov dword [ebp - 0x18], eax
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x134]
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x45316b
cmp dword [ebx + 0x1f0], 2
lea ecx, [ebx + 0x1f0]
mov dword [ebp - 8], ecx
jge 0x45316b
add eax, 0x1a0
mov byte [edx + 0x248], 0
lea edi, [esi + 0x128]
mov dword [ebp - 0x2c], eax
nop dword [eax]
cmp dword [ecx], 0
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], eax
jne 0x45297f
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push str.Establish_HTTP_proxy_tunnel_to__s:_d
push esi
call fcn.00443500
push dword [edi]
call dword [0x4c5004]
lea eax, [ebx + 0x1cc]
mov dword [edi], 0
push 0x100000
push eax
call fcn.0043ad20
mov eax, dword [ebp - 4]
add esp, 0x1c
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x14], 0
mov cl, byte [eax + 0x250]
cmp edi, dword [eax + 0x64]
je 0x4527ca
push 0x3a
push edi
call fcn.00477830
add esp, 8
test eax, eax
setne cl
push dword [ebp + 0x14]
test cl, cl
mov edx, 0x4bdf87
mov eax, 0x4a6050
cmove eax, edx
push eax
mov eax, 0x4a6054
push edi
cmove eax, edx
push eax
push str._s_s_s:_d
call fcn.00454930
mov edi, eax
add esp, 0x14
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x452fc6
push str.Host
push dword [ebp - 4]
push esi
call fcn.0044b5f0
add esp, 0xc
test eax, eax
jne 0x45282f
push edi
push str.Host:__s_r_n
call fcn.00454930
add esp, 8
mov dword [ebp - 0x14], eax
test eax, eax
je 0x452fbc
push 1
push edi
push 0
push str.CONNECT
push dword [ebp - 4]
push esi
call fcn.0044d270
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x452950
mov ecx, dword [ebp - 4]
mov edx, 0x4a6eac
push str.Proxy_Connection
mov eax, 0x4a6eb0
mov edi, 0x4bdf87
push ecx
cmp dword [ecx + 0xb8], 1
push esi
cmovne eax, edx
mov dword [ebp - 0x28], eax
call fcn.0044b5f0
test eax, eax
mov ecx, str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent
push dword [ebp - 4]
mov eax, edi
cmovne ecx, eax
push esi
mov dword [ebp - 0x24], ecx
call fcn.0044b5f0
add esp, 0x18
test eax, eax
jne 0x4528ac
cmp dword [esi + 0x5c4], eax
je 0x4528ac
mov edi, dword [esi + 0xce0]
push dword [ebp - 0x24]
mov eax, dword [esi + 0xcdc]
mov edx, 0x4bdf87
test eax, eax
mov ecx, edx
push edi
cmovne ecx, eax
mov eax, edx
push ecx
mov ecx, dword [ebp - 0x14]
test ecx, ecx
cmovne eax, ecx
push eax
push dword [ebp - 0x28]
lea eax, [ebx + 0x1cc]
push dword [ebp - 0x1c]
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push eax
call fcn.0043acc0
mov edi, eax
add esp, 0x20
test edi, edi
jne 0x452942
lea eax, [ebx + 0x1cc]
push eax
push 1
push esi
call fcn.0044af30
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x452942
lea eax, [ebx + 0x1cc]
push 0x4a58ec
push eax
call fcn.0043ac90
mov edi, eax
add esp, 8
test edi, edi
jne 0x452942
push dword [ebp + 0xc]
push eax
push eax
lea eax, [esi + 0xd78]
push eax
lea eax, [ebx + 0x1cc]
push esi
push eax
call fcn.0044b370
mov edi, eax
add esp, 0x18
test edi, edi
je 0x452950
push str.Failed_sending_CONNECT_to_proxy
push esi
call fcn.00443440
add esp, 8
push dword [ebp - 0x14]
call dword [0x4c5004]
push dword [ebp - 0x1c]
call dword [0x4c5004]
add esp, 8
test edi, edi
jne 0x452fd2
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], eax
mov dword [eax], 1
push 1
push 0
push esi
call fcn.00444cc0
add esp, 0xc
test edx, edx
jl 0x453180
jg 0x45299e
test eax, eax
je 0x453180
push dword [ebp + 0xc]
mov edi, dword [ebp - 4]
push edi
call fcn.00443ec0
add esp, 8
test al, al
mov eax, dword [ebp - 0x14]
jne 0x4529bd
cmp dword [eax], 0
je 0x45316b
cmp dword [eax], 1
jne 0x452a08
mov eax, dword [ebx + 0x1dc]
test eax, eax
jne 0x452fdb
mov eax, dword [esi + 0x900]
mov dword [esi + 0x130], eax
lea eax, [ebp - 0x30]
push eax
push dword [esi + 0x4e4]
push esi
call fcn.0044ec50
add esp, 0xc
test eax, eax
jne 0x45316d
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0x1dc], eax
test eax, eax
jne 0x452fdb
cmp dword [ebx + 0x1e0], 0
mov dword [ebp - 0x24], 0
je 0x452ab9
nop dword [eax]
lea eax, [ebp - 0x20]
push eax
push 1
lea eax, [ebp + 0xb]
push eax
push dword [ebp - 0x34]
push esi
call fcn.00443580
mov edi, eax
add esp, 0x14
cmp edi, 0x51
je 0x45316b
push esi
call fcn.00451180
add esp, 4
test eax, eax
jne 0x453174
test edi, edi
jne 0x452aac
cmp dword [ebp - 0x20], edi
jle 0x452ee0
cmp dword [ebx + 0x1e0], 2
jne 0x452b67
mov ecx, dword [ebx + 0x1e8]
mov eax, ecx
mov edx, dword [ebx + 0x1ec]
or eax, edx
je 0x452b23
sub ecx, 1
mov dword [ebx + 0x1e8], ecx
sbb edx, edi
mov dword [ebx + 0x1ec], edx
js 0x452aa3
jg 0x452ece
test ecx, ecx
jne 0x452ece
mov eax, dword [ebp - 8]
mov dword [eax], 2
mov dword [ebx + 0x1e0], 0
mov edi, dword [ebp - 4]
push esi
call fcn.00451180
add esp, 4
test eax, eax
jne 0x453174
cmp dword [ebp - 0x24], eax
jne 0x453037
mov eax, dword [esi + 0xd5c]
sub eax, 0xc8
cmp eax, 0x64
jb 0x452b03
push esi
call fcn.0044b800
add esp, 4
test eax, eax
jne 0x45316d
cmp byte [edi + 0x249], al
je 0x452b03
mov byte [ebx + 0x1f5], 1
cmp byte [ebx + 0x1f5], 0
mov ecx, dword [ebp - 0x10]
je 0x452f49
cmp dword [ecx], 0
jne 0x453043
mov edi, ecx
jmp 0x452fa5
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x28], 0
push eax
lea eax, [ebp - 0x28]
push eax
push 1
lea eax, [ebp + 0xb]
push eax
push esi
call fcn.0046d4a0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x452ece
push str.chunk_reading_DONE
push esi
call fcn.00443500
add esp, 8
mov dword [ebx + 0x1e0], 0
jmp 0x452ec5
push 1
lea eax, [ebp + 0xb]
push eax
lea edi, [ebx + 0x1bc]
push edi
call fcn.0043ace0
add esp, 0xc
test eax, eax
jne 0x453029
cmp byte [ebp + 0xb], 0xa
jne 0x452ece
push edi
call fcn.0043ad60
mov edi, eax
lea eax, [ebx + 0x1bc]
push eax
call fcn.0043ad50
push eax
push edi
push 1
push esi
mov dword [ebp - 0x1c], eax
call fcn.004433a0
add esp, 0x18
cmp byte [esi + 0x725], 0
jne 0x452bdf
push dword [ebp - 0x1c]
xor eax, eax
cmp byte [esi + 0x70d], al
push edi
setne al
add eax, 2
push eax
push esi
call fcn.00443390
add esp, 0x10
test eax, eax
jne 0x45316d
mov eax, dword [ebp - 0x1c]
cdq
add dword [esi + 0xd70], eax
adc dword [esi + 0xd74], edx
mov al, byte [edi]
cmp al, 0xd
je 0x452def
cmp al, 0xa
je 0x452def
push 0x11
push edi
push str.WWW_Authenticate:
call fcn.00447cb0
add esp, 0xc
lea ebx, [esi + 0xf0]
test eax, eax
je 0x452c27
mov eax, dword [ebx]
mov dword [ebp - 0x1c], eax
cmp eax, 0x191
je 0x452c47
push 0x13
push edi
push str.Proxy_authenticate:
call fcn.00447cb0
add esp, 0xc
test eax, eax
je 0x452c88
mov eax, dword [ebx]
mov dword [ebp - 0x1c], eax
cmp eax, 0x197
jne 0x452c88
push edi
call fcn.0044b730
mov edi, eax
add esp, 4
test edi, edi
je 0x452fc6
cmp dword [ebp - 0x1c], 0x197
push edi
sete cl
movzx ecx, cl
push ecx
push esi
call fcn.0044cf90
push edi
mov ebx, eax
call dword [0x4c5004]
add esp, 0x10
test ebx, ebx
je 0x452cb8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push 0xf
push edi
push str.Content_Length:
call fcn.00447cb0
add esp, 0xc
test eax, eax
je 0x452cfd
mov ecx, dword [ebx]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x452ccf
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response
push esi
call fcn.00443500
add esp, 0xc
mov ebx, dword [ebp - 0xc]
lea eax, [ebx + 0x1bc]
push eax
call fcn.0043ad70
add esp, 4
jmp 0x452ece
mov ebx, dword [ebp - 0xc]
lea eax, [ebx + 0x1e8]
push eax
push 0xa
lea eax, [edi + 0xf]
push 0
push eax
call fcn.004569a0
add esp, 0x10
lea eax, [ebx + 0x1bc]
push eax
call fcn.0043ad70
add esp, 4
jmp 0x452ece
push str.close
push str.Connection:
push edi
call fcn.0044b670
add esp, 0xc
test al, al
jne 0x452dd1
push 0x12
push edi
push str.Transfer_Encoding:
call fcn.00447cb0
add esp, 0xc
test eax, eax
je 0x452d91
mov ecx, dword [ebx]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x452d44
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
jmp 0x452caf
push str.chunked
push str.Transfer_Encoding:
push edi
call fcn.0044b670
add esp, 0xc
test al, al
je 0x452cb8
push str.CONNECT_responded_chunked
push esi
call fcn.00443500
mov ebx, dword [ebp - 0xc]
push esi
mov byte [ebx + 0x1f4], 1
call fcn.0046d470
add esp, 0xc
lea eax, [ebx + 0x1bc]
push eax
call fcn.0043ad70
add esp, 4
jmp 0x452ece
push str.close
push str.Proxy_Connection:
push edi
call fcn.0044b670
add esp, 0xc
test al, al
jne 0x452dd1
push ebx
lea eax, [ebp - 0x38]
push eax
push str.HTTP_1._d__d
push edi
call fcn.00411690
add esp, 0x10
cmp eax, 2
jne 0x452cb8
mov eax, dword [ebx]
mov dword [esi + 0xd5c], eax
jmp 0x452cb8
mov ebx, dword [ebp - 0xc]
lea eax, [ebx + 0x1bc]
mov byte [ebx + 0x1f5], 1
push eax
call fcn.0043ad70
add esp, 4
jmp 0x452ece
cmp dword [esi + 0xf0], 0x197
jne 0x452eae
cmp byte [esi + 0xd19], 0
jne 0x452eae
mov edx, dword [ebx + 0x1e8]
lea eax, [ebx + 0x1e8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x28], eax
mov eax, edx
or eax, ecx
mov dword [ebx + 0x1e0], 2
je 0x452e46
push ecx
push edx
push str.Ignore__I64d_bytes_of_response_body
push esi
call fcn.00443500
add esp, 0x10
mov eax, dword [ebx + 0x1e0]
jmp 0x452ea5
cmp byte [ebx + 0x1f4], 0
je 0x452e9d
push str.Ignore_chunked_response_body
push esi
call fcn.00443500
lea eax, [edi + 1]
mov byte [esi + 0x13f], 1
cmp byte [eax], 0xa
cmove edi, eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x20]
push eax
push 1
lea eax, [edi + 1]
push eax
push esi
call fcn.0046d4a0
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x452e3e
push str.chunk_reading_DONE
push esi
call fcn.00443500
mov eax, dword [ebp - 8]
add esp, 8
mov dword [eax], 2
xor eax, eax
mov dword [ebx + 0x1e0], eax
test eax, eax
jne 0x452ece
mov ecx, dword [ebp - 0x28]
jmp 0x452ebe
mov dword [ebx + 0x1e0], 0
lea ecx, [ebx + 0x1e8]
mov eax, dword [ecx]
or eax, dword [ecx + 4]
jne 0x452ece
mov eax, dword [ebp - 8]
mov dword [eax], 2
cmp dword [ebx + 0x1e0], 0
jne 0x452a20
jmp 0x452ab6
cmp dword [esi + 0x170], 0
je 0x452f22
cmp dword [esi + 0x9d0], 0
je 0x452f22
cmp dword [esi + 0xcdc], 0
je 0x452f22
mov edi, dword [ebp - 4]
push str.Proxy_CONNECT_connection_closed
push esi
mov byte [edi + 0x248], 1
call fcn.00443500
add esp, 8
mov dword [ebx + 0x1e0], 0
jmp 0x452ab9
push str.Proxy_CONNECT_aborted
push esi
mov dword [ebp - 0x24], 1
call fcn.00443440
mov edi, dword [ebp - 4]
add esp, 8
mov dword [ebx + 0x1e0], 0
jmp 0x452ab9
cmp dword [ecx], 0
mov edi, ecx
mov dword [ebp - 0x28], edi
je 0x452fa5
mov ecx, dword [ebp - 8]
cmp dword [ecx], 2
jne 0x452fa8
mov eax, dword [esi + 0xc]
mov edi, dword [eax + 0x3b0]
lea eax, [edi + 0x1bc]
push eax
call fcn.0043ad70
mov dword [edi + 0x1f0], 0
add esp, 4
mov dword [edi + 0x1e0], 1
mov dword [edi + 0x1e8], 0
mov dword [edi + 0x1ec], 0
mov byte [edi + 0x1f5], 0
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0
je 0x453060
mov eax, dword [ebp - 0x14]
jmp 0x452760
push edi
call dword [0x4c5004]
add esp, 4
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp + 0xc]
push ecx
push eax
push dword [esi + 0x130]
push dword [edi + 0x2ac]
push esi
call fcn.00443970
mov ecx, eax
add esp, 0x14
test ecx, ecx
jne 0x453011
push dword [ebp + 0xc]
push dword [esi + 0x130]
push 2
push esi
call fcn.004433a0
add esp, 0x10
mov ecx, eax
mov eax, dword [ebp + 0xc]
sub dword [ebx + 0x1dc], eax
add dword [esi + 0x130], eax
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.CONNECT_response_too_large_
push esi
call fcn.00443440
add esp, 8
pop edi
pop esi
mov eax, 0x38
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
push esi
call fcn.00443e40
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov dword [eax], 0xffffffff
jmp 0x453063
mov edi, dword [ebp - 4]
mov eax, dword [esi + 0xd5c]
sub eax, 0xc8
cmp eax, 0x64
jb 0x453115
cmp byte [ebx + 0x1f5], 0
je 0x4530a2
cmp dword [edx], 0
je 0x4530a2
push str.Connect_me_again_please
push esi
mov byte [edi + 0x248], 1
call fcn.00443500
push esi
call fcn.004533d0
add esp, 0xc
jmp 0x4530d3
push dword [edx]
call dword [0x4c5004]
mov eax, dword [ebp - 0x10]
push 2
push edi
mov dword [eax], 0
call fcn.00443f50
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
push esi
call fcn.00443e40
mov eax, dword [ebp - 0x18]
add esp, 0x18
mov dword [eax], 0xffffffff
mov eax, dword [ebp - 8]
mov dword [eax], 0
cmp byte [edi + 0x248], 0
jne 0x45316b
lea eax, [ebx + 0x1bc]
push eax
call fcn.0043acf0
push dword [esi + 0xf0]
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push esi
call fcn.00443440
add esp, 0x10
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov dword [eax], 2
push dword [esi + 0xcdc]
call dword [0x4c5004]
push dword [esi + 0xd5c]
mov dword [esi + 0xcdc], 0
push str.Proxy_replied__d_to_CONNECT_request
push esi
mov word [esi + 0x9d4], 1
call fcn.00443500
lea eax, [ebx + 0x1bc]
mov byte [esi + 0x13f], 0
push eax
mov byte [edi + 0x256], 0
call fcn.0043acf0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x2a
pop ebx
mov esp, ebp
pop ebp
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.00443440
add esp, 8
mov eax, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret