Function at 0x4e8490
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
mov ebx, dword [ebp + 8]
xor ecx, ecx
push esi
mov esi, dword [ebx]
mov dword [ebp - 0x38], ecx
mov eax, dword [esi + 0x1e0]
mov dword [ebp - 0x28], eax
cmp eax, ecx
jne 0x4e84b6
mov dword [ebp - 0x28], 0x36ee80
mov eax, dword [ebp + 0xc]
cmp dword [ebx + eax*4 + 0x4fc], 2
mov edx, dword [ebx + eax*4 + 0x150]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x24], ecx
jne 0x4e84e4
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov dword [ebx + 0x240], ecx
jmp 0x4e84f0
cmp dword [ebx + eax*4 + 0x4fc], ecx
je 0x4e8b04
lea eax, [esi + 0x5ac]
mov dword [ebp - 0x10], eax
mov edi, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 1
cmp dword [ebp - 8], ecx
je 0x4e8a54
cmp dword [ebp - 0x24], ecx
jne 0x4e8e0c
mov eax, dword [ebx + 0x144]
mov ecx, dword [ebx + 0x140]
push eax
push ecx
call fcn.004cc7a0
push edx
push eax
call fcn.004cc7d0
mov ecx, dword [ebp - 0x28]
sub ecx, eax
add esp, 0x10
test ecx, ecx
jle 0x4e8aea
cmp ecx, 0x3e8
jl 0x4e855e
mov ecx, 0x3e8
mov edx, dword [ebp - 0x2c]
push ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.004caa20
add esp, 0x10
cmp eax, 0xffffffff
je 0x4e8a1f
test eax, eax
je 0x4e8a34
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x2c]
mov ecx, 0x4000
sub ecx, dword [ebp - 0x1c]
push ecx
push edx
push eax
push ebx
call fcn.004cc930
add esp, 0x14
cmp eax, 0x51
je 0x4e8a45
xor ecx, ecx
cmp eax, ecx
je 0x4e85b5
mov dword [ebp - 8], ecx
jmp 0x4e8a34
mov eax, dword [ebp - 0x14]
cmp eax, ecx
jg 0x4e85e8
mov dword [ebp - 8], ecx
cmp dword [esi + 0x158], ecx
je 0x4e85de
cmp dword [esi + 0x864c], ecx
je 0x4e85de
mov dword [ebx + 0x240], 1
jmp 0x4e8a34
push str.Proxy_CONNECT_aborted
jmp 0x4e8a24
add dword [ebp - 0x1c], eax
mov edx, 1
cmp dword [ebp - 8], edx
jle 0x4e8693
mov dword [ebp - 0x1c], ecx
lea ecx, [esi + 0x5ac]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x40]
or ecx, dword [ebp - 0x3c]
je 0x4e8639
cdq
sub dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
sbb eax, edx
mov dword [ebp - 0x3c], eax
test eax, eax
jg 0x4e8a34
jl 0x4e862d
cmp dword [ebp - 0x40], 0
ja 0x4e8a34
mov dword [ebp - 8], 0
jmp 0x4e8a34
lea edx, [ebp - 0x18]
push edx
push eax
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov dword [ebp - 0x18], 0
call fcn.00503480
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4e867c
push str.chunk_reading_DONE_n
push esi
call fcn.004ccba0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], 0
mov dword [ebx + ecx*4 + 0x4fc], 2
jmp 0x4e8a31
mov edx, dword [ebp - 0x18]
push edx
push str.Read__zd_bytes_of_chunk__continue_n
push esi
call fcn.004ccba0
add esp, 0xc
jmp 0x4e8a34
mov dword [ebp - 0x18], ecx
cmp eax, ecx
jle 0x4e8a34
jmp 0x4e86a2
xor ecx, ecx
add dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x10]
cmp byte [edx], 0xa
jne 0x4e8895
cmp dword [esi + 0x324], ecx
je 0x4e86ca
mov eax, dword [ebp - 0xc]
push ebx
push eax
push edi
push 1
push esi
call fcn.004ccac0
add esp, 0x14
cmp dword [esi + 0x308], 0
mov eax, 2
je 0x4e86dd
mov eax, 3
mov ecx, dword [ebp - 0xc]
push ecx
push edi
push eax
push ebx
call fcn.004ccef0
mov ecx, dword [ebp - 0xc]
add dword [esi + 0x8700], ecx
add dword [esi + 0x80], ecx
add esp, 0x10
test eax, eax
jne 0x4e8e6f
mov al, byte [edi]
cmp al, 0xd
je 0x4e88b2
cmp al, 0xa
je 0x4e88b2
mov eax, ecx
mov dl, byte [eax + edi]
push 0x11
push edi
push str.WWW_Authenticate:
mov byte [ebp - 1], dl
mov byte [eax + edi], 0
call fcn.004d0f30
add esp, 0xc
test eax, eax
je 0x4e8742
mov eax, dword [esi + 0xc8]
cmp eax, 0x191
je 0x4e8763
push 0x13
push edi
push str.Proxy_authenticate:
call fcn.004d0f30
add esp, 0xc
test eax, eax
je 0x4e87b2
mov eax, dword [esi + 0xc8]
cmp eax, 0x197
jne 0x4e87b2
xor ecx, ecx
cmp eax, 0x197
sete cl
push edi
mov dword [ebp - 0x34], ecx
call fcn.004e4b00
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4e8c4f
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp + 8]
push ebx
push edx
push eax
call fcn.004e5130
push ebx
mov dword [ebp - 0x34], eax
call dword [0x61e4f8]
add esp, 0x10
cmp dword [ebp - 0x34], 0
je 0x4e887b
mov eax, dword [ebp - 0x34]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xf
push edi
push str.Content_Length:
call fcn.004d0f30
add esp, 0xc
test eax, eax
je 0x4e87e1
push 0xa
lea ecx, [edi + 0xf]
push 0
push ecx
call fcn.004a6b60
add esp, 0xc
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
jmp 0x4e887b
push str.close
push str.Connection:
push edi
call fcn.004e56a0
add esp, 0xc
test eax, eax
je 0x4e8801
mov dword [ebp - 0x20], 1
jmp 0x4e887b
push str.chunked
push str.Transfer_Encoding:
push edi
call fcn.004e56a0
add esp, 0xc
test eax, eax
je 0x4e8835
push str.CONNECT_responded_chunked_n
push esi
call fcn.004ccba0
push ebx
mov dword [ebp - 0x30], 1
call fcn.00503460
add esp, 0xc
jmp 0x4e887b
push str.close
push str.Proxy_Connection:
push edi
call fcn.004e56a0
add esp, 0xc
test eax, eax
je 0x4e8855
mov dword [ebp - 0x20], 1
jmp 0x4e887b
lea ebx, [esi + 0xc8]
push ebx
lea edx, [ebp - 0x38]
push edx
push str.HTTP_1._d__d
push edi
call fcn.00498129
add esp, 0x10
cmp eax, 2
jne 0x4e887b
mov eax, dword [ebx]
mov dword [esi + 0x86f0], eax
mov edx, dword [ebp - 0xc]
mov cl, byte [ebp - 1]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp + 8]
mov byte [edx + edi], cl
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0xc], 0
inc edi
mov ecx, dword [ebp - 0x18]
mov edx, 1
add dword [ebp - 0x10], edx
add ecx, edx
mov dword [ebp - 0x18], ecx
cmp ecx, eax
jl 0x4e86a0
jmp 0x4e8a34
xor ecx, ecx
cmp dword [esi + 0xc8], 0x197
lea eax, [esi + 0x5ac]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], eax
jne 0x4e89e6
cmp dword [esi + 0x865c], ecx
jne 0x4e89e6
mov edx, dword [ebp - 0x40]
or edx, dword [ebp - 0x3c]
mov dword [ebp - 8], 2
je 0x4e8941
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
push eax
push ecx
push str.Ignore__I64d_bytes_of_response_body_n
push esi
call fcn.004ccba0
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
add esp, 0x10
cdq
sub dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
sbb eax, edx
mov dword [ebp - 0x3c], eax
test eax, eax
jg 0x4e8a0f
jl 0x4e8927
cmp dword [ebp - 0x40], 0
ja 0x4e8a0f
mov edx, dword [ebp + 0xc]
mov dword [ebp - 8], 0
mov dword [ebx + edx*4 + 0x4fc], 2
jmp 0x4e8a34
cmp dword [ebp - 0x30], ecx
je 0x4e89d3
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x18]
mov dword [esi + 0x100], 1
push edx
push str._zd_bytes_of_chunk_left_n
push esi
call fcn.004ccba0
add esp, 0xc
cmp byte [edi + 1], 0xa
jne 0x4e8973
inc edi
inc dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
push ecx
lea edx, [edi + 1]
push edx
push ebx
call fcn.00503480
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4e89c2
push str.chunk_reading_DONE_n
push esi
call fcn.004ccba0
mov eax, dword [ebp + 0xc]
mov edx, eax
mov dword [ebx + eax*4 + 0x4fc], 2
add esp, 8
mov dword [ebp - 8], 0
mov dword [ebx + edx*4 + 0x4fc], 2
jmp 0x4e8a34
mov ecx, dword [ebp - 0x14]
push ecx
push str.Read__zd_bytes_of_chunk__continue_n
push esi
call fcn.004ccba0
jmp 0x4e8a0c
mov edx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov dword [ebx + edx*4 + 0x4fc], 2
jmp 0x4e8a34
cmp dword [esi + 0x86f0], 0xc8
mov dword [ebp - 8], ecx
jne 0x4e8a0f
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
dec eax
cmp eax, ecx
je 0x4e8a0f
push eax
push str.Proxy_CONNECT_followed_by__zd_bytes_of_opaque_data._Data_ignored__known_bug_39_
push esi
call fcn.004ccc20
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov dword [ebx + edx*4 + 0x4fc], 2
jmp 0x4e8a34
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
push esi
mov dword [ebp - 0x24], 1
call fcn.004ccc20
add esp, 8
push ebx
call fcn.004d42c0
add esp, 4
test eax, eax
jne 0x4e8d83
xor ecx, ecx
cmp dword [ebp - 0x1c], 0x4000
jb 0x4e8515
cmp dword [ebp - 0x24], ecx
jne 0x4e8e0c
cmp dword [esi + 0x86f0], 0xc8
je 0x4e8a8b
push ebx
call fcn.004e5960
add esp, 4
test eax, eax
jne 0x4e8e6f
cmp dword [ebx + 0x1e8], eax
je 0x4e8a8b
mov dword [ebp - 0x20], 1
jmp 0x4e8a91
cmp dword [ebp - 0x20], 0
je 0x4e8a9e
cmp dword [esi + 0x10c], 0
jne 0x4e8d8f
cmp dword [esi + 0x10c], 0
mov edi, dword [ebp + 0xc]
je 0x4e8dae
cmp dword [ebx + edi*4 + 0x4fc], 2
jne 0x4e8ad3
push 0
push str.TUNNEL_STATE_switched_to:__d_n
push esi
mov dword [ebx + edi*4 + 0x4fc], 0
call fcn.004ccba0
add esp, 0xc
cmp dword [esi + 0x10c], 0
je 0x4e8dae
mov eax, dword [ebp + 0xc]
xor ecx, ecx
jmp 0x4e84f0
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.004ccc20
add esp, 8
pop edi
pop esi
mov eax, 0x38
pop ebx
mov esp, ebp
pop ebp
ret
movzx edi, word [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push edi
push eax
push str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
push esi
call fcn.004ccba0
mov eax, dword [esi + 0x10c]
add esp, 0x10
test eax, eax
je 0x4e8b39
push eax
call dword [0x61e4f8]
add esp, 4
mov dword [esi + 0x10c], 0
call fcn.004e5400
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4e8c4f
mov ecx, dword [ebp + 0x10]
push edi
push ecx
push str._s:_hu
call fcn.004cfc10
add esp, 0xc
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x4e8b7b
mov edx, dword [ebp - 0x1c]
push edx
call dword [0x61e4f8]
add esp, 4
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x30]
push 1
push eax
push str.CONNECT
push ebx
call fcn.004e5020
mov ecx, dword [ebp - 0x30]
push ecx
mov edi, eax
call dword [0x61e4f8]
add esp, 0x14
test edi, edi
jne 0x4e8d53
cmp dword [ebx + 0x134], 1
mov ecx, 0x5f6f70
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x30], ecx
mov edi, ecx
mov dword [ebp - 0x2c], 0x5c0838
je 0x4e8bc7
mov dword [ebp - 0x2c], 0x5c083c
mov ebx, dword [ebx + 0x200]
mov edx, 0x5bb3d0
test ebx, ebx
jne 0x4e8bda
mov edx, ecx
jmp 0x4e8bdf
mov ecx, 0x605d60
movzx eax, word [ebp + 0x14]
push eax
push edx
mov edx, dword [ebp + 0x10]
push edx
push ecx
push str._s_s_s:_hu
call fcn.004cfc10
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x4e8c14
mov eax, dword [ebp - 0x1c]
push eax
call dword [0x61e4f8]
add esp, 4
pop edi
pop esi
lea eax, [ebx + 0x1b]
pop ebx
mov esp, ebp
pop ebp
ret
push str.Host:
push esi
call fcn.004e4ab0
add esp, 8
test eax, eax
jne 0x4e8c5b
push ebx
push str.Host:__s_r_n
call fcn.004cfc10
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x4e8c5b
push ebx
call dword [0x61e4f8]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [0x61e4f8]
add esp, 8
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
push str.Proxy_Connection:
push esi
call fcn.004e4ab0
add esp, 8
test eax, eax
jne 0x4e8c74
mov dword [ebp - 0x30], str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent:
push esi
call fcn.004e4ab0
add esp, 8
test eax, eax
jne 0x4e8c97
cmp dword [esi + 0x3e4], eax
je 0x4e8c97
mov edx, dword [ebp + 8]
mov edi, dword [edx + 0x274]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x270]
test eax, eax
jne 0x4e8ca9
mov eax, 0x5f6f70
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x1c]
push edi
push eax
mov eax, dword [ebp - 0x2c]
push edx
push eax
push ebx
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push ecx
call fcn.004e5b40
add esp, 0x20
cmp dword [ebp - 0x18], 0
mov edi, eax
je 0x4e8ce5
mov edx, dword [ebp - 0x18]
cmp byte [edx], 0
je 0x4e8ce5
mov eax, edx
push eax
call dword [0x61e4f8]
add esp, 4
push ebx
call dword [0x61e4f8]
add esp, 4
test edi, edi
jne 0x4e8d3c
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
push ebx
push ecx
call fcn.004e5c80
mov edi, eax
add esp, 8
test edi, edi
jne 0x4e8d3c
push 0x5bd914
push ebx
call fcn.004e5b40
mov edi, eax
add esp, 8
test edi, edi
jne 0x4e8d3c
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edx
push eax
lea eax, [esi + 0x8704]
push eax
push ecx
push ebx
call fcn.004e5410
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4e8d69
push str.Failed_sending_CONNECT_to_proxy
push esi
call fcn.004ccc20
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x1c]
push edx
call dword [0x61e4f8]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
pop edi
pop esi
mov dword [eax + ecx*4 + 0x4fc], 1
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x2a
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0xc]
mov edx, dword [ebx + edi*4 + 0x150]
push edx
push ebx
call fcn.004ce0c0
add esp, 8
mov dword [ebx + edi*4 + 0x150], 0xffffffff
mov eax, dword [esi + 0xc8]
cmp eax, 0xc8
je 0x4e8e18
push eax
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push esi
call fcn.004ccc20
add esp, 0xc
cmp dword [ebp - 0x20], 0
je 0x4e8de3
cmp dword [esi + 0x10c], 0
je 0x4e8de3
mov dword [ebx + 0x240], 1
mov eax, dword [esi + 0x10c]
test eax, eax
je 0x4e8e01
push eax
call dword [0x61e4f8]
add esp, 4
mov dword [esi + 0x10c], 0
mov dword [ebx + edi*4 + 0x4fc], 0
pop edi
pop esi
mov eax, 0x38
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + edi*4 + 0x4fc], 2
mov eax, dword [ebx + 0x270]
test eax, eax
je 0x4e8e41
push eax
call dword [0x61e4f8]
add esp, 4
xor edi, edi
mov dword [ebx + 0x270], edi
jmp 0x4e8e43
xor edi, edi
push str.Proxy_replied_OK_to_CONNECT_request_n
mov dword [ebx + 0x270], edi
push esi
mov dword [esi + 0x8650], 1
call fcn.004ccba0
add esp, 8
mov dword [esi + 0x100], edi
mov dword [ebx + 0x224], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret