Function at 0x557b30
Capabilities:
Check http status code

Disassembly:
sub esp, 0x34
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
push esi
mov esi, dword [ebx]
xor ebp, ebp
push edi
mov edi, dword [esp + 0x4c]
cmp dword [ebx + edi*4 + 0x594], 2
mov eax, dword [ebx + edi*4 + 0x190]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x20], ebp
je 0x5585b1
mov dword [ebx + 0x2d0], ebp
lea ebx, [ebx]
cmp dword [ebx + edi*4 + 0x594], ebp
jne 0x557de1
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push ecx
push edx
push str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
push esi
call fcn.0053cd00
mov eax, dword [esi + 0x10c]
push eax
call dword [0x5cefb4]
add esp, 0x14
mov dword [esi + 0x10c], ebp
call fcn.00552e00
mov edi, eax
mov dword [esp + 0x18], edi
cmp edi, ebp
je 0x55841a
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push ecx
push edx
push str._s:_hu
call fcn.00541d90
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x558411
push 1
push ebp
push str.CONNECT
push ebx
call fcn.00552a40
push ebp
mov edi, eax
call dword [0x5cefb4]
add esp, 0x14
test edi, edi
jne 0x557db9
cmp dword [ebx + 0xe8], 1
mov eax, 0x577c70
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], 0x5a8a6c
je 0x557c38
mov dword [esp + 0x28], 0x5a8a70
mov ebp, dword [esp + 0x50]
mov eax, dword [ebx + 0x290]
cmp ebp, dword [ebx + 0x98]
je 0x557c5b
push 0x3a
push ebp
call fcn.00522fa0
add esp, 8
neg eax
sbb eax, eax
neg eax
test eax, eax
je 0x557c6b
mov ecx, 0x5a3b28
mov eax, 0x5a3b0c
jmp 0x557c72
mov ecx, 0x577c70
mov eax, ecx
mov edx, dword [esp + 0x54]
push edx
push ecx
push ebp
push eax
push str._s_s_s:_hu
call fcn.00541d90
mov ebp, eax
add esp, 0x14
test ebp, ebp
je 0x558427
push str.Host:
push ebx
call fcn.005524c0
add esp, 8
test eax, eax
jne 0x557cbf
push ebp
push str.Host:__s_r_n
call fcn.00541d90
mov edi, eax
add esp, 8
mov dword [esp + 0x14], edi
test edi, edi
je 0x558441
push str.Proxy_Connection:
push ebx
call fcn.005524c0
add esp, 8
test eax, eax
jne 0x557cd9
mov dword [esp + 0x24], str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent:
push ebx
call fcn.005524c0
add esp, 8
test eax, eax
jne 0x557cfd
cmp dword [esi + 0x4ac], eax
je 0x557cfd
mov eax, dword [ebx + 0x328]
mov dword [esp + 0x10], eax
mov ecx, dword [ebx + 0x324]
test ecx, ecx
jne 0x557d0c
mov ecx, 0x577c70
mov eax, edi
test edi, edi
jne 0x557d17
mov eax, 0x577c70
mov edx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x14]
push edx
push ecx
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x38]
push eax
push ebp
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push ecx
call fcn.00553750
add esp, 0x20
cmp dword [esp + 0x14], 0
mov edi, eax
je 0x557d52
mov edx, dword [esp + 0x14]
push edx
call dword [0x5cefb4]
add esp, 4
push ebp
call dword [0x5cefb4]
add esp, 4
test edi, edi
jne 0x557da3
mov ebp, dword [esp + 0x18]
push ebp
push 1
push ebx
call fcn.00553830
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x557da3
push 0x5a06f8
push ebp
call fcn.00553750
mov edi, eax
add esp, 8
test edi, edi
jne 0x557da3
mov eax, dword [esp + 0x4c]
push eax
push edi
lea ecx, [esi + 0x48a0]
push ecx
push ebx
push ebp
call fcn.00552e40
add esp, 0x14
mov edi, eax
xor ebp, ebp
test edi, edi
je 0x557dbd
push str.Failed_sending_CONNECT_to_proxy
push esi
call fcn.0053cd90
add esp, 8
jmp 0x557dbd
mov ebp, dword [esp + 0x18]
push ebp
call fcn.00552e10
add esp, 4
test edi, edi
jne 0x558462
mov edx, dword [esp + 0x4c]
mov dword [ebx + edx*4 + 0x594], 1
mov edi, edx
xor ebp, ebp
push 1
push ebp
push esi
call fcn.0053f210
add esp, 0xc
cmp edx, ebp
jl 0x55846c
jg 0x557dff
cmp eax, ebp
jbe 0x55846c
cmp dword [esp + 0x58], ebp
jne 0x557e17
push edi
push ebx
call fcn.0053fd50
add esp, 8
test eax, eax
je 0x5585b1
mov edi, dword [esi + 0x6dc]
xor eax, eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
cmp dword [esp + 0x14], 0
je 0x558366
mov eax, dword [esp + 0x48]
push eax
call fcn.00559330
add esp, 4
test eax, eax
jne 0x558487
mov ecx, dword [esi + 0x6dc]
add ecx, 0x4000
cmp dword [esp + 0x10], ecx
jae 0x558494
push 1
push eax
push esi
call fcn.0053f210
mov ebp, edx
add esp, 0xc
mov ebx, eax
test ebp, ebp
jl 0x558309
jg 0x557e8b
test ebx, ebx
jbe 0x558309
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x4c]
push 1
push eax
push ecx
push edx
call fcn.0053ca60
add esp, 0x14
cmp eax, 0x51
jne 0x557ef8
test ebp, ebp
jg 0x557ec2
jl 0x557ebc
cmp ebx, 0x3e8
jae 0x557ec2
mov eax, ebx
mov ecx, ebp
jmp 0x557ec9
mov eax, 0x3e8
xor ecx, ecx
push ecx
push eax
mov eax, dword [esp + 0x34]
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
call fcn.00531050
add esp, 0x14
cmp eax, 0xffffffff
je 0x55831e
cmp dword [esp + 0x18], 0x4000
jb 0x557e33
jmp 0x558366
xor edx, edx
cmp eax, edx
jne 0x558366
cmp dword [esp + 0x34], edx
jle 0x558325
mov eax, 1
add dword [esp + 0x18], eax
cmp dword [esp + 0x14], eax
jle 0x557fae
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi + 0x6dc]
mov ebx, eax
or ebx, dword [esp + 0x40]
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ecx
je 0x557f5e
add eax, 0xffffffff
adc dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x3c], eax
js 0x558366
jg 0x557e33
cmp eax, edx
jbe 0x558366
jmp 0x557e33
mov eax, dword [esp + 0x48]
mov dword [esp + 0x28], edx
lea edx, [esp + 0x28]
push edx
push 1
push ecx
push eax
call fcn.00562480
add esp, 0x10
cmp eax, 0xffffffff
jne 0x557e33
push str.chunk_reading_DONE_n
push esi
call fcn.0053cd00
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
add esp, 8
mov dword [esp + 0x14], 0
mov dword [ecx + edx*4 + 0x594], 2
jmp 0x557e33
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
add ebp, eax
cmp byte [ecx], 0xa
mov dword [esp + 0x24], ebp
je 0x557fca
add dword [esp + 0x10], eax
jmp 0x557ee5
mov ebx, dword [esp + 0x48]
cmp dword [esi + 0x3c4], edx
je 0x557fe4
push ebx
push ebp
push edi
push 1
push esi
call fcn.0053cc10
add esp, 0x14
xor edx, edx
cmp dword [esi + 0x558], edx
jne 0x558014
lea eax, [edx + 2]
cmp dword [esi + 0x3ac], edx
je 0x557ffe
mov eax, 3
push ebp
push edi
push eax
push ebx
call fcn.0053d150
add esp, 0x10
test eax, eax
jne 0x5585b3
xor edx, edx
add dword [esi + 0x489c], ebp
add dword [esi + 0x80], ebp
mov al, byte [edi]
cmp al, 0xd
je 0x558218
cmp al, 0xa
je 0x558218
push 0x11
push edi
push str.WWW_Authenticate:
mov byte [edi + ebp], 0
call fcn.00556dc0
add esp, 0xc
test eax, eax
je 0x558057
mov eax, dword [esi + 0xc8]
cmp eax, 0x191
je 0x558078
push 0x13
push edi
push str.Proxy_authenticate:
call fcn.00556dc0
add esp, 0xc
test eax, eax
je 0x5580bd
mov eax, dword [esi + 0xc8]
cmp eax, 0x197
jne 0x5580bd
xor edx, edx
cmp eax, 0x197
sete dl
push edi
mov ebp, edx
call fcn.00552530
mov edi, eax
add esp, 4
test edi, edi
je 0x55841a
push edi
push ebp
push ebx
call fcn.00552b50
push edi
mov ebp, eax
call dword [0x5cefb4]
add esp, 0x10
test ebp, ebp
je 0x558201
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x34
ret
push 0xf
push edi
push str.Content_Length:
call fcn.00556dc0
add esp, 0xc
test eax, eax
je 0x55811e
mov ecx, dword [esi + 0xc8]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x558101
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response_n
push esi
call fcn.0053cd00
add esp, 0xc
jmp 0x558201
push 0xa
push 0
add edi, 0xf
push edi
call fcn.00525563
add esp, 0xc
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
jmp 0x558201
push str.close
push str.Connection:
push edi
call fcn.005530c0
add esp, 0xc
test eax, eax
je 0x558142
mov dword [esp + 0x1c], 1
jmp 0x558201
push 0x12
push edi
push str.Transfer_Encoding:
call fcn.00556dc0
add esp, 0xc
test eax, eax
je 0x5581b8
mov ecx, dword [esi + 0xc8]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x558183
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
push esi
call fcn.0053cd00
add esp, 0xc
jmp 0x558201
push str.chunked
push str.Transfer_Encoding:
push edi
call fcn.005530c0
add esp, 0xc
test eax, eax
je 0x558201
push str.CONNECT_responded_chunked_n
push esi
call fcn.0053cd00
push ebx
mov dword [esp + 0x3c], 1
call fcn.00562470
add esp, 0xc
jmp 0x558201
push str.close
push str.Proxy_Connection:
push edi
call fcn.005530c0
add esp, 0xc
test eax, eax
je 0x5581d9
mov dword [esp + 0x1c], 1
jmp 0x558201
lea ebp, [esi + 0xc8]
push ebp
lea ecx, [esp + 0x3c]
push ecx
push str.HTTP_1._d__d
push edi
call fcn.00519435
add esp, 0x10
cmp eax, 2
jne 0x558201
mov edx, dword [ebp]
mov dword [esi + 0x488c], edx
mov edi, dword [esi + 0x6dc]
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], edi
jmp 0x557ee5
cmp dword [esi + 0xc8], 0x197
mov eax, dword [esi + 0x6dc]
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
jne 0x5582f1
cmp dword [esi + 0x47b4], edx
jne 0x5582f1
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov ebp, eax
or ebp, ecx
mov dword [esp + 0x14], 2
je 0x55827c
push ecx
push eax
push str.Ignore__I64d_bytes_of_response_body_n
push esi
call fcn.0053cd00
mov ecx, dword [esp + 0x5c]
add esp, 0x10
mov dword [ebx + ecx*4 + 0x594], 2
jmp 0x557e33
cmp dword [esp + 0x30], edx
je 0x5582f1
push str.Ignore_chunked_response_body_n
push esi
call fcn.0053cd00
add esp, 8
mov dword [esi + 0x100], 1
cmp byte [edi + 1], 0xa
jne 0x5582a1
inc edi
lea ecx, [esp + 0x34]
push ecx
push 1
lea edx, [edi + 1]
push edx
push ebx
call fcn.00562480
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5582f5
push str.chunk_reading_DONE_n
push esi
call fcn.0053cd00
mov eax, dword [esp + 0x54]
mov ecx, eax
mov dword [ebx + eax*4 + 0x594], 2
add esp, 8
mov dword [esp + 0x14], 0
mov dword [ebx + ecx*4 + 0x594], 2
jmp 0x557e33
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x4c]
mov dword [ebx + ecx*4 + 0x594], 2
jmp 0x557e33
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.0053cd90
mov dword [esp + 0x28], 2
jmp 0x558363
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
jmp 0x558355
cmp dword [esi + 0x158], edx
je 0x558350
cmp dword [esi + 0x47a4], edx
je 0x558350
mov edx, dword [esp + 0x48]
push str.Proxy_CONNECT_connection_closed_n
push esi
mov dword [edx + 0x2d0], 1
call fcn.0053cd00
jmp 0x558363
push str.Proxy_CONNECT_aborted
push esi
mov dword [esp + 0x28], 1
call fcn.0053cd90
add esp, 8
mov edi, dword [esp + 0x48]
push edi
call fcn.00559330
add esp, 4
test eax, eax
jne 0x558487
xor ebp, ebp
cmp dword [esp + 0x20], ebp
jne 0x55847a
cmp dword [esi + 0x488c], 0xc8
je 0x5583b6
push edi
call fcn.00553590
add esp, 4
cmp eax, ebp
jne 0x5585b3
cmp dword [edi + 0x26c], ebp
je 0x5583b6
mov dword [esp + 0x1c], 1
jmp 0x5583bc
cmp dword [esp + 0x1c], ebp
je 0x5583c8
cmp dword [esi + 0x10c], ebp
jne 0x5584af
mov ebx, dword [esp + 0x4c]
cmp dword [esi + 0x10c], ebp
je 0x5584cf
cmp dword [edi + ebx*4 + 0x594], 2
jne 0x5583f8
push ebp
push str.TUNNEL_STATE_switched_to:__d_n
push esi
mov dword [edi + ebx*4 + 0x594], ebp
call fcn.0053cd00
add esp, 0xc
cmp dword [esi + 0x10c], ebp
je 0x5584cf
mov ebx, edi
mov edi, dword [esp + 0x4c]
xor ebp, ebp
jmp 0x557b80
push edi
call fcn.00552e10
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x34
ret
mov eax, dword [esp + 0x18]
push eax
call fcn.00552e10
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x34
ret
push ebp
call dword [0x5cefb4]
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00552e10
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x34
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.0053cd90
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x34
ret
pop edi
pop esi
pop ebp
mov eax, 0x2a
pop ebx
add esp, 0x34
ret
push str.CONNECT_response_too_large_
push esi
call fcn.0053cd90
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x34
ret
mov ebx, dword [esp + 0x4c]
mov edx, dword [edi + ebx*4 + 0x190]
push edx
push edi
call fcn.0053fbc0
add esp, 8
mov dword [edi + ebx*4 + 0x190], 0xffffffff
cmp dword [esi + 0xc8], 0xc8
je 0x55856f
cmp dword [esp + 0x1c], ebp
je 0x558507
cmp dword [esi + 0x10c], ebp
je 0x558507
push str.Connect_me_again_please_n
push esi
mov dword [edi + 0x2d0], 1
call fcn.0053cd00
add esp, 8
jmp 0x55853e
mov eax, dword [esi + 0x10c]
push eax
call dword [0x5cefb4]
push 2
push edi
mov dword [esi + 0x10c], ebp
call fcn.0053fd00
mov ecx, dword [edi + ebx*4 + 0x190]
push ecx
push edi
call fcn.0053fbc0
add esp, 0x14
mov dword [edi + ebx*4 + 0x190], 0xffffffff
mov dword [edi + ebx*4 + 0x594], ebp
cmp dword [edi + 0x2d0], ebp
jne 0x5585b1
mov edx, dword [esi + 0xc8]
push edx
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push esi
call fcn.0053cd90
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x34
ret
mov dword [edi + ebx*4 + 0x594], 2
mov eax, dword [edi + 0x324]
push eax
call dword [0x5cefb4]
push str.Proxy_replied_OK_to_CONNECT_request_n
mov dword [edi + 0x324], ebp
push esi
mov dword [esi + 0x47a8], 1
call fcn.0053cd00
mov dword [esi + 0x100], ebp
add esp, 0xc
mov dword [edi + 0x2b4], ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret