Function at 0x4c54e0
Capabilities:
Check http status code

Disassembly:
sub esp, 0x40
push ebx
push ebp
mov ebp, dword [esp + 0x50]
xor bl, bl
push esi
push edi
mov edi, dword [esp + 0x54]
xorps xmm0, xmm0
lea eax, [ebp + 0x66]
mov dword [esp + 0x4c], 0
lea ecx, [ebp + 0x1aa]
movlpd qword [esp + 0x44], xmm0
cmp dword [edi + ecx*4], 2
lea ecx, [edi + ecx*4]
mov esi, dword [edi]
lea eax, [edi + eax*4]
mov dword [esp + 0x3c], eax
mov eax, dword [edi + ebp*4 + 0x198]
mov dword [esp + 0x34], eax
mov byte [esp + 0x12], bl
mov byte [esp + 0x13], bl
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], ecx
je 0x4c5f46
mov eax, dword [esp + 0x48]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x44]
mov byte [edi + 0x396], bl
mov dword [esp + 0x30], eax
cmp dword [ecx], 0
jne 0x4c57a7
push dword [esp + 0x60]
mov ebp, dword [esp + 0x60]
push ebp
push str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
push esi
call fcn.004a4980
push dword [esi + 0x120]
call dword [0x5552fc]
add esp, 0x14
mov dword [esi + 0x120], 0
call fcn.004ac020
mov ebx, eax
test ebx, ebx
je 0x4c5e29
push dword [esp + 0x60]
push ebp
push str._s:_hu
call fcn.004a6c40
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x4c5e20
push 1
push ebp
push str.CONNECT
push edi
call fcn.004acc40
push ebp
mov edi, eax
call dword [0x5552fc]
add esp, 0x14
test edi, edi
jne 0x4c5784
mov edx, dword [esp + 0x54]
xor ebp, ebp
mov edi, dword [esp + 0x5c]
mov ecx, 0x520908
mov eax, 0x52090c
mov dword [esp + 0x28], 0x5393bc
cmp dword [edx + 0xf0], 1
cmovne eax, ecx
mov cl, byte [edx + 0x386]
mov dword [esp + 0x1c], eax
cmp edi, dword [edx + 0xa0]
je 0x4c5621
push 0x3a
push edi
call fcn.004dcd80
add esp, 8
test eax, eax
setne cl
push dword [esp + 0x60]
test cl, cl
mov edx, 0x5393bc
mov eax, 0x51f87c
cmove eax, edx
push eax
mov eax, 0x51f880
push edi
cmove eax, edx
push eax
push str._s_s_s:_hu
call fcn.004a6c40
mov edi, eax
add esp, 0x14
mov dword [esp + 0x14], edi
test edi, edi
je 0x4c5e20
push str.Host:
push dword [esp + 0x58]
call fcn.004ac5d0
add esp, 8
test eax, eax
jne 0x4c5687
push edi
push str.Host:__s_r_n
call fcn.004a6c40
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4c5df9
push str.Proxy_Connection:
push dword [esp + 0x58]
call fcn.004ac5d0
test eax, eax
mov ecx, str.Proxy_Connection:_Keep_Alive_r_n
mov eax, 0x5393bc
push str.User_Agent:
push dword [esp + 0x60]
cmovne ecx, eax
mov dword [esp + 0x30], ecx
call fcn.004ac5d0
add esp, 0x10
test eax, eax
jne 0x4c56d3
cmp dword [esi + 0x430], eax
je 0x4c56d3
mov eax, dword [esp + 0x54]
mov eax, dword [eax + 0x3d0]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x54]
mov edx, 0x5393bc
push dword [esp + 0x20]
mov ecx, edx
push dword [esp + 0x2c]
mov eax, dword [eax + 0x3cc]
test eax, eax
cmovne ecx, eax
mov eax, edx
push ecx
test ebp, ebp
cmovne eax, ebp
push eax
push dword [esp + 0x2c]
push edi
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push ebx
call fcn.004ac1f0
add esp, 0x20
mov edi, eax
test ebp, ebp
je 0x4c571d
push ebp
call dword [0x5552fc]
add esp, 4
push dword [esp + 0x14]
call dword [0x5552fc]
add esp, 4
test edi, edi
jne 0x4c5770
mov ebp, dword [esp + 0x54]
push ebx
push 1
push ebp
call fcn.004ac260
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4c5770
push 0x51f4b8
push ebx
call fcn.004ac1f0
mov edi, eax
add esp, 8
test edi, edi
jne 0x4c5770
push dword [esp + 0x58]
push eax
lea eax, [esi + 0x4940]
push eax
push ebp
push ebx
call fcn.004ac030
add esp, 0x14
mov edi, eax
xor ebx, ebx
test edi, edi
je 0x4c5784
push str.Failed_sending_CONNECT_to_proxy
push esi
call fcn.004a4860
add esp, 8
push ebx
call fcn.004ac000
add esp, 4
test edi, edi
jne 0x4c5e16
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
mov dword [eax], 1
push 1
push 0
push esi
call fcn.004a5cb0
add esp, 0xc
test edx, edx
jl 0x4c5f50
jg 0x4c57c6
test eax, eax
je 0x4c5f50
push ebp
push edi
call fcn.004a5270
add esp, 8
test al, al
je 0x4c5f46
mov ebx, dword [edi + 0x6b8]
xor eax, eax
mov ecx, 1
mov dword [esp + 0x1c], ebx
mov ebp, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x4c5d58
push edi
call fcn.004aef90
add esp, 4
test eax, eax
jne 0x4c5e40
mov eax, dword [edi + 0x6b8]
add eax, 0x4000
cmp ebx, eax
jae 0x4c5e36
push 1
push 0
push esi
call fcn.004a5cb0
mov ebx, edx
add esp, 0xc
mov edi, eax
test ebx, ebx
jl 0x4c5d37
jg 0x4c5846
test edi, edi
je 0x4c5d37
lea eax, [esp + 0x38]
push eax
push 1
push dword [esp + 0x24]
push dword [esp + 0x40]
push dword [esp + 0x64]
call fcn.004a4a60
add esp, 0x14
cmp eax, 0x51
jne 0x4c58a3
test ebx, ebx
jg 0x4c5874
jl 0x4c587b
cmp edi, 0x3e8
jb 0x4c587b
mov edi, 0x3e8
xor ebx, ebx
push ebx
push edi
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esp + 0x44]
call fcn.004a41b0
add esp, 0x14
cmp eax, 0xffffffff
je 0x4c5cd0
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x54]
jmp 0x4c5bc5
test eax, eax
jne 0x4c5d54
cmp dword [esp + 0x38], eax
jle 0x4c5ced
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
inc edx
mov edi, dword [esp + 0x54]
mov dword [esp + 0x20], edx
cmp ecx, 1
jle 0x4c5958
mov edx, dword [esp + 0x30]
mov ebx, dword [edi + 0x6b8]
mov dword [esp + 0x20], eax
mov eax, edx
or eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], ebx
je 0x4c590e
add edx, 0xffffffff
mov dword [esp + 0x30], edx
adc dword [esp + 0x2c], 0xffffffff
js 0x4c5d58
jg 0x4c57f7
test edx, edx
je 0x4c5d58
jmp 0x4c57f7
lea eax, [esp + 0x40]
mov dword [esp + 0x40], 0
push eax
push 1
push ebx
push edi
call fcn.004c6520
mov ecx, dword [esp + 0x24]
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4c57f7
push str.chunk_reading_DONE_n
push esi
call fcn.004a4980
mov eax, dword [esp + 0x60]
add esp, 8
xor ecx, ecx
mov dword [edi + eax*4 + 0x6a8], 2
jmp 0x4c57f3
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
inc ecx
mov dword [esp + 0x28], ecx
cmp byte [ebx], 0xa
je 0x4c5974
inc ebx
mov dword [esp + 0x1c], ebx
jmp 0x4c5bc9
cmp byte [esi + 0x370], 0
je 0x4c598f
push edi
push ecx
push ebp
push 1
push esi
call fcn.004a4770
mov ecx, dword [esp + 0x3c]
add esp, 0x14
cmp byte [esi + 0x4d8], 0
jne 0x4c59c4
cmp byte [esi + 0x365], 0
mov edx, 3
push ecx
mov eax, 2
cmovne eax, edx
push ebp
push eax
push edi
call fcn.004a4740
add esp, 0x10
test eax, eax
jne 0x4c5f63
mov ecx, dword [esp + 0x28]
add dword [esi + 0x493c], ecx
add dword [esi + 0xa0], ecx
mov al, byte [ebp]
cmp al, 0xd
je 0x4c5bde
cmp al, 0xa
je 0x4c5bde
push 0x11
push ebp
push str.WWW_Authenticate:
mov byte [ecx + ebp], 0
call fcn.004b0340
add esp, 0xc
test eax, eax
je 0x4c5a08
mov eax, dword [esi + 0xe8]
cmp eax, 0x191
je 0x4c5a29
push 0x13
push ebp
push str.Proxy_authenticate:
call fcn.004b0340
add esp, 0xc
test eax, eax
je 0x4c5a72
mov eax, dword [esi + 0xe8]
cmp eax, 0x197
jne 0x4c5a72
cmp eax, 0x197
push ebp
sete byte [esp + 0x48]
call fcn.004ac770
mov edi, eax
add esp, 4
test edi, edi
je 0x4c5e29
push edi
push dword [esp + 0x48]
push dword [esp + 0x5c]
call fcn.004aca00
push edi
mov ebx, eax
call dword [0x5552fc]
add esp, 0x10
test ebx, ebx
je 0x4c5baf
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x40
ret
push 0xf
push ebp
push str.Content_Length:
call fcn.004b0340
add esp, 0xc
test eax, eax
je 0x4c5ad3
mov ecx, dword [esi + 0xe8]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x4c5ab6
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response_n
push esi
call fcn.004a4980
add esp, 0xc
jmp 0x4c5bb3
push 0xa
lea eax, [ebp + 0xf]
push 0
push eax
call fcn.004dd5d1
add esp, 0xc
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edx
jmp 0x4c5bb3
push str.close
push str.Connection:
push ebp
call fcn.004ac6a0
add esp, 0xc
test al, al
je 0x4c5af4
mov byte [esp + 0x12], 1
jmp 0x4c5bb3
push 0x12
push ebp
push str.Transfer_Encoding:
call fcn.004b0340
add esp, 0xc
test eax, eax
je 0x4c5b6a
mov ecx, dword [esi + 0xe8]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x4c5b38
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
push esi
call fcn.004a4980
add esp, 0xc
jmp 0x4c5bb3
push str.chunked
push str.Transfer_Encoding:
push ebp
call fcn.004ac6a0
add esp, 0xc
test al, al
je 0x4c5bb3
push str.CONNECT_responded_chunked_n
push esi
call fcn.004a4980
push edi
mov byte [esp + 0x1f], 1
call fcn.004c6500
add esp, 0xc
jmp 0x4c5bb3
push str.close
push str.Proxy_Connection:
push ebp
call fcn.004ac6a0
add esp, 0xc
test al, al
je 0x4c5b88
mov byte [esp + 0x12], 1
jmp 0x4c5bb3
lea edi, [esi + 0xe8]
push edi
lea eax, [esp + 0x50]
push eax
push str.HTTP_1._d__d
push ebp
call fcn.004dccec
add esp, 0x10
cmp eax, 2
jne 0x4c5baf
mov eax, dword [edi]
mov dword [esi + 0x492c], eax
mov edi, dword [esp + 0x54]
mov ebx, dword [edi + 0x6b8]
xor eax, eax
mov dword [esp + 0x28], eax
mov ebp, ebx
mov dword [esp + 0x1c], ebx
mov edx, dword [esp + 0x20]
cmp edx, 0x4000
jae 0x4c5d58
mov ecx, dword [esp + 0x14]
jmp 0x4c57f7
mov ebx, dword [edi + 0x6b8]
xor eax, eax
cmp dword [esi + 0xe8], 0x197
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebx
jne 0x4c5cb6
cmp byte [esi + 0x4774], al
jne 0x4c5cb6
mov edx, dword [esp + 0x30]
mov eax, edx
mov ecx, dword [esp + 0x2c]
or eax, ecx
mov dword [esp + 0x14], 2
je 0x4c5c48
push ecx
push edx
push str.Ignore__I64d_bytes_of_response_body_n
push esi
call fcn.004a4980
add esp, 0x10
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x14]
mov dword [edi + eax*4 + 0x6a8], 2
jmp 0x4c57f7
cmp byte [esp + 0x13], 0
je 0x4c5cb6
push str.Ignore_chunked_response_body_n
push esi
call fcn.004a4980
lea eax, [ebp + 1]
mov byte [esi + 0x119], 1
cmp byte [eax], 0xa
cmove ebp, eax
lea eax, [esp + 0x40]
push eax
push 1
lea eax, [ebp + 1]
push eax
push edi
call fcn.004c6520
add esp, 0x18
cmp eax, 0xffffffff
jne 0x4c5c30
push str.chunk_reading_DONE_n
push esi
call fcn.004a4980
mov eax, dword [esp + 0x60]
add esp, 8
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [edi + eax*4 + 0x6a8], 2
mov dword [edi + eax*4 + 0x6a8], 2
jmp 0x4c57f7
mov eax, dword [esp + 0x58]
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [edi + eax*4 + 0x6a8], 2
jmp 0x4c57f7
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
mov ebp, 1
push esi
mov dword [esp + 0x20], ebp
call fcn.004a4860
mov edi, dword [esp + 0x5c]
add esp, 8
jmp 0x4c5d5c
cmp dword [esi + 0x160], 0
je 0x4c5d1a
cmp dword [esi + 0x476c], 0
je 0x4c5d1a
mov edi, dword [esp + 0x54]
push str.Proxy_CONNECT_connection_closed_n
push esi
mov byte [edi + 0x396], 1
call fcn.004a4980
add esp, 8
jmp 0x4c5d58
push str.Proxy_CONNECT_aborted
mov ebp, 1
push esi
mov dword [esp + 0x20], ebp
call fcn.004a4860
mov edi, dword [esp + 0x5c]
add esp, 8
jmp 0x4c5d5c
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.004a4860
mov edi, dword [esp + 0x5c]
mov ebp, 2
add esp, 8
mov dword [esp + 0x18], ebp
jmp 0x4c5d5c
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x18]
push edi
call fcn.004aef90
add esp, 4
test eax, eax
jne 0x4c5e40
test ebp, ebp
jne 0x4c5ef6
cmp dword [esi + 0x492c], 0xc8
je 0x4c5da2
push edi
call fcn.004ac840
add esp, 4
test eax, eax
jne 0x4c5f63
cmp byte [edi + 0x37d], al
je 0x4c5da2
mov bl, 1
mov byte [esp + 0x12], bl
jmp 0x4c5daa
mov bl, byte [esp + 0x12]
test bl, bl
je 0x4c5db7
cmp dword [esi + 0x120], 0
jne 0x4c5e4d
cmp dword [esi + 0x120], 0
mov ecx, dword [esp + 0x24]
je 0x4c5e66
cmp dword [ecx], 2
jne 0x4c5de7
push 0
push str.TUNNEL_STATE_switched_to:__d_n
push esi
mov dword [ecx], 0
call fcn.004a4980
mov ecx, dword [esp + 0x30]
add esp, 0xc
cmp dword [esi + 0x120], 0
je 0x4c5e66
mov ebp, dword [esp + 0x58]
jmp 0x4c5556
push edi
call dword [0x5552fc]
push ebx
call fcn.004ac000
add esp, 8
mov eax, 0x1b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
push ebx
call fcn.004ac000
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x40
ret
push str.CONNECT_response_too_large_
jmp 0x4c5f55
pop edi
pop esi
pop ebp
mov eax, 0x2a
pop ebx
add esp, 0x40
ret
mov ebp, dword [esp + 0x3c]
push dword [ebp]
push edi
call fcn.004a5210
add esp, 8
mov dword [ebp], 0xffffffff
jmp 0x4c5e6a
mov ebp, dword [esp + 0x3c]
cmp dword [esi + 0xe8], 0xc8
je 0x4c5f03
test bl, bl
je 0x4c5e9e
cmp dword [esi + 0x120], 0
je 0x4c5e9e
push str.Connect_me_again_please_n
push esi
mov byte [edi + 0x396], 1
call fcn.004a4980
add esp, 8
jmp 0x4c5ecf
push dword [esi + 0x120]
call dword [0x5552fc]
push 2
push edi
mov dword [esi + 0x120], 0
call fcn.004a5330
push dword [ebp]
push edi
call fcn.004a5210
add esp, 0x14
mov dword [ebp], 0xffffffff
mov eax, dword [esp + 0x24]
mov dword [eax], 0
cmp byte [edi + 0x396], 0
jne 0x4c5f46
push dword [esi + 0xe8]
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push esi
call fcn.004a4860
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x40
ret
mov eax, dword [esp + 0x24]
mov dword [eax], 2
push dword [edi + 0x3cc]
call dword [0x5552fc]
push str.Proxy_replied_OK_to_CONNECT_request_n
mov dword [edi + 0x3cc], 0
push esi
mov byte [esi + 0x4770], 1
call fcn.004a4980
mov byte [esi + 0x119], 0
add esp, 0xc
mov byte [edi + 0x38f], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.004a4860
mov eax, 0x38
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret