Function at 0x46aa90
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 + 0x1d4]
mov dword [esp + 0x2c], eax
cmp eax, ecx
jne 0x46aab7
mov dword [esp + 0x2c], 0x36ee80
mov eax, dword [esp + 0x4c]
cmp dword [ebx + eax*4 + 0x484], 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 0x46aaec
pop ebp
xor eax, eax
pop ebx
add esp, 0x3c
ret
push esi
mov dword [ebx + 0x1f8], ecx
push edi
jmp 0x46ab00
xor edi, edi
cmp dword [ebx + eax*4 + 0x484], edi
je 0x46b11e
lea eax, [ebp + 0x598]
mov dword [esp + 0x20], eax
mov esi, eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], 1
jmp 0x46ab30
cmp dword [esp + 0x14], 0
je 0x46b06e
cmp dword [esp + 0x2c], 0
jne 0x46b421
mov eax, dword [ebx + 0x124]
mov ecx, dword [ebx + 0x120]
push eax
push ecx
call fcn.00455600
push edx
push eax
call fcn.00455630
mov ecx, dword [esp + 0x44]
sub ecx, eax
add esp, 0x10
test ecx, ecx
jle 0x46b103
cmp ecx, 0x3e8
jl 0x46ab7e
mov ecx, 0x3e8
mov edx, dword [esp + 0x38]
push ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.004688c0
add esp, 0x10
cmp eax, 0xffffffff
je 0x46b037
test eax, eax
je 0x46b04d
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.00450780
add esp, 0x14
cmp eax, 0x51
je 0x46b062
xor ecx, ecx
cmp eax, ecx
je 0x46abd9
mov dword [esp + 0x14], ecx
jmp 0x46b04d
mov eax, dword [esp + 0x18]
cmp eax, ecx
jg 0x46ac0e
mov dword [esp + 0x14], ecx
cmp dword [ebp + 0x150], ecx
je 0x46ac04
cmp dword [ebp + 0x863c], ecx
je 0x46ac04
mov dword [ebx + 0x1f8], 1
jmp 0x46b04d
push str.Proxy_CONNECT_aborted
jmp 0x46b03c
add edi, eax
cmp dword [esp + 0x14], 1
mov dword [esp + 0x28], edi
jle 0x46acbe
mov edx, dword [esp + 0x44]
or edx, dword [esp + 0x48]
mov dword [esp + 0x28], ecx
lea ecx, [ebp + 0x598]
mov dword [esp + 0x20], ecx
je 0x46ac68
cdq
sub dword [esp + 0x44], eax
mov eax, dword [esp + 0x48]
sbb eax, edx
mov dword [esp + 0x48], eax
test eax, eax
jg 0x46b04d
jl 0x46ac5b
cmp dword [esp + 0x44], 0
ja 0x46b04d
mov dword [esp + 0x14], 0
jmp 0x46b04d
lea edx, [esp + 0x30]
push edx
push eax
push ecx
xor edi, edi
push ebx
mov dword [esp + 0x40], edi
call fcn.00471910
add esp, 0x10
cmp eax, 0xffffffff
jne 0x46aca6
push str.chunk_reading_DONE_n
push ebp
call fcn.00450a50
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x1c], edi
mov dword [ebx + eax*4 + 0x484], 2
jmp 0x46b04a
mov ecx, dword [esp + 0x30]
push ecx
push str.Read__zd_bytes_of_chunk__continue_n
push ebp
call fcn.00450a50
add esp, 0xc
jmp 0x46b04d
xor edi, edi
mov dword [esp + 0x30], edi
test eax, eax
jle 0x46b04d
mov ecx, 1
mov edx, dword [esp + 0x20]
add dword [esp + 0x1c], ecx
cmp byte [edx], 0xa
jne 0x46ae9c
cmp dword [ebp + 0x31c], 0
je 0x46acfd
mov eax, dword [esp + 0x1c]
push ebx
push eax
push esi
push 1
push ebp
call fcn.004508c0
add esp, 0x14
cmp dword [ebp + 0x300], 0
mov eax, 2
je 0x46ad10
mov eax, 3
mov ecx, dword [esp + 0x1c]
push ecx
push esi
push eax
push ebx
call fcn.00450dc0
add esp, 0x10
test eax, eax
jne 0x46b479
mov al, byte [esi]
cmp al, 0xd
je 0x46aeb3
cmp al, 0xa
je 0x46aeb3
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.004685f0
add esp, 0xc
test eax, eax
je 0x46ad6a
mov eax, dword [ebp + 0x90]
cmp eax, 0x191
je 0x46ad8b
push 0x13
push esi
push str.Proxy_authenticate:
call fcn.004685f0
add esp, 0xc
test eax, eax
je 0x46ada3
mov eax, dword [ebp + 0x90]
cmp eax, 0x197
jne 0x46ada3
push esi
push eax
push ebx
call fcn.004644c0
add esp, 0xc
test eax, eax
jne 0x46b479
jmp 0x46ae79
push 0xf
push esi
push str.Content_Length:
call fcn.004685f0
add esp, 0xc
test eax, eax
je 0x46add4
push 0xa
lea eax, [esi + 0xf]
push 0
push eax
call fcn.0048d0c4
add esp, 0xc
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
jmp 0x46ae79
push str.close
push str.Connection:
push esi
call fcn.00464a20
add esp, 0xc
test eax, eax
je 0x46adf8
mov dword [esp + 0x24], 1
jmp 0x46ae79
push str.chunked
push str.Transfer_Encoding:
push esi
call fcn.00464a20
add esp, 0xc
test eax, eax
je 0x46ae2d
push str.CONNECT_responded_chunked_n
push ebp
call fcn.00450a50
push ebx
mov dword [esp + 0x48], 1
call fcn.004718f0
add esp, 0xc
jmp 0x46ae79
push str.close
push str.Proxy_Connection:
push esi
call fcn.00464a20
add esp, 0xc
test eax, eax
je 0x46ae4e
mov dword [esp + 0x24], 1
jmp 0x46ae79
lea edi, [ebp + 0x90]
push edi
lea ecx, [esp + 0x44]
push ecx
push str.HTTP_1._d__d
push esi
call fcn.0048caf4
add esp, 0x10
cmp eax, 2
jne 0x46ae75
mov edx, dword [edi]
mov dword [ebp + 0x86e8], edx
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
mov al, byte [esp + 0x13]
mov edx, dword [esp + 0x20]
mov byte [ecx + esi], al
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], 0
lea esi, [edx + 1]
mov ecx, 1
add dword [esp + 0x20], ecx
add edi, ecx
cmp edi, eax
mov dword [esp + 0x30], edi
jl 0x46acd1
jmp 0x46b04d
xor ecx, ecx
cmp dword [ebp + 0x90], 0x197
lea eax, [ebp + 0x598]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], eax
jne 0x46affc
cmp dword [ebp + 0x864c], ecx
jne 0x46affc
mov eax, dword [esp + 0x44]
or eax, dword [esp + 0x48]
mov dword [esp + 0x14], 2
je 0x46af4f
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.00450a50
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 0x46b026
jl 0x46af33
cmp dword [esp + 0x44], 0
ja 0x46b026
mov eax, dword [esp + 0x54]
mov dword [esp + 0x14], 0
mov dword [ebx + eax*4 + 0x484], 2
jmp 0x46b04d
cmp dword [esp + 0x3c], ecx
je 0x46afe7
mov eax, dword [esp + 0x18]
sub eax, edi
push eax
push str._zd_bytes_of_chunk_left_n
push ebp
mov dword [ebp + 0x100], 1
call fcn.00450a50
add esp, 0xc
cmp byte [esi + 1], 0xa
jne 0x46af80
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.00471910
add esp, 0x10
cmp eax, 0xffffffff
jne 0x46afd5
push str.chunk_reading_DONE_n
push ebp
call fcn.00450a50
mov ecx, dword [esp + 0x5c]
mov eax, ecx
mov dword [ebx + ecx*4 + 0x484], 2
add esp, 8
mov dword [esp + 0x14], 0
mov dword [ebx + eax*4 + 0x484], 2
jmp 0x46b04d
mov edx, dword [esp + 0x18]
push edx
push str.Read__zd_bytes_of_chunk__continue_n
push ebp
call fcn.00450a50
jmp 0x46b023
mov eax, dword [esp + 0x54]
mov dword [esp + 0x14], ecx
mov dword [ebx + eax*4 + 0x484], 2
jmp 0x46b04d
cmp dword [ebp + 0x86e8], 0xc8
mov dword [esp + 0x14], ecx
jne 0x46b026
mov eax, dword [esp + 0x18]
sub eax, edi
dec eax
cmp eax, ecx
je 0x46b026
push eax
push str.Proxy_CONNECT_followed_by__zd_bytes_of_opaque_data._Data_ignored__known_bug_39_
push ebp
call fcn.00450ae0
add esp, 0xc
mov eax, dword [esp + 0x54]
mov dword [ebx + eax*4 + 0x484], 2
jmp 0x46b04d
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
push ebp
mov dword [esp + 0x34], 1
call fcn.00450ae0
add esp, 8
push ebx
call fcn.0046a310
add esp, 4
test eax, eax
jne 0x46b39f
mov edi, dword [esp + 0x28]
cmp edi, 0x4000
jb 0x46ab30
cmp dword [esp + 0x2c], 0
jne 0x46b421
cmp dword [ebp + 0x86e8], 0xc8
je 0x46b0aa
push ebx
call fcn.00464eb0
xor edi, edi
add esp, 4
cmp eax, edi
jne 0x46b479
cmp dword [ebx + 0x1a0], edi
je 0x46b0ac
mov dword [esp + 0x24], 1
jmp 0x46b0b2
xor edi, edi
cmp dword [esp + 0x24], edi
je 0x46b0be
cmp dword [ebp + 0x10c], edi
jne 0x46b3ac
mov esi, dword [esp + 0x54]
cmp dword [ebp + 0x10c], edi
je 0x46b3cc
cmp dword [ebx + esi*4 + 0x484], 2
jne 0x46b0ee
push edi
push str.TUNNEL_STATE_switched_to:__d_n
push ebp
mov dword [ebx + esi*4 + 0x484], edi
call fcn.00450a50
add esp, 0xc
cmp dword [ebp + 0x10c], edi
je 0x46b3cc
mov eax, dword [esp + 0x54]
jmp 0x46ab00
push str.Proxy_CONNECT_aborted_due_to_timeout
push ebp
call fcn.00450ae0
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.00450a50
mov eax, dword [ebp + 0x10c]
add esp, 0x10
test eax, eax
je 0x46b155
push eax
call dword [0x4cd904]
add esp, 4
mov dword [ebp + 0x10c], 0
call fcn.00464770
mov ebx, eax
mov dword [esp + 0x2c], ebx
test ebx, ebx
je 0x46b270
push esi
push edi
push str._s:_hu
call fcn.00454480
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x46b192
push ebx
call dword [0x4cd904]
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.004643b0
push edi
mov esi, eax
call dword [0x4cd904]
add esp, 0x14
test esi, esi
jne 0x46b372
mov esi, dword [esp + 0x50]
cmp dword [esi + 0x114], 1
mov ecx, 0x4bc722
mov ebx, ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], 0x4ac80c
je 0x46b1e4
mov dword [esp + 0x34], 0x4b4a88
mov eax, dword [esi + 0x1b8]
mov edx, 0x4b02f0
test eax, eax
jne 0x46b1f7
mov edx, ecx
jmp 0x46b1fc
mov ecx, 0x4b02d4
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.00454480
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x46b235
mov eax, dword [esp + 0x2c]
push eax
call dword [0x4cd904]
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.00463e70
add esp, 8
test eax, eax
jne 0x46b27d
push edi
push str.Host:__s_r_n
call fcn.00454480
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x46b27d
push edi
call dword [0x4cd904]
mov ecx, dword [esp + 0x30]
push ecx
call dword [0x4cd904]
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.00463e70
add esp, 8
test eax, eax
jne 0x46b297
mov dword [esp + 0x3c], str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent:
push ebp
call fcn.00463e70
add esp, 8
test eax, eax
jne 0x46b2bb
cmp dword [ebp + 0x3dc], eax
je 0x46b2bb
mov edx, dword [esi + 0x22c]
mov dword [esp + 0x38], edx
mov eax, dword [esi + 0x228]
test eax, eax
jne 0x46b2ca
mov eax, 0x4bc722
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.00465080
add esp, 0x20
mov esi, eax
test ebx, ebx
je 0x46b303
cmp byte [ebx], 0
je 0x46b303
push ebx
call dword [0x4cd904]
add esp, 4
push edi
call dword [0x4cd904]
add esp, 4
test esi, esi
jne 0x46b35a
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x50]
push edi
push ebx
call fcn.00465180
mov esi, eax
add esp, 8
test esi, esi
jne 0x46b35a
push 0x4b1d44
push edi
call fcn.00465080
mov esi, eax
add esp, 8
test esi, esi
jne 0x46b35a
mov edx, dword [esp + 0x54]
push edx
push eax
lea eax, [ebp + 0x86fc]
push eax
push ebx
push edi
call fcn.00464780
mov esi, eax
add esp, 0x14
test esi, esi
je 0x46b386
push str.Failed_sending_CONNECT_to_proxy
push ebp
call fcn.00450ae0
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
push ebx
call dword [0x4cd904]
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 + 0x484], 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.00452a10
add esp, 8
mov dword [ebx + esi*4 + 0x130], 0xffffffff
mov eax, dword [ebp + 0x90]
cmp eax, 0xc8
je 0x46b42e
push eax
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push ebp
call fcn.00450ae0
add esp, 0xc
cmp dword [esp + 0x24], edi
je 0x46b400
cmp dword [ebp + 0x10c], edi
je 0x46b400
mov dword [ebx + 0x1f8], 1
mov eax, dword [ebp + 0x10c]
cmp eax, edi
je 0x46b41a
push eax
call dword [0x4cd904]
add esp, 4
mov dword [ebp + 0x10c], edi
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 0x46b453
push eax
call dword [0x4cd904]
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 + 0x8640], 1
call fcn.00450a50
add esp, 8
mov dword [ebp + 0x100], edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret