Function at 0x4e7130
Capabilities:
Check http status code

Disassembly:
sub esp, 0x40
push ebx
push ebp
mov ebp, dword [esp + 0x4c]
push esi
push edi
mov edi, dword [esp + 0x58]
mov esi, dword [ebp + 0x7d8]
mov ebx, dword [ebp]
mov dword [esp + 0x34], 0
lea eax, [edi*4 + 0x420]
add eax, ebp
mov dword [esp + 0x24], eax
mov eax, dword [ebp + edi*4 + 0x420]
mov dword [esp + 0x30], eax
test esi, esi
je 0x4e7b01
cmp dword [esi + 0x20], 2
je 0x4e7b01
mov byte [ebp + 0x514], 0
cmp dword [esi + 0x20], 0
jne 0x4e73da
push dword [esp + 0x60]
mov edi, dword [esp + 0x60]
push edi
push str.Establish_HTTP_proxy_tunnel_to__s:_d_n
push ebx
call fcn.004e2350
push dword [ebx + 0x12c]
call dword [0x860708]
push dword [esp + 0x74]
mov dword [ebx + 0x12c], 0
push edi
push str._s:_d
call fcn.004e5db0
mov edi, eax
add esp, 0x20
mov dword [esp + 0x1c], edi
test edi, edi
je 0x4e79b3
lea eax, [esp + 0x40]
push 0x20000
push eax
call fcn.004d8a10
push 1
push edi
push str.CONNECT
push ebp
call fcn.004ee020
push dword [esp + 0x34]
mov edi, eax
call dword [0x860708]
add esp, 0x1c
test edi, edi
jne 0x4e73ba
cmp dword [ebp + 0x358], 1
mov ecx, 0x788ab8
mov eax, 0x788ab4
mov dword [esp + 0x1c], edi
cmovne eax, ecx
mov dword [esp + 0x18], 0x81fd64
mov cl, byte [ebp + 0x51c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
cmp eax, dword [ebp + 0x304]
je 0x4e724f
push 0x3a
push eax
call fcn.0062f4a0
add esp, 8
test eax, eax
setne cl
push dword [esp + 0x60]
test cl, cl
mov edx, 0x81fd64
mov eax, 0x8215e0
cmove eax, edx
push eax
push dword [esp + 0x64]
mov eax, 0x8215e4
cmove eax, edx
push eax
push str._s_s_s:_d
call fcn.004e5db0
add esp, 0x14
mov dword [esp + 0x14], eax
test eax, eax
je 0x4e79a6
push str.Host
push ebp
call fcn.004ed900
add esp, 8
test eax, eax
jne 0x4e72ba
push dword [esp + 0x14]
push str.Host:__s_r_n
call fcn.004e5db0
mov edi, eax
add esp, 8
mov dword [esp + 0x1c], edi
test edi, edi
je 0x4e7982
push str.Proxy_Connection
push ebp
call fcn.004ed900
test eax, eax
mov ecx, str.Proxy_Connection:_Keep_Alive_r_n
mov eax, 0x81fd64
cmovne ecx, eax
push str.User_Agent
push ebp
mov dword [esp + 0x38], ecx
call fcn.004ed900
add esp, 0x10
test eax, eax
jne 0x4e72fc
cmp dword [ebx + 0xa04], eax
je 0x4e72fc
mov eax, dword [ebx + 0x10c0]
mov dword [esp + 0x18], eax
push dword [esp + 0x28]
mov eax, dword [ebx + 0x10bc]
mov edx, 0x81fd64
push dword [esp + 0x1c]
test eax, eax
mov ecx, edx
cmovne ecx, eax
mov eax, edx
push ecx
test edi, edi
cmovne eax, edi
push eax
push dword [esp + 0x3c]
lea eax, [esp + 0x54]
push dword [esp + 0x28]
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push eax
call fcn.004d8960
mov edi, eax
add esp, 0x20
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4e734d
push eax
call dword [0x860708]
add esp, 4
push dword [esp + 0x14]
call dword [0x860708]
add esp, 4
test edi, edi
jne 0x4e73ac
lea eax, [esp + 0x40]
push eax
push 1
push ebp
call fcn.004ed240
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4e73ac
lea eax, [esp + 0x40]
push 0x8215d4
push eax
call fcn.004d8930
mov edi, eax
add esp, 8
test edi, edi
jne 0x4e73ac
push dword [esp + 0x58]
push eax
lea eax, [ebx + 0x1140]
push eax
lea eax, [esp + 0x4c]
push ebp
push eax
call fcn.004ed6c0
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4e73ba
push str.Failed_sending_CONNECT_to_proxy
push ebx
call fcn.004e2270
add esp, 8
lea eax, [esp + 0x40]
push eax
call fcn.004d89e0
add esp, 4
test edi, edi
jne 0x4e79c0
mov edi, dword [esp + 0x58]
mov dword [esi + 0x20], 1
push 1
push 0
push ebx
call fcn.004e38d0
add esp, 0xc
test edx, edx
jl 0x4e7b0b
jg 0x4e73f9
test eax, eax
je 0x4e7b0b
push edi
push ebp
call fcn.004e2d30
add esp, 8
test al, al
je 0x4e7b01
xor edi, edi
mov dword [esp + 0x14], edi
cmp dword [esi + 0x10], edi
je 0x4e74ac
nop word [eax + eax]
lea eax, [esp + 0x20]
push eax
push 1
lea eax, [esp + 0x1b]
push eax
push dword [esp + 0x3c]
push ebp
call fcn.004e2430
mov edi, eax
add esp, 0x14
cmp edi, 0x51
je 0x4e7b01
push ebp
call fcn.004f0490
add esp, 4
test eax, eax
jne 0x4e79e5
test edi, edi
jne 0x4e74a1
cmp dword [esp + 0x20], edi
jle 0x4e792c
cmp dword [esi + 0x10], 1
jle 0x4e75a2
mov ecx, dword [esi + 0x18]
mov eax, ecx
mov edx, dword [esi + 0x1c]
or eax, edx
je 0x4e755d
sub ecx, 1
mov dword [esi + 0x18], ecx
sbb edx, edi
mov dword [esi + 0x1c], edx
test edx, edx
jl 0x4e749a
jg 0x4e791d
test ecx, ecx
ja 0x4e791d
mov dword [esi + 0x20], 2
mov dword [esi + 0x10], 0
mov edi, dword [esp + 0x14]
push ebp
call fcn.004f0490
add esp, 4
test eax, eax
jne 0x4e79e5
test edi, edi
jne 0x4e79d8
mov eax, dword [ebx + 0x1124]
sub eax, 0xc8
cmp eax, 0x64
jb 0x4e74f2
push ebp
call fcn.004edb20
add esp, 4
test eax, eax
jne 0x4e7b03
cmp byte [ebp + 0x515], al
je 0x4e74f2
mov byte [esi + 0x25], 1
cmp byte [esi + 0x25], 0
je 0x4e7505
cmp dword [ebx + 0x12c], 0
jne 0x4e79f2
cmp dword [ebx + 0x12c], 0
je 0x4e7a09
cmp dword [esi + 0x20], 2
jne 0x4e7547
mov edi, dword [ebp + 0x7d8]
push edi
call fcn.004d8a30
add esp, 4
mov dword [edi + 0x20], 0
mov dword [edi + 0x10], 1
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov byte [edi + 0x25], 0
cmp dword [ebx + 0x12c], 0
je 0x4e7a09
mov edi, dword [esp + 0x58]
jmp 0x4e7181
lea eax, [esp + 0x38]
mov dword [esp + 0x2c], 0
push eax
lea eax, [esp + 0x30]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push ebp
call fcn.0050e310
add esp, 0x14
cmp eax, 0xffffffff
jne 0x4e791d
push str.chunk_reading_DONE_n
push ebx
call fcn.004e2350
add esp, 8
mov dword [esi + 0x10], 0
jmp 0x4e7916
push 1
lea eax, [esp + 0x17]
push eax
push esi
call fcn.004d89d0
add esp, 0xc
test eax, eax
jne 0x4e79ca
cmp byte [esp + 0x13], 0xa
jne 0x4e791d
push esi
call fcn.0054fba0
push esi
mov edi, eax
call fcn.00525610
add esp, 8
mov ebp, eax
cmp byte [ebx + 0xb42], 0
je 0x4e75ee
push ebp
push edi
push 1
push ebx
call fcn.004e21e0
add esp, 0x10
cmp byte [ebx + 0xb56], 0
jne 0x4e761c
xor eax, eax
cmp byte [ebx + 0xb3d], al
push ebp
setne al
push edi
add eax, 2
push eax
push dword [esp + 0x60]
call fcn.004e21b0
add esp, 0x10
test eax, eax
jne 0x4e7b03
mov eax, ebp
cdq
add dword [ebx + 0x1138], eax
adc dword [ebx + 0x113c], edx
add dword [ebx + 0xa8], eax
adc dword [ebx + 0xac], edx
mov al, byte [edi]
cmp al, 0xd
je 0x4e7860
cmp al, 0xa
je 0x4e7860
push 0x11
push edi
push str.WWW_Authenticate:
call fcn.004e5060
add esp, 0xc
test eax, eax
je 0x4e766b
mov ebp, dword [ebx + 0xf0]
cmp ebp, 0x191
je 0x4e768d
push 0x13
push edi
push str.Proxy_authenticate:
call fcn.004e5060
add esp, 0xc
test eax, eax
je 0x4e76d5
mov ebp, dword [ebx + 0xf0]
cmp ebp, 0x197
jne 0x4e76d5
push edi
call fcn.004eda50
mov edi, eax
add esp, 4
test edi, edi
je 0x4e79b3
cmp ebp, 0x197
push edi
sete cl
movzx ecx, cl
push ecx
push dword [esp + 0x5c]
call fcn.004eddc0
push edi
mov ebp, eax
call dword [0x860708]
add esp, 0x10
test ebp, ebp
je 0x4e784e
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x40
ret
push 0xf
push edi
push str.Content_Length:
call fcn.004e5060
add esp, 0xc
test eax, eax
je 0x4e7741
mov ecx, dword [ebx + 0xf0]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x4e771b
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response_n
push ebx
call fcn.004e2350
mov ebp, dword [esp + 0x60]
add esp, 0xc
push esi
call fcn.004d8a30
add esp, 4
jmp 0x4e791d
lea eax, [esi + 0x18]
push eax
push 0xa
lea eax, [edi + 0xf]
push 0
push eax
call fcn.004f2e20
mov ebp, dword [esp + 0x64]
add esp, 0x10
push esi
call fcn.004d8a30
add esp, 4
jmp 0x4e791d
push str.close
push str.Connection:
push edi
call fcn.004ed980
add esp, 0xc
test al, al
je 0x4e776e
mov ebp, dword [esp + 0x54]
push esi
mov byte [esi + 0x25], 1
call fcn.004d8a30
add esp, 4
jmp 0x4e791d
push 0x12
push edi
push str.Transfer_Encoding:
call fcn.004e5060
add esp, 0xc
test eax, eax
je 0x4e77f9
mov ecx, dword [ebx + 0xf0]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x4e77b4
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
push ebx
call fcn.004e2350
mov ebp, dword [esp + 0x60]
add esp, 0xc
push esi
call fcn.004d8a30
add esp, 4
jmp 0x4e791d
push str.chunked
push str.Transfer_Encoding:
push edi
call fcn.004ed980
add esp, 0xc
test al, al
je 0x4e784e
push str.CONNECT_responded_chunked_n
push ebx
call fcn.004e2350
mov ebp, dword [esp + 0x5c]
push ebp
mov byte [esi + 0x24], 1
call fcn.0050e2d0
add esp, 0xc
push esi
call fcn.004d8a30
add esp, 4
jmp 0x4e791d
push str.close
push str.Proxy_Connection:
push edi
call fcn.004ed980
add esp, 0xc
test al, al
je 0x4e7826
mov ebp, dword [esp + 0x54]
push esi
mov byte [esi + 0x25], 1
call fcn.004d8a30
add esp, 4
jmp 0x4e791d
lea ebp, [ebx + 0xf0]
push ebp
lea eax, [esp + 0x38]
push eax
push str.HTTP_1._d__d
push edi
call fcn.0041f1c0
add esp, 0x10
cmp eax, 2
jne 0x4e784e
mov eax, dword [ebp]
mov dword [ebx + 0x1124], eax
mov ebp, dword [esp + 0x54]
push esi
call fcn.004d8a30
add esp, 4
jmp 0x4e791d
cmp dword [ebx + 0xf0], 0x197
jne 0x4e7903
cmp byte [ebx + 0x10e9], 0
jne 0x4e7903
mov edx, dword [esi + 0x18]
mov eax, edx
mov ecx, dword [esi + 0x1c]
or eax, ecx
mov dword [esi + 0x10], 2
je 0x4e78a2
push ecx
push edx
push str.Ignore__I64d_bytes_of_response_body_n
push ebx
call fcn.004e2350
add esp, 0x10
jmp 0x4e790a
cmp byte [esi + 0x24], 0
je 0x4e7903
push str.Ignore_chunked_response_body_n
push ebx
call fcn.004e2350
mov ebp, dword [esp + 0x5c]
lea eax, [edi + 1]
mov byte [ebx + 0x587], 1
cmp byte [eax], 0xa
cmove edi, eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x2c]
push eax
push 1
lea eax, [edi + 1]
push eax
push ebp
call fcn.0050e310
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x4e790e
push str.chunk_reading_DONE_n
push ebx
call fcn.004e2350
add esp, 8
mov dword [esi + 0x10], 0
mov dword [esi + 0x20], 2
jmp 0x4e790e
mov dword [esi + 0x10], 0
mov ebp, dword [esp + 0x54]
mov eax, dword [esi + 0x18]
or eax, dword [esi + 0x1c]
jne 0x4e791d
mov dword [esi + 0x20], 2
cmp dword [esi + 0x10], 0
jne 0x4e7420
jmp 0x4e74a8
cmp dword [ebx + 0x5b8], 0
je 0x4e7963
cmp dword [ebx + 0xdd8], 0
je 0x4e7963
push str.Proxy_CONNECT_connection_closed_n
push ebx
mov byte [ebp + 0x514], 1
call fcn.004e2350
mov edi, dword [esp + 0x1c]
add esp, 8
mov dword [esi + 0x10], 0
jmp 0x4e74ac
push str.Proxy_CONNECT_aborted
push ebx
mov edi, 1
call fcn.004e2270
add esp, 8
mov dword [esi + 0x10], 0
jmp 0x4e74ac
push dword [esp + 0x14]
call dword [0x860708]
lea eax, [esp + 0x44]
push eax
call fcn.004d89e0
add esp, 8
mov eax, 0x1b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
lea eax, [esp + 0x40]
push eax
call fcn.004d89e0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x40
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
push str.CONNECT_response_too_large_
push ebx
call fcn.004e2270
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x40
ret
pop edi
pop esi
pop ebp
mov eax, 0x2a
pop ebx
add esp, 0x40
ret
mov edi, dword [esp + 0x24]
push dword [edi]
push ebp
call fcn.004e2cb0
add esp, 8
mov dword [edi], 0xffffffff
jmp 0x4e7a0d
mov edi, dword [esp + 0x24]
mov eax, dword [ebx + 0x1124]
sub eax, 0xc8
cmp eax, 0x64
jb 0x4e7ab3
cmp byte [esi + 0x25], 0
je 0x4e7a4d
cmp dword [ebx + 0x12c], 0
je 0x4e7a4d
push str.Connect_me_again_please_n
push ebx
mov byte [ebp + 0x514], 1
call fcn.004e2350
push ebp
call fcn.004e7dc0
add esp, 0xc
jmp 0x4e7a7c
push dword [ebx + 0x12c]
call dword [0x860708]
push 2
push ebp
mov dword [ebx + 0x12c], 0
call fcn.004e2de0
push dword [edi]
push ebp
call fcn.004e2cb0
add esp, 0x14
mov dword [edi], 0xffffffff
mov dword [esi + 0x20], 0
cmp byte [ebp + 0x514], 0
jne 0x4e7b01
push esi
call fcn.004d89e0
push dword [ebx + 0xf0]
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push ebx
call fcn.004e2270
add esp, 0x10
mov eax, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov dword [esi + 0x20], 2
push dword [ebx + 0x10bc]
call dword [0x860708]
push dword [ebx + 0x1124]
mov dword [ebx + 0x10bc], 0
push str.Proxy_replied__d_to_CONNECT_request_n
push ebx
mov word [ebx + 0xddc], 1
call fcn.004e2350
mov byte [ebx + 0x587], 0
push esi
mov byte [ebp + 0x522], 0
call fcn.004d89e0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push ebx
call fcn.004e2270
add esp, 8
mov eax, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret