Function at 0xb82230
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi]
xor ecx, ecx
mov dword [ebp - 0x34], ecx
mov eax, dword [ebx + 0x19c]
mov dword [ebp - 0x28], eax
cmp eax, ecx
jne 0xb82256
mov dword [ebp - 0x28], 0x36ee80
mov eax, dword [ebp + 0xc]
cmp dword [edi + eax*4 + 0x484], 2
mov edx, dword [edi + eax*4 + 0x130]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x24], ecx
jne 0xb82284
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov dword [edi + 0x1f8], ecx
jmp 0xb82290
cmp dword [edi + eax*4 + 0x484], ecx
je 0xb8285f
lea eax, [ebx + 0x560]
mov dword [ebp - 0xc], eax
mov esi, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], 1
cmp dword [ebp - 8], ecx
je 0xb827af
cmp dword [ebp - 0x24], ecx
jne 0xb82b67
mov eax, dword [edi + 0x124]
mov ecx, dword [edi + 0x120]
push eax
push ecx
call fcn.00b7b4c0
push edx
push eax
call fcn.00b7b4f0
mov ecx, dword [ebp - 0x28]
sub ecx, eax
add esp, 0x10
test ecx, ecx
jle 0xb82845
cmp ecx, 0x3e8
jl 0xb822fe
mov ecx, 0x3e8
mov edx, dword [ebp - 0x2c]
push ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.00b7fcc0
add esp, 0x10
cmp eax, 0xffffffff
je 0xb8277a
test eax, eax
je 0xb8278f
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x2c]
mov ecx, 0x4000
sub ecx, dword [ebp - 0x1c]
push ecx
push edx
push eax
push edi
call fcn.00b76430
add esp, 0x14
cmp eax, 0x51
je 0xb827a0
xor ecx, ecx
cmp eax, ecx
je 0xb82355
mov dword [ebp - 8], ecx
jmp 0xb8278f
mov eax, dword [ebp - 0x10]
cmp eax, ecx
jg 0xb82388
mov dword [ebp - 8], ecx
cmp dword [ebx + 0x118], ecx
je 0xb8237e
cmp dword [ebx + 0x8604], ecx
je 0xb8237e
mov dword [edi + 0x1f8], 1
jmp 0xb8278f
push str.Proxy_CONNECT_aborted
jmp 0xb8277f
add dword [ebp - 0x1c], eax
mov edx, 1
cmp dword [ebp - 8], edx
jle 0xb82433
mov dword [ebp - 0x1c], ecx
lea ecx, [ebx + 0x560]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x3c]
or ecx, dword [ebp - 0x38]
je 0xb823d9
cdq
sub dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
sbb eax, edx
mov dword [ebp - 0x38], eax
test eax, eax
jg 0xb8278f
jl 0xb823cd
cmp dword [ebp - 0x3c], 0
ja 0xb8278f
mov dword [ebp - 8], 0
jmp 0xb8278f
lea edx, [ebp - 0x14]
push edx
push eax
mov eax, dword [ebp - 0xc]
push eax
push edi
mov dword [ebp - 0x14], 0
call fcn.00b866e0
add esp, 0x10
cmp eax, 0xffffffff
jne 0xb8241c
push str.chunk_reading_DONE_n
push ebx
call fcn.00b766b0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], 0
mov dword [edi + ecx*4 + 0x484], 2
jmp 0xb8278c
mov edx, dword [ebp - 0x14]
push edx
push str.Read__zd_bytes_of_chunk__continue_n
push ebx
call fcn.00b766b0
add esp, 0xc
jmp 0xb8278f
mov dword [ebp - 0x14], ecx
cmp eax, ecx
jle 0xb8278f
jmp 0xb82442
xor ecx, ecx
add dword [ebp - 0x18], edx
mov edx, dword [ebp - 0xc]
cmp byte [edx], 0xa
jne 0xb825f0
cmp dword [ebx + 0x2e4], ecx
je 0xb8246a
mov eax, dword [ebp - 0x18]
push edi
push eax
push esi
push 1
push ebx
call fcn.00b765d0
add esp, 0x14
cmp dword [ebx + 0x2c8], 0
mov eax, 2
je 0xb8247d
mov eax, 3
mov ecx, dword [ebp - 0x18]
push ecx
push esi
push eax
push edi
call fcn.00b76930
add esp, 0x10
test eax, eax
jne 0xb82bc4
mov al, byte [esi]
cmp al, 0xd
je 0xb8260d
cmp al, 0xa
je 0xb8260d
mov eax, dword [ebp - 0x18]
mov dl, byte [eax + esi]
push 0x11
push esi
push str.WWW_Authenticate:
mov byte [ebp - 1], dl
mov byte [eax + esi], 0
call fcn.00b7f980
add esp, 0xc
test eax, eax
je 0xb824d4
mov eax, dword [ebx + 0x90]
cmp eax, 0x191
je 0xb824f5
push 0x13
push esi
push str.Proxy_authenticate:
call fcn.00b7f980
add esp, 0xc
test eax, eax
je 0xb8250d
mov eax, dword [ebx + 0x90]
cmp eax, 0x197
jne 0xb8250d
push esi
push eax
push edi
call fcn.00b7c3e0
add esp, 0xc
test eax, eax
jne 0xb82bc4
jmp 0xb825d6
push 0xf
push esi
push str.Content_Length:
call fcn.00b7f980
add esp, 0xc
test eax, eax
je 0xb8253c
push 0xa
lea eax, [esi + 0xf]
push 0
push eax
call fcn.00ba7123
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edx
jmp 0xb825d6
push str.close
push str.Connection:
push esi
call fcn.00b7c8e0
add esp, 0xc
test eax, eax
je 0xb8255c
mov dword [ebp - 0x20], 1
jmp 0xb825d6
push str.chunked
push str.Transfer_Encoding:
push esi
call fcn.00b7c8e0
add esp, 0xc
test eax, eax
je 0xb82590
push str.CONNECT_responded_chunked_n
push ebx
call fcn.00b766b0
push edi
mov dword [ebp - 0x30], 1
call fcn.00b866c0
add esp, 0xc
jmp 0xb825d6
push str.close
push str.Proxy_Connection:
push esi
call fcn.00b7c8e0
add esp, 0xc
test eax, eax
je 0xb825b0
mov dword [ebp - 0x20], 1
jmp 0xb825d6
lea edi, [ebx + 0x90]
push edi
lea ecx, [ebp - 0x34]
push ecx
push str.HTTP_1._d__d
push esi
call fcn.00ba6c7f
add esp, 0x10
cmp eax, 2
jne 0xb825d6
mov edx, dword [edi]
mov dword [ebx + 0x86b0], edx
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp + 8]
mov byte [ecx + esi], al
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], 0
inc esi
mov ecx, dword [ebp - 0x14]
mov edx, 1
add dword [ebp - 0xc], edx
add ecx, edx
mov dword [ebp - 0x14], ecx
cmp ecx, eax
jl 0xb82440
jmp 0xb8278f
xor ecx, ecx
cmp dword [ebx + 0x90], 0x197
lea eax, [ebx + 0x560]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0xc], eax
jne 0xb82741
cmp dword [ebx + 0x8614], ecx
jne 0xb82741
mov eax, dword [ebp - 0x3c]
or eax, dword [ebp - 0x38]
mov dword [ebp - 8], 2
je 0xb8269c
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
push ecx
push edx
push str.Ignore__lld_bytes_of_response_body_n
push ebx
call fcn.00b766b0
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x14]
add esp, 0x10
cdq
sub dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
sbb eax, edx
mov dword [ebp - 0x38], eax
test eax, eax
jg 0xb8276a
jl 0xb82682
cmp dword [ebp - 0x3c], 0
ja 0xb8276a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], 0
mov dword [edi + eax*4 + 0x484], 2
jmp 0xb8278f
cmp dword [ebp - 0x30], ecx
je 0xb8272e
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x14]
mov dword [ebx + 0xc8], 1
push eax
push str._zd_bytes_of_chunk_left_n
push ebx
call fcn.00b766b0
add esp, 0xc
cmp byte [esi + 1], 0xa
jne 0xb826ce
inc esi
inc dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
push ecx
push edx
lea eax, [esi + 1]
push eax
push edi
call fcn.00b866e0
add esp, 0x10
cmp eax, 0xffffffff
jne 0xb8271d
push str.chunk_reading_DONE_n
push ebx
call fcn.00b766b0
mov ecx, dword [ebp + 0xc]
mov eax, ecx
mov dword [edi + ecx*4 + 0x484], 2
add esp, 8
mov dword [ebp - 8], 0
mov dword [edi + eax*4 + 0x484], 2
jmp 0xb8278f
mov edx, dword [ebp - 0x10]
push edx
push str.Read__zd_bytes_of_chunk__continue_n
push ebx
call fcn.00b766b0
jmp 0xb82767
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov dword [edi + eax*4 + 0x484], 2
jmp 0xb8278f
cmp dword [ebx + 0x86b0], 0xc8
mov dword [ebp - 8], ecx
jne 0xb8276a
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x14]
dec eax
cmp eax, ecx
je 0xb8276a
push eax
push str.Proxy_CONNECT_followed_by__zd_bytes_of_opaque_data._Data_ignored__known_bug_39_
push ebx
call fcn.00b76730
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov dword [edi + eax*4 + 0x484], 2
jmp 0xb8278f
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
push ebx
mov dword [ebp - 0x24], 1
call fcn.00b76730
add esp, 8
push edi
call fcn.00b81aa0
add esp, 4
test eax, eax
jne 0xb82ade
xor ecx, ecx
cmp dword [ebp - 0x1c], 0x4000
jb 0xb822b5
cmp dword [ebp - 0x24], ecx
jne 0xb82b67
cmp dword [ebx + 0x86b0], 0xc8
je 0xb827e6
push edi
call fcn.00b7cd50
add esp, 4
test eax, eax
jne 0xb82bc4
cmp dword [edi + 0x1a0], eax
je 0xb827e6
mov dword [ebp - 0x20], 1
jmp 0xb827ec
cmp dword [ebp - 0x20], 0
je 0xb827f9
cmp dword [ebx + 0xd4], 0
jne 0xb82aea
cmp dword [ebx + 0xd4], 0
mov esi, dword [ebp + 0xc]
je 0xb82b09
cmp dword [edi + esi*4 + 0x484], 2
jne 0xb8282e
push 0
push str.TUNNEL_STATE_switched_to:__d_n
push ebx
mov dword [edi + esi*4 + 0x484], 0
call fcn.00b766b0
add esp, 0xc
cmp dword [ebx + 0xd4], 0
je 0xb82b09
mov eax, dword [ebp + 0xc]
xor ecx, ecx
jmp 0xb82290
push str.Proxy_CONNECT_aborted_due_to_timeout
push ebx
call fcn.00b76730
add esp, 8
pop esi
pop edi
mov eax, 0x38
pop ebx
mov esp, ebp
pop ebp
ret
movzx esi, word [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push esi
push ecx
push str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
push ebx
call fcn.00b766b0
mov eax, dword [ebx + 0xd4]
add esp, 0x10
test eax, eax
je 0xb82894
push eax
call dword [0xc3f004]
add esp, 4
mov dword [ebx + 0xd4], 0
call fcn.00b7c640
mov dword [ebp - 0x1c], eax
test eax, eax
je 0xb829aa
mov edx, dword [ebp + 0x10]
push esi
push edx
push str._s:_hu
call fcn.00b7ac40
add esp, 0xc
mov dword [ebp - 0x30], eax
test eax, eax
jne 0xb828d6
mov eax, dword [ebp - 0x1c]
push eax
call dword [0xc3f004]
add esp, 4
pop esi
pop edi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x30]
push 1
push ecx
push str.CONNECT
push edi
call fcn.00b7c2d0
mov edx, dword [ebp - 0x30]
push edx
mov esi, eax
call dword [0xc3f004]
add esp, 0x14
test esi, esi
jne 0xb82aae
cmp dword [edi + 0x114], 1
mov ecx, 0xc2e3a5
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x30], ecx
mov esi, ecx
mov dword [ebp - 0x2c], 0xc1bd7c
je 0xb82922
mov dword [ebp - 0x2c], 0xc1bd80
mov edi, dword [edi + 0x1b8]
mov edx, 0xc31110
test edi, edi
jne 0xb82935
mov edx, ecx
jmp 0xb8293a
mov ecx, 0xc31114
movzx eax, word [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push edx
push eax
push ecx
push str._s_s_s:_hu
call fcn.00b7ac40
mov edi, eax
add esp, 0x14
test edi, edi
jne 0xb8296f
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [0xc3f004]
add esp, 4
pop esi
lea eax, [edi + 0x1b]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Host:
push ebx
call fcn.00b7bdb0
add esp, 8
test eax, eax
jne 0xb829b6
push edi
push str.Host:__s_r_n
call fcn.00b7ac40
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
jne 0xb829b6
push edi
call dword [0xc3f004]
mov edx, dword [ebp - 0x1c]
push edx
call dword [0xc3f004]
add esp, 8
pop esi
pop edi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
push str.Proxy_Connection:
push ebx
call fcn.00b7bdb0
add esp, 8
test eax, eax
jne 0xb829cf
mov dword [ebp - 0x30], str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent:
push ebx
call fcn.00b7bdb0
add esp, 8
test eax, eax
jne 0xb829f2
cmp dword [ebx + 0x3a4], eax
je 0xb829f2
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x22c]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x228]
test eax, eax
jne 0xb82a04
mov eax, 0xc2e3a5
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
push edx
mov edx, dword [ebp - 0x1c]
push esi
push eax
mov eax, dword [ebp - 0x18]
push eax
push ecx
push edi
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push edx
call fcn.00b7cf30
add esp, 0x20
cmp dword [ebp - 0x18], 0
mov esi, eax
je 0xb82a40
mov eax, dword [ebp - 0x18]
cmp byte [eax], 0
je 0xb82a40
mov ecx, eax
push ecx
call dword [0xc3f004]
add esp, 4
push edi
call dword [0xc3f004]
add esp, 4
test esi, esi
jne 0xb82a97
mov edi, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
push edi
push edx
call fcn.00b7d010
mov esi, eax
add esp, 8
test esi, esi
jne 0xb82a97
push 0xc1bcf8
push edi
call fcn.00b7cf30
mov esi, eax
add esp, 8
test esi, esi
jne 0xb82a97
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
push esi
lea ecx, [ebx + 0x86c4]
push ecx
push edx
push edi
call fcn.00b7c650
mov esi, eax
add esp, 0x14
test esi, esi
je 0xb82ac4
push str.Failed_sending_CONNECT_to_proxy
push ebx
call fcn.00b76730
add esp, 8
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1c]
push eax
call dword [0xc3f004]
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
pop esi
pop edi
mov dword [ecx + edx*4 + 0x484], 1
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
pop edi
mov eax, 0x2a
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
mov eax, dword [edi + esi*4 + 0x130]
push eax
push edi
call fcn.00b78cb0
add esp, 8
mov dword [edi + esi*4 + 0x130], 0xffffffff
mov eax, dword [ebx + 0x90]
cmp eax, 0xc8
je 0xb82b73
push eax
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push ebx
call fcn.00b76730
add esp, 0xc
cmp dword [ebp - 0x20], 0
je 0xb82b3e
cmp dword [ebx + 0xd4], 0
je 0xb82b3e
mov dword [edi + 0x1f8], 1
mov eax, dword [ebx + 0xd4]
test eax, eax
je 0xb82b5c
push eax
call dword [0xc3f004]
add esp, 4
mov dword [ebx + 0xd4], 0
mov dword [edi + esi*4 + 0x484], 0
pop esi
pop edi
mov eax, 0x38
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + esi*4 + 0x484], 2
mov eax, dword [edi + 0x228]
test eax, eax
je 0xb82b9c
push eax
call dword [0xc3f004]
add esp, 4
xor esi, esi
mov dword [edi + 0x228], esi
jmp 0xb82b9e
xor esi, esi
push str.Proxy_replied_OK_to_CONNECT_request_n
mov dword [edi + 0x228], esi
push ebx
mov dword [ebx + 0x8608], 1
call fcn.00b766b0
add esp, 8
mov dword [ebx + 0xc8], esi
xor eax, eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret