Function at 0x4bc5f0
Capabilities:
Check http status code

Disassembly:
sub esp, 0x3c
push ebx
mov ebx, dword [esp + 0x44]
xor ecx, ecx
push ebp
mov ebp, dword [ebx]
mov dword [esp + 0x38], ecx
mov eax, dword [ebp + 0x19c]
mov dword [esp + 0x2c], eax
cmp eax, ecx
jne 0x4bc617
mov dword [esp + 0x2c], 0x36ee80
mov eax, dword [esp + 0x4c]
cmp dword [ebx + eax*4 + 0x568], 2
mov edx, dword [ebx + eax*4 + 0x130]
mov dword [esp + 0x30], edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], ecx
jne 0x4bc64c
pop ebp
xor eax, eax
pop ebx
add esp, 0x3c
ret
push esi
mov dword [ebx + 0x278], ecx
push edi
jmp 0x4bc660
xor edi, edi
cmp dword [ebx + eax*4 + 0x568], edi
je 0x4bcc7e
lea eax, [ebp + 0x568]
mov dword [esp + 0x20], eax
mov esi, eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], 1
jmp 0x4bc690
cmp dword [esp + 0x14], 0
je 0x4bcbce
cmp dword [esp + 0x2c], 0
jne 0x4bcf81
mov eax, dword [ebx + 0x124]
mov ecx, dword [ebx + 0x120]
push eax
push ecx
call fcn.004a44c0
push edx
push eax
call fcn.004a44f0
mov ecx, dword [esp + 0x44]
sub ecx, eax
add esp, 0x10
test ecx, ecx
jle 0x4bcc63
cmp ecx, 0x3e8
jl 0x4bc6de
mov ecx, 0x3e8
mov edx, dword [esp + 0x38]
push ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.004bb030
add esp, 0x10
cmp eax, 0xffffffff
je 0x4bcb97
test eax, eax
je 0x4bcbad
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x3c]
mov ecx, 0x4000
sub ecx, edi
push ecx
push edx
push eax
push ebx
call fcn.0049f580
add esp, 0x14
cmp eax, 0x51
je 0x4bcbc2
xor ecx, ecx
cmp eax, ecx
je 0x4bc739
mov dword [esp + 0x14], ecx
jmp 0x4bcbad
mov eax, dword [esp + 0x18]
cmp eax, ecx
jg 0x4bc76e
mov dword [esp + 0x14], ecx
cmp dword [ebp + 0x118], ecx
je 0x4bc764
cmp dword [ebp + 0x8e54], ecx
je 0x4bc764
mov dword [ebx + 0x278], 1
jmp 0x4bcbad
push str.Proxy_CONNECT_aborted
jmp 0x4bcb9c
add edi, eax
cmp dword [esp + 0x14], 1
mov dword [esp + 0x28], edi
jle 0x4bc81e
mov edx, dword [esp + 0x44]
or edx, dword [esp + 0x48]
mov dword [esp + 0x28], ecx
lea ecx, [ebp + 0x568]
mov dword [esp + 0x20], ecx
je 0x4bc7c8
cdq
sub dword [esp + 0x44], eax
mov eax, dword [esp + 0x48]
sbb eax, edx
mov dword [esp + 0x48], eax
test eax, eax
jg 0x4bcbad
jl 0x4bc7bb
cmp dword [esp + 0x44], 0
ja 0x4bcbad
mov dword [esp + 0x14], 0
jmp 0x4bcbad
lea edx, [esp + 0x30]
push edx
push eax
push ecx
xor edi, edi
push ebx
mov dword [esp + 0x40], edi
call fcn.004c37a0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4bc806
push str.chunk_reading_DONE_n
push ebp
call fcn.0049f850
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x1c], edi
mov dword [ebx + eax*4 + 0x568], 2
jmp 0x4bcbaa
mov ecx, dword [esp + 0x30]
push ecx
push str.Read__zd_bytes_of_chunk__continue_n
push ebp
call fcn.0049f850
add esp, 0xc
jmp 0x4bcbad
xor edi, edi
mov dword [esp + 0x30], edi
test eax, eax
jle 0x4bcbad
mov ecx, 1
mov edx, dword [esp + 0x20]
add dword [esp + 0x1c], ecx
cmp byte [edx], 0xa
jne 0x4bc9fc
cmp dword [ebp + 0x2e4], 0
je 0x4bc85d
mov eax, dword [esp + 0x1c]
push ebx
push eax
push esi
push 1
push ebp
call fcn.0049f6c0
add esp, 0x14
cmp dword [ebp + 0x2c8], 0
mov eax, 2
je 0x4bc870
mov eax, 3
mov ecx, dword [esp + 0x1c]
push ecx
push esi
push eax
push ebx
call fcn.0049fd20
add esp, 0x10
test eax, eax
jne 0x4bcfd9
mov al, byte [esi]
cmp al, 0xd
je 0x4bca13
cmp al, 0xa
je 0x4bca13
mov eax, dword [esp + 0x1c]
mov dl, byte [eax + esi]
push 0x11
push esi
push str.WWW_Authenticate:
mov byte [esp + 0x1f], dl
mov byte [eax + esi], 0
call fcn.004a4bf0
add esp, 0xc
test eax, eax
je 0x4bc8ca
mov eax, dword [ebp + 0x90]
cmp eax, 0x191
je 0x4bc8eb
push 0x13
push esi
push str.Proxy_authenticate:
call fcn.004a4bf0
add esp, 0xc
test eax, eax
je 0x4bc903
mov eax, dword [ebp + 0x90]
cmp eax, 0x197
jne 0x4bc903
push esi
push eax
push ebx
call fcn.004b6ea0
add esp, 0xc
test eax, eax
jne 0x4bcfd9
jmp 0x4bc9db
push 0xf
push esi
push str.Content_Length:
call fcn.004a4bf0
add esp, 0xc
test eax, eax
je 0x4bc935
push 0xa
lea eax, [esi + 0xf]
push 0
push eax
call dword [0x545364]
add esp, 0xc
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
jmp 0x4bc9db
push str.close
push str.Connection:
push esi
call fcn.004b7510
add esp, 0xc
test eax, eax
je 0x4bc959
mov dword [esp + 0x24], 1
jmp 0x4bc9db
push str.chunked
push str.Transfer_Encoding:
push esi
call fcn.004b7510
add esp, 0xc
test eax, eax
je 0x4bc98e
push str.CONNECT_responded_chunked_n
push ebp
call fcn.0049f850
push ebx
mov dword [esp + 0x48], 1
call fcn.004c3780
add esp, 0xc
jmp 0x4bc9db
push str.close
push str.Proxy_Connection:
push esi
call fcn.004b7510
add esp, 0xc
test eax, eax
je 0x4bc9af
mov dword [esp + 0x24], 1
jmp 0x4bc9db
lea edi, [ebp + 0x90]
push edi
lea ecx, [esp + 0x44]
push ecx
push str.HTTP_1._d__d
push esi
call dword [0x545274]
add esp, 0x10
cmp eax, 2
jne 0x4bc9d7
mov edx, dword [edi]
mov dword [ebp + 0x8f00], edx
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
mov al, byte [esp + 0x13]
mov byte [ecx + esi], al
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], 0
inc esi
mov ecx, 1
add dword [esp + 0x20], ecx
add edi, ecx
mov dword [esp + 0x30], edi
cmp edi, eax
jl 0x4bc831
jmp 0x4bcbad
xor ecx, ecx
cmp dword [ebp + 0x90], 0x197
lea eax, [ebp + 0x568]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], eax
jne 0x4bcb5c
cmp dword [ebp + 0x8e64], ecx
jne 0x4bcb5c
mov eax, dword [esp + 0x44]
or eax, dword [esp + 0x48]
mov dword [esp + 0x14], 2
je 0x4bcaaf
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push ecx
push edx
push str.Ignore__lld_bytes_of_response_body_n
push ebp
call fcn.0049f850
mov eax, dword [esp + 0x28]
sub eax, edi
cdq
add esp, 0x10
sub dword [esp + 0x44], eax
mov eax, dword [esp + 0x48]
sbb eax, edx
mov dword [esp + 0x48], eax
test eax, eax
jg 0x4bcb86
jl 0x4bca93
cmp dword [esp + 0x44], 0
ja 0x4bcb86
mov eax, dword [esp + 0x54]
mov dword [esp + 0x14], 0
mov dword [ebx + eax*4 + 0x568], 2
jmp 0x4bcbad
cmp dword [esp + 0x3c], ecx
je 0x4bcb47
mov eax, dword [esp + 0x18]
sub eax, edi
push eax
push str._zd_bytes_of_chunk_left_n
push ebp
mov dword [ebp + 0xc8], 1
call fcn.0049f850
add esp, 0xc
cmp byte [esi + 1], 0xa
jne 0x4bcae0
inc esi
inc edi
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push ecx
sub edx, edi
push edx
lea eax, [esi + 1]
push eax
push ebx
call fcn.004c37a0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4bcb35
push str.chunk_reading_DONE_n
push ebp
call fcn.0049f850
mov ecx, dword [esp + 0x5c]
mov eax, ecx
mov dword [ebx + ecx*4 + 0x568], 2
add esp, 8
mov dword [esp + 0x14], 0
mov dword [ebx + eax*4 + 0x568], 2
jmp 0x4bcbad
mov edx, dword [esp + 0x18]
push edx
push str.Read__zd_bytes_of_chunk__continue_n
push ebp
call fcn.0049f850
jmp 0x4bcb83
mov eax, dword [esp + 0x54]
mov dword [esp + 0x14], ecx
mov dword [ebx + eax*4 + 0x568], 2
jmp 0x4bcbad
cmp dword [ebp + 0x8f00], 0xc8
mov dword [esp + 0x14], ecx
jne 0x4bcb86
mov eax, dword [esp + 0x18]
sub eax, edi
dec eax
cmp eax, ecx
je 0x4bcb86
push eax
push str.Proxy_CONNECT_followed_by__zd_bytes_of_opaque_data._Data_ignored__known_bug_39_
push ebp
call fcn.0049f8e0
add esp, 0xc
mov eax, dword [esp + 0x54]
mov dword [ebx + eax*4 + 0x568], 2
jmp 0x4bcbad
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
push ebp
mov dword [esp + 0x34], 1
call fcn.0049f8e0
add esp, 8
push ebx
call fcn.004a6ae0
add esp, 4
test eax, eax
jne 0x4bceff
mov edi, dword [esp + 0x28]
cmp edi, 0x4000
jb 0x4bc690
cmp dword [esp + 0x2c], 0
jne 0x4bcf81
cmp dword [ebp + 0x8f00], 0xc8
je 0x4bcc0a
push ebx
call fcn.004b79d0
xor edi, edi
add esp, 4
cmp eax, edi
jne 0x4bcfd9
cmp dword [ebx + 0x220], edi
je 0x4bcc0c
mov dword [esp + 0x24], 1
jmp 0x4bcc12
xor edi, edi
cmp dword [esp + 0x24], edi
je 0x4bcc1e
cmp dword [ebp + 0xd4], edi
jne 0x4bcf0c
mov esi, dword [esp + 0x54]
cmp dword [ebp + 0xd4], edi
je 0x4bcf2c
cmp dword [ebx + esi*4 + 0x568], 2
jne 0x4bcc4e
push edi
push str.TUNNEL_STATE_switched_to:__d_n
push ebp
mov dword [ebx + esi*4 + 0x568], edi
call fcn.0049f850
add esp, 0xc
cmp dword [ebp + 0xd4], edi
je 0x4bcf2c
mov eax, dword [esp + 0x54]
jmp 0x4bc660
push str.Proxy_CONNECT_aborted_due_to_timeout
push ebp
call fcn.0049f8e0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x3c
ret
movzx esi, word [esp + 0x5c]
mov edi, dword [esp + 0x58]
push esi
push edi
push str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
push ebp
call fcn.0049f850
mov eax, dword [ebp + 0xd4]
add esp, 0x10
test eax, eax
je 0x4bccb5
push eax
call dword [0x583918]
add esp, 4
mov dword [ebp + 0xd4], 0
call fcn.004b7260
mov ebx, eax
mov dword [esp + 0x2c], ebx
test ebx, ebx
je 0x4bcdd0
push esi
push edi
push str._s:_hu
call fcn.004a3d20
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4bccf2
push ebx
call dword [0x583918]
add esp, 4
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov ecx, dword [esp + 0x50]
push 1
push edi
push str.CONNECT
push ecx
call fcn.004b6d90
push edi
mov esi, eax
call dword [0x583918]
add esp, 0x14
test esi, esi
jne 0x4bced2
mov esi, dword [esp + 0x50]
cmp dword [esi + 0x114], 1
mov ecx, 0x54596a
mov ebx, ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], 0x55bd34
je 0x4bcd44
mov dword [esp + 0x34], 0x55bd38
mov eax, dword [esi + 0x238]
mov edx, 0x553b94
test eax, eax
jne 0x4bcd57
mov edx, ecx
jmp 0x4bcd5c
mov ecx, 0x553b98
movzx eax, word [esp + 0x5c]
push eax
push edx
mov edx, dword [esp + 0x60]
push edx
push ecx
push str._s_s_s:_hu
call fcn.004a3d20
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4bcd95
mov eax, dword [esp + 0x2c]
push eax
call dword [0x583918]
add esp, 4
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
push str.Host:
push ebp
call fcn.004b67c0
add esp, 8
test eax, eax
jne 0x4bcddd
push edi
push str.Host:__s_r_n
call fcn.004a3d20
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4bcddd
push edi
call dword [0x583918]
mov ecx, dword [esp + 0x30]
push ecx
call dword [0x583918]
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x3c
ret
push str.Proxy_Connection:
push ebp
call fcn.004b67c0
add esp, 8
test eax, eax
jne 0x4bcdf7
mov dword [esp + 0x3c], str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent:
push ebp
call fcn.004b67c0
add esp, 8
test eax, eax
jne 0x4bce1b
cmp dword [ebp + 0x3a4], eax
je 0x4bce1b
mov edx, dword [esi + 0x2ac]
mov dword [esp + 0x38], edx
mov eax, dword [esi + 0x2a8]
test eax, eax
jne 0x4bce2a
mov eax, 0x54596a
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push eax
mov eax, dword [esp + 0x40]
push ebx
push eax
push edi
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push ecx
call fcn.004b7ba0
add esp, 0x20
mov esi, eax
test ebx, ebx
je 0x4bce63
cmp byte [ebx], 0
je 0x4bce63
push ebx
call dword [0x583918]
add esp, 4
push edi
call dword [0x583918]
add esp, 4
test esi, esi
jne 0x4bceba
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x50]
push edi
push ebx
call fcn.004b7d00
mov esi, eax
add esp, 8
test esi, esi
jne 0x4bceba
push 0x558d8c
push edi
call fcn.004b7ba0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4bceba
mov edx, dword [esp + 0x54]
push edx
push eax
lea eax, [ebp + 0x8f14]
push eax
push ebx
push edi
call fcn.004b7270
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4bcee6
push str.Failed_sending_CONNECT_to_proxy
push ebp
call fcn.0049f8e0
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
push ebx
call dword [0x583918]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
mov dword [ebx + ecx*4 + 0x568], 1
xor eax, eax
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 edx, dword [ebx + esi*4 + 0x130]
push edx
push ebx
call fcn.004a2230
add esp, 8
mov dword [ebx + esi*4 + 0x130], 0xffffffff
mov eax, dword [ebp + 0x90]
cmp eax, 0xc8
je 0x4bcf8e
push eax
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push ebp
call fcn.0049f8e0
add esp, 0xc
cmp dword [esp + 0x24], edi
je 0x4bcf60
cmp dword [ebp + 0xd4], edi
je 0x4bcf60
mov dword [ebx + 0x278], 1
mov eax, dword [ebp + 0xd4]
cmp eax, edi
je 0x4bcf7a
push eax
call dword [0x583918]
add esp, 4
mov dword [ebp + 0xd4], edi
mov dword [ebx + esi*4 + 0x568], edi
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x3c
ret
mov dword [ebx + esi*4 + 0x568], 2
mov eax, dword [ebx + 0x2a8]
cmp eax, edi
je 0x4bcfb3
push eax
call dword [0x583918]
add esp, 4
mov dword [ebx + 0x2a8], edi
push str.Proxy_replied_OK_to_CONNECT_request_n
mov dword [ebx + 0x2a8], edi
push ebp
mov dword [ebp + 0x8e58], 1
call fcn.0049f850
add esp, 8
mov dword [ebp + 0xc8], edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret