Function at 0x459fb0
Capabilities:
Check http status code

Disassembly:
sub esp, 0x3c
mov eax, dword [esp + 0x40]
push ebx
push ebp
push esi
mov ebp, dword [eax]
xor esi, esi
mov dword [esp + 0x3c], esi
push edi
mov ecx, dword [ebp + 0x194]
cmp ecx, esi
mov dword [esp + 0x30], ecx
jne 0x459fd9
mov dword [esp + 0x30], 0x36ee80
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x28], esi
mov edx, dword [eax + ecx*4 + 0x130]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], edx
mov edx, dword [eax + ecx*4 + 0x484]
cmp edx, 2
mov dword [esp + 0x2c], esi
je 0x45aa1e
mov edi, dword [esp + 0x58]
mov dword [eax + 0x1f8], esi
cmp dword [eax + ecx*4 + 0x484], esi
jne 0x45a23e
mov ebx, dword [esp + 0x5c]
and ebx, 0xffff
push ebx
push edi
push str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
push ebp
call fcn.00440d50
mov eax, dword [ebp + 0xcc]
add esp, 0x10
cmp eax, esi
je 0x45a056
push eax
call fcn.0042585a
add esp, 4
mov dword [ebp + 0xcc], esi
call fcn.00454e60
cmp eax, esi
mov dword [esp + 0x20], eax
je 0x45a937
push ebx
push edi
push str._s:_hu
call fcn.004461a0
mov edi, eax
add esp, 0xc
cmp edi, esi
je 0x45a8f0
mov eax, dword [esp + 0x50]
push 1
push edi
push str.CONNECT
push eax
call fcn.00454910
push edi
mov esi, eax
call fcn.0042585a
add esp, 0x14
test esi, esi
jne 0x45a8be
mov esi, dword [esp + 0x50]
mov edx, 0x4a6ea0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x34], edx
mov eax, dword [esi + 0x114]
mov dword [esp + 0x24], edx
cmp eax, 1
mov dword [esp + 0x14], 0x4a576c
je 0x45a0d5
mov dword [esp + 0x14], 0x4a5770
mov eax, dword [esi + 0x1b8]
mov ecx, 0x4a125c
test eax, eax
jne 0x45a0e6
mov ecx, edx
test eax, eax
mov eax, 0x4a1258
jne 0x45a0f1
mov eax, edx
push ebx
push ecx
mov ecx, dword [esp + 0x60]
push ecx
push eax
push str._s_s_s:_hu
call fcn.004461a0
mov edi, eax
add esp, 0x14
test edi, edi
je 0x45a90a
push str.Host:
push ebp
call fcn.004544c0
add esp, 8
test eax, eax
jne 0x45a13c
push edi
push str.Host:__s_r_n
call fcn.004461a0
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
je 0x45a924
push str.Proxy_Connection:
push ebp
call fcn.004544c0
add esp, 8
test eax, eax
jne 0x45a156
mov dword [esp + 0x34], str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent:
push ebp
call fcn.004544c0
add esp, 8
test eax, eax
jne 0x45a17c
mov eax, dword [ebp + 0x394]
test eax, eax
je 0x45a17c
mov edx, dword [esi + 0x22c]
mov dword [esp + 0x24], edx
mov eax, dword [esi + 0x228]
test eax, eax
jne 0x45a18b
mov eax, 0x4a6ea0
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
mov eax, dword [esp + 0x20]
push ebx
push eax
push edi
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push ecx
call fcn.00455130
add esp, 0x20
mov esi, eax
test ebx, ebx
je 0x45a1c7
cmp byte [ebx], 0
je 0x45a1c7
push ebx
call fcn.0042585a
add esp, 4
push edi
call fcn.0042585a
add esp, 4
test esi, esi
jne 0x45a8a6
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x50]
push ebx
push edi
call fcn.00455510
mov esi, eax
add esp, 8
test esi, esi
jne 0x45a8a6
push 0x49b270
push ebx
call fcn.00455130
mov esi, eax
add esp, 8
test esi, esi
jne 0x45a8a6
mov ebx, dword [esp + 0x54]
lea edx, [ebp + 0x86b4]
push ebx
push eax
mov eax, dword [esp + 0x28]
push edx
push edi
push eax
call fcn.00454e70
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x45a8a6
mov dword [edi + ebx*4 + 0x484], 1
mov eax, edi
mov ecx, dword [eax + 0x124]
mov edx, dword [eax + 0x120]
push ecx
push edx
call fcn.00444e40
push edx
push eax
call fcn.00444e70
mov ecx, dword [esp + 0x40]
add esp, 0x10
sub ecx, eax
test ecx, ecx
jle 0x45a944
cmp dword [ebp + 0x530], 2
jne 0x45a28c
mov edx, dword [esp + 0x38]
push esi
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.0045b840
add esp, 0x10
test eax, eax
je 0x45aa1e
mov ebx, dword [esp + 0x50]
mov edi, dword [esp + 0x38]
lea eax, [ebp + 0x54c]
mov dword [esp + 0x14], 1
mov dword [esp + 0x20], eax
mov esi, eax
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x45a808
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x45a9c9
mov eax, dword [ebx + 0x124]
mov ecx, dword [ebx + 0x120]
push eax
push ecx
call fcn.00444e40
push edx
push eax
call fcn.00444e70
mov ecx, dword [esp + 0x40]
add esp, 0x10
sub ecx, eax
test ecx, ecx
jle 0x45a8d5
cmp ecx, 0x3e8
jl 0x45a302
mov ecx, 0x3e8
push ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
call fcn.0045b840
add esp, 0x10
cmp eax, 0xffffffff
je 0x45a7cf
test eax, eax
je 0x45a7e5
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x28]
mov eax, 0x4000
sub eax, edx
push eax
push ecx
push edi
push ebx
call fcn.00441310
add esp, 0x14
cmp eax, 0x51
je 0x45a7fa
xor ecx, ecx
cmp eax, ecx
je 0x45a359
mov dword [esp + 0x14], ecx
jmp 0x45a7e5
mov eax, dword [esp + 0x18]
cmp eax, ecx
jg 0x45a398
mov eax, dword [ebp + 0x110]
mov dword [esp + 0x14], ecx
cmp eax, ecx
je 0x45a386
cmp dword [ebp + 0x85ec], ecx
je 0x45a386
mov dword [ebx + 0x1f8], 1
jmp 0x45a7e5
mov dword [esp + 0x2c], 1
push str.Proxy_CONNECT_aborted
jmp 0x45a7dc
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
add edi, eax
cmp edx, 1
mov dword [esp + 0x24], edi
jle 0x45a452
mov edi, dword [esp + 0x44]
mov dword [esp + 0x24], ecx
mov edx, edi
lea ecx, [ebp + 0x54c]
or edx, dword [esp + 0x48]
mov dword [esp + 0x20], ecx
je 0x45a3f9
cdq
sub edi, eax
mov eax, dword [esp + 0x48]
sbb eax, edx
mov dword [esp + 0x44], edi
test eax, eax
mov dword [esp + 0x48], eax
jg 0x45a7e5
jl 0x45a3ec
test edi, edi
ja 0x45a7e5
mov dword [esp + 0x14], 0
jmp 0x45a7e5
lea edx, [esp + 0x34]
xor edi, edi
push edx
push eax
push ecx
push ebx
mov dword [esp + 0x44], edi
call fcn.0045c3a0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x45a43a
push str.chunk_reading_DONE_n
push ebp
call fcn.00440d50
mov eax, dword [esp + 0x5c]
add esp, 8
mov dword [esp + 0x14], edi
mov dword [ebx + eax*4 + 0x484], 2
jmp 0x45a7e5
mov ecx, dword [esp + 0x34]
push ecx
push str.Read__zd_bytes_of_chunk__continue_n
push ebp
call fcn.00440d50
add esp, 0xc
jmp 0x45a7e5
xor edi, edi
test eax, eax
mov dword [esp + 0x34], edi
jle 0x45a7e5
mov edx, dword [esp + 0x1c]
inc edx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x20]
cmp byte [edx], 0xa
jne 0x45a62d
mov eax, dword [ebp + 0x2d4]
test eax, eax
je 0x45a492
mov eax, dword [esp + 0x1c]
push ebx
push eax
push esi
push 1
push ebp
call fcn.00441460
add esp, 0x14
mov ecx, dword [ebp + 0x2b8]
mov eax, 2
test ecx, ecx
je 0x45a4a6
mov eax, 3
mov ecx, dword [esp + 0x1c]
push ecx
push esi
push eax
push ebx
call fcn.00441100
add esp, 0x10
test eax, eax
jne 0x45aa20
mov al, byte [esi]
cmp al, 0xd
je 0x45a648
cmp al, 0xa
je 0x45a648
mov eax, dword [esp + 0x1c]
push 0x11
push esi
push str.WWW_Authenticate:
mov dl, byte [eax + esi]
mov byte [eax + esi], 0
mov byte [esp + 0x1f], dl
call fcn.00458e70
add esp, 0xc
test eax, eax
je 0x45a500
mov eax, dword [ebp + 0x90]
cmp eax, 0x191
je 0x45a521
push 0x13
push esi
push str.Proxy_authenticate:
call fcn.00458e70
add esp, 0xc
test eax, eax
je 0x45a539
mov eax, dword [ebp + 0x90]
cmp eax, 0x197
jne 0x45a539
push esi
push eax
push ebx
call fcn.00454c30
add esp, 0xc
test eax, eax
jne 0x45aa20
jmp 0x45a60f
push 0xf
push esi
push str.Content_Length:
call fcn.00458e70
add esp, 0xc
test eax, eax
je 0x45a56a
push 0xa
lea eax, [esi + 0xf]
push 0
push eax
call fcn.0045c860
add esp, 0xc
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
jmp 0x45a60f
push str.close
push str.Connection:
push esi
call fcn.00455270
add esp, 0xc
test eax, eax
je 0x45a58e
mov dword [esp + 0x28], 1
jmp 0x45a60f
push str.chunked
push str.Transfer_Encoding:
push esi
call fcn.00455270
add esp, 0xc
test eax, eax
je 0x45a5c3
push str.CONNECT_responded_chunked_n
push ebp
call fcn.00440d50
push ebx
mov dword [esp + 0x48], 1
call fcn.0045c380
add esp, 0xc
jmp 0x45a60f
push str.close
push str.Proxy_Connection:
push esi
call fcn.00455270
add esp, 0xc
test eax, eax
je 0x45a5e4
mov dword [esp + 0x28], 1
jmp 0x45a60f
lea edi, [ebp + 0x90]
lea ecx, [esp + 0x40]
push edi
push ecx
push str.HTTP_1._d__d
push esi
call fcn.0046da3d
add esp, 0x10
cmp eax, 2
jne 0x45a60b
mov edx, dword [edi]
mov dword [ebp + 0x86a0], edx
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
mov al, byte [esp + 0x13]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x1c], 0
mov byte [ecx + esi], al
mov eax, dword [esp + 0x18]
lea esi, [edx + 1]
mov ecx, dword [esp + 0x20]
inc ecx
inc edi
cmp edi, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], edi
jl 0x45a460
jmp 0x45a7e5
lea eax, [ebp + 0x54c]
xor ecx, ecx
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x90]
cmp eax, 0x197
mov dword [esp + 0x24], ecx
jne 0x45a793
cmp dword [ebp + 0x85fc], ecx
jne 0x45a793
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
or eax, edx
mov dword [esp + 0x14], 2
je 0x45a6ea
mov ecx, edx
mov edx, dword [esp + 0x44]
push ecx
push edx
push str.Ignore__lld_bytes_of_response_body_n
push ebp
call fcn.00440d50
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x54]
sub eax, edi
add esp, 0x10
cdq
sub ecx, eax
mov eax, dword [esp + 0x48]
sbb eax, edx
mov dword [esp + 0x44], ecx
test eax, eax
mov dword [esp + 0x48], eax
jg 0x45a7be
jl 0x45a6ce
mov eax, ecx
test eax, eax
ja 0x45a7be
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x14], 0
mov dword [ebx + ecx*4 + 0x484], 2
jmp 0x45a7e5
cmp dword [esp + 0x3c], ecx
je 0x45a77e
mov eax, dword [esp + 0x18]
mov dword [ebp + 0xc0], 1
sub eax, edi
push eax
push str._zd_bytes_of_chunk_left_n
push ebp
call fcn.00440d50
mov al, byte [esi + 1]
add esp, 0xc
cmp al, 0xa
jne 0x45a71c
inc esi
inc edi
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x18]
sub edx, edi
push ecx
lea eax, [esi + 1]
push edx
push eax
push ebx
call fcn.0045c3a0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x45a76c
push str.chunk_reading_DONE_n
push ebp
call fcn.00440d50
mov ecx, dword [esp + 0x5c]
add esp, 8
mov dword [esp + 0x14], 0
mov dword [ebx + ecx*4 + 0x484], 2
mov dword [ebx + ecx*4 + 0x484], 2
jmp 0x45a7e5
mov edx, dword [esp + 0x18]
push edx
push str.Read__zd_bytes_of_chunk__continue_n
push ebp
call fcn.00440d50
jmp 0x45a7bb
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x54]
mov dword [ebx + ecx*4 + 0x484], 2
jmp 0x45a7e5
mov eax, dword [ebp + 0x86a0]
mov dword [esp + 0x14], ecx
cmp eax, 0xc8
jne 0x45a7be
mov eax, dword [esp + 0x18]
sub eax, edi
dec eax
cmp eax, ecx
je 0x45a7be
push eax
push str.Proxy_CONNECT_followed_by__zd_bytes_of_opaque_data._Data_ignored__known_bug_39_
push ebp
call fcn.00440dc0
add esp, 0xc
mov ecx, dword [esp + 0x54]
mov dword [ebx + ecx*4 + 0x484], 2
jmp 0x45a7e5
mov dword [esp + 0x2c], 1
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
push ebp
call fcn.00440dc0
add esp, 8
push ebx
call fcn.0045ad20
add esp, 4
test eax, eax
jne 0x45a95f
mov edi, dword [esp + 0x38]
cmp dword [esp + 0x24], 0x4000
jb 0x45a2b2
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x45a9c9
cmp dword [ebp + 0x86a0], 0xc8
je 0x45a845
push ebx
call fcn.00454510
xor edi, edi
add esp, 4
cmp eax, edi
jne 0x45aa20
cmp dword [ebx + 0x1a0], edi
je 0x45a847
mov dword [esp + 0x28], 1
jmp 0x45a84d
xor edi, edi
cmp dword [esp + 0x28], edi
je 0x45a859
cmp dword [ebp + 0xcc], edi
jne 0x45a96c
mov eax, dword [ebp + 0xcc]
mov esi, dword [esp + 0x54]
cmp eax, edi
je 0x45a887
cmp dword [ebx + esi*4 + 0x484], 2
jne 0x45a887
push edi
push str.TUNNEL_STATE_switched_to:__d_n
push ebp
mov dword [ebx + esi*4 + 0x484], edi
call fcn.00440d50
add esp, 0xc
cmp dword [ebp + 0xcc], edi
je 0x45a98c
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
mov eax, dword [esp + 0x50]
xor esi, esi
jmp 0x45a016
push str.Failed_sending_CONNECT_to_proxy
push ebp
call fcn.00440dc0
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov edx, dword [esp + 0x20]
push edx
call fcn.0042585a
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push ebp
call fcn.00440dc0
add esp, 8
mov eax, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov eax, dword [esp + 0x20]
push eax
call fcn.0042585a
add esp, 4
mov eax, 0x1b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0042585a
add esp, 4
mov eax, 0x1b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
push edi
call fcn.0042585a
mov edx, dword [esp + 0x24]
push edx
call fcn.0042585a
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x3c
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push ebp
call fcn.00440dc0
add esp, 8
mov eax, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
pop edi
pop esi
pop ebp
mov eax, 0x2a
pop ebx
add esp, 0x3c
ret
mov esi, dword [esp + 0x54]
mov eax, dword [ebx + esi*4 + 0x130]
push eax
push ebx
call fcn.00442640
add esp, 8
mov dword [ebx + esi*4 + 0x130], 0xffffffff
mov eax, dword [ebp + 0x90]
cmp eax, 0xc8
je 0x45a9d6
push eax
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push ebp
call fcn.00440dc0
mov eax, dword [esp + 0x34]
add esp, 0xc
cmp eax, edi
je 0x45a9c2
cmp dword [ebp + 0xcc], edi
je 0x45a9c2
mov dword [ebx + 0x1f8], 1
mov dword [ebx + esi*4 + 0x484], edi
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x3c
ret
mov dword [ebx + esi*4 + 0x484], 2
mov eax, dword [ebx + 0x228]
cmp eax, edi
je 0x45a9fa
push eax
call fcn.0042585a
add esp, 4
mov dword [ebx + 0x228], edi
push str.Proxy_replied_OK_to_CONNECT_request_n
mov dword [ebx + 0x228], edi
push ebp
mov dword [ebp + 0x85f0], 1
call fcn.00440d50
add esp, 8
mov dword [ebp + 0xc0], edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret