Function at 0x1107e310
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 + 0x59c], 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 0x1107ed9d
mov dword [ebx + 0x2f0], ebp
lea ebx, [ebx]
cmp dword [ebx + edi*4 + 0x59c], ebp
jne 0x1107e5c1
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.11052010
mov eax, dword [esi + 0x10c]
push eax
call dword [0x111c416c]
add esp, 0x14
mov dword [esi + 0x10c], ebp
call fcn.11064ab0
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x18], edi
je 0x1107ebc6
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push ecx
push edx
push str._s:_hu
call fcn.110519b0
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x1107ebbd
push 1
push ebp
push str.CONNECT
push ebx
call fcn.110646e0
push ebp
mov edi, eax
call dword [0x111c416c]
add esp, 0x14
test edi, edi
jne 0x1107e599
cmp dword [ebx + 0xe8], 1
mov eax, 0x111b6768
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], 0x1116a6dc
je 0x1107e418
mov dword [esp + 0x28], 0x1116a6e0
mov ebp, dword [esp + 0x50]
cmp ebp, dword [ebx + 0x98]
mov eax, dword [ebx + 0x2b0]
je 0x1107e43b
push 0x3a
push ebp
call fcn.1113bf30
add esp, 8
neg eax
sbb eax, eax
neg eax
test eax, eax
je 0x1107e44b
mov ecx, 0x1116836c
mov eax, 0x11168374
jmp 0x1107e452
mov ecx, 0x111b6768
mov eax, ecx
mov edx, dword [esp + 0x54]
push edx
push ecx
push ebp
push eax
push str._s_s_s:_hu
call fcn.110519b0
mov ebp, eax
add esp, 0x14
test ebp, ebp
je 0x1107ebd3
push str.Host:
push ebx
call fcn.11064160
add esp, 8
test eax, eax
jne 0x1107e49f
push ebp
push str.Host:__s_r_n
call fcn.110519b0
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x14], edi
je 0x1107ebed
push str.Proxy_Connection:
push ebx
call fcn.11064160
add esp, 8
test eax, eax
jne 0x1107e4b9
mov dword [esp + 0x24], str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent:
push ebx
call fcn.11064160
add esp, 8
test eax, eax
jne 0x1107e4dd
cmp dword [esi + 0x49c], eax
je 0x1107e4dd
mov eax, dword [ebx + 0x348]
mov dword [esp + 0x10], eax
mov ecx, dword [ebx + 0x344]
test ecx, ecx
jne 0x1107e4ec
mov ecx, 0x111b6768
test edi, edi
mov eax, edi
jne 0x1107e4f7
mov eax, 0x111b6768
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.110653c0
add esp, 0x20
cmp dword [esp + 0x14], 0
mov edi, eax
je 0x1107e532
mov edx, dword [esp + 0x14]
push edx
call dword [0x111c416c]
add esp, 4
push ebp
call dword [0x111c416c]
add esp, 4
test edi, edi
jne 0x1107e583
mov ebp, dword [esp + 0x18]
push ebp
push 1
push ebx
call fcn.11065510
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1107e583
push 0x111b7db8
push ebp
call fcn.110653c0
mov edi, eax
add esp, 8
test edi, edi
jne 0x1107e583
mov eax, dword [esp + 0x4c]
push eax
push edi
lea ecx, [esi + 0x4854]
push ecx
push ebx
push ebp
call fcn.11064af0
add esp, 0x14
mov edi, eax
xor ebp, ebp
test edi, edi
je 0x1107e59d
push str.Failed_sending_CONNECT_to_proxy
push esi
call fcn.110520a0
add esp, 8
jmp 0x1107e59d
mov ebp, dword [esp + 0x18]
push ebp
call fcn.11064ac0
add esp, 4
test edi, edi
jne 0x1107ec0e
mov edx, dword [esp + 0x4c]
mov dword [ebx + edx*4 + 0x59c], 1
mov edi, edx
xor ebp, ebp
push 1
push ebp
push esi
call fcn.1105e840
add esp, 0xc
cmp edx, ebp
jl 0x1107ec18
jg 0x1107e5df
cmp eax, ebp
jbe 0x1107ec18
cmp dword [esp + 0x58], ebp
jne 0x1107e5f7
push edi
push ebx
call fcn.1105f3a0
add esp, 8
test eax, eax
je 0x1107ed9d
mov edi, dword [esi + 0x6cc]
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 0x1107eb10
mov eax, dword [esp + 0x48]
push eax
call fcn.11062bc0
add esp, 4
test eax, eax
jne 0x1107ec33
mov ecx, dword [esi + 0x6cc]
add ecx, 0x4000
cmp dword [esp + 0x10], ecx
jae 0x1107ec40
push 1
push eax
push esi
call fcn.1105e840
mov ebp, edx
add esp, 0xc
test ebp, ebp
mov ebx, eax
jl 0x1107eab3
jg 0x1107e66b
test ebx, ebx
jbe 0x1107eab3
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.11051d70
add esp, 0x14
cmp eax, 0x51
jne 0x1107e6d8
test ebp, ebp
jg 0x1107e6a2
jl 0x1107e69c
cmp ebx, 0x3e8
jae 0x1107e6a2
mov eax, ebx
mov ecx, ebp
jmp 0x1107e6a9
mov eax, 0x3e8
xor ecx, ecx
push ecx
push eax
mov eax, dword [esp + 0x34]
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
call fcn.110527b0
add esp, 0x14
cmp eax, 0xffffffff
je 0x1107eac8
cmp dword [esp + 0x18], 0x4000
jb 0x1107e613
jmp 0x1107eb10
xor edx, edx
cmp eax, edx
jne 0x1107eb10
cmp dword [esp + 0x34], edx
jle 0x1107eacf
mov eax, 1
add dword [esp + 0x18], eax
cmp dword [esp + 0x14], eax
jle 0x1107e78e
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi + 0x6cc]
mov ebx, eax
or ebx, dword [esp + 0x40]
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ecx
je 0x1107e73e
add eax, 0xffffffff
adc dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x3c], eax
js 0x1107eb10
jg 0x1107e613
cmp eax, edx
jbe 0x1107eb10
jmp 0x1107e613
mov eax, dword [esp + 0x48]
mov dword [esp + 0x28], edx
lea edx, [esp + 0x28]
push edx
push 1
push ecx
push eax
call fcn.11080680
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1107e613
push str.chunk_reading_DONE_n
push esi
call fcn.11052010
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
add esp, 8
mov dword [esp + 0x14], 0
mov dword [ecx + edx*4 + 0x59c], 2
jmp 0x1107e613
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
add ebp, eax
cmp byte [ecx], 0xa
mov dword [esp + 0x24], ebp
je 0x1107e7aa
add dword [esp + 0x10], eax
jmp 0x1107e6c5
cmp dword [esi + 0x3b4], edx
mov ebx, dword [esp + 0x48]
je 0x1107e7c4
push ebx
push ebp
push edi
push 1
push esi
call fcn.11051f20
add esp, 0x14
cmp dword [esi + 0x39c], 0
mov eax, 2
je 0x1107e7d7
mov eax, 3
push ebp
push edi
push eax
push ebx
call fcn.110524c0
add dword [esi + 0x4850], ebp
add dword [esi + 0x80], ebp
add esp, 0x10
test eax, eax
jne 0x1107ed9f
mov al, byte [edi]
cmp al, 0xd
je 0x1107e9be
cmp al, 0xa
je 0x1107e9be
push 0x11
push edi
push str.WWW_Authenticate:
mov byte [edi + ebp], 0
call fcn.110506e0
add esp, 0xc
test eax, eax
je 0x1107e82e
mov eax, dword [esi + 0xc8]
cmp eax, 0x191
je 0x1107e84f
push 0x13
push edi
push str.Proxy_authenticate:
call fcn.110506e0
add esp, 0xc
test eax, eax
je 0x1107e894
mov eax, dword [esi + 0xc8]
cmp eax, 0x197
jne 0x1107e894
xor edx, edx
cmp eax, 0x197
sete dl
push edi
mov ebp, edx
call fcn.110641d0
mov edi, eax
add esp, 4
test edi, edi
je 0x1107ebc6
push edi
push ebp
push ebx
call fcn.110647f0
push edi
mov ebp, eax
call dword [0x111c416c]
add esp, 0x10
test ebp, ebp
je 0x1107e9a7
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.110506e0
add esp, 0xc
test eax, eax
je 0x1107e8e5
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
je 0x1107ec5b
push 0xa
push 0
add edi, 0xf
push edi
call fcn.1113d16e
add esp, 0xc
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
jmp 0x1107e9a7
push str.close
push str.Connection:
push edi
call fcn.11064d80
add esp, 0xc
test eax, eax
je 0x1107e909
mov dword [esp + 0x1c], 1
jmp 0x1107e9a7
push str.chunked
push str.Transfer_Encoding:
push edi
call fcn.11064d80
add esp, 0xc
test eax, eax
je 0x1107e95e
mov ecx, dword [esi + 0xc8]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 2
je 0x1107ec79
push str.CONNECT_responded_chunked_n
push esi
call fcn.11052010
push ebx
mov dword [esp + 0x3c], 1
call fcn.11080670
add esp, 0xc
jmp 0x1107e9a7
push str.close
push str.Proxy_Connection:
push edi
call fcn.11064d80
add esp, 0xc
test eax, eax
je 0x1107e97f
mov dword [esp + 0x1c], 1
jmp 0x1107e9a7
lea ebp, [esi + 0xc8]
push ebp
lea edx, [esp + 0x3c]
push edx
push str.HTTP_1._d__d
push edi
call fcn.1113c1a8
add esp, 0x10
cmp eax, 2
jne 0x1107e9a7
mov eax, dword [ebp]
mov dword [esi + 0x4840], eax
mov edi, dword [esi + 0x6cc]
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], edi
jmp 0x1107e6c5
mov ecx, dword [esi + 0x6cc]
xor edx, edx
cmp dword [esi + 0xc8], 0x197
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ecx
jne 0x1107ea9b
cmp dword [esi + 0x4788], edx
jne 0x1107ea9b
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov ebp, eax
or ebp, ecx
mov dword [esp + 0x14], 2
je 0x1107ea24
push ecx
push eax
push str.Ignore__I64d_bytes_of_response_body_n
push esi
call fcn.11052010
mov edx, dword [esp + 0x5c]
add esp, 0x10
mov dword [ebx + edx*4 + 0x59c], 2
jmp 0x1107e613
cmp dword [esp + 0x30], edx
je 0x1107ea9b
push str.Ignore_chunked_response_body_n
push esi
call fcn.11052010
add esp, 8
mov dword [esi + 0x100], 1
cmp byte [edi + 1], 0xa
jne 0x1107ea4b
add edi, 1
lea edx, [esp + 0x34]
push edx
push 1
lea eax, [edi + 1]
push eax
push ebx
call fcn.11080680
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1107ea9f
push str.chunk_reading_DONE_n
push esi
call fcn.11052010
mov ecx, dword [esp + 0x54]
mov edx, ecx
mov dword [ebx + ecx*4 + 0x59c], 2
add esp, 8
mov dword [esp + 0x14], 0
mov dword [ebx + edx*4 + 0x59c], 2
jmp 0x1107e613
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x4c]
mov dword [ebx + edx*4 + 0x59c], 2
jmp 0x1107e613
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.110520a0
mov dword [esp + 0x28], 2
jmp 0x1107eb0d
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
jmp 0x1107eaff
cmp dword [esi + 0x158], edx
je 0x1107eafa
cmp dword [esi + 0x4778], edx
je 0x1107eafa
mov eax, dword [esp + 0x48]
push str.Proxy_CONNECT_connection_closed_n
push esi
mov dword [eax + 0x2f0], 1
call fcn.11052010
jmp 0x1107eb0d
push str.Proxy_CONNECT_aborted
push esi
mov dword [esp + 0x28], 1
call fcn.110520a0
add esp, 8
mov edi, dword [esp + 0x48]
push edi
call fcn.11062bc0
add esp, 4
test eax, eax
jne 0x1107ec33
xor ebp, ebp
cmp dword [esp + 0x20], ebp
jne 0x1107ec26
cmp dword [esi + 0x4840], 0xc8
je 0x1107eb60
push edi
call fcn.11065200
add esp, 4
cmp eax, ebp
jne 0x1107ed9f
cmp dword [edi + 0x28c], ebp
je 0x1107eb60
mov dword [esp + 0x1c], 1
jmp 0x1107eb66
cmp dword [esp + 0x1c], ebp
je 0x1107eb72
cmp dword [esi + 0x10c], ebp
jne 0x1107ec9b
cmp dword [esi + 0x10c], ebp
mov ebx, dword [esp + 0x4c]
je 0x1107ecbb
cmp dword [edi + ebx*4 + 0x59c], 2
jne 0x1107eba2
push ebp
push str.TUNNEL_STATE_switched_to:__d_n
push esi
mov dword [edi + ebx*4 + 0x59c], ebp
call fcn.11052010
add esp, 0xc
cmp dword [esi + 0x10c], ebp
je 0x1107ecbb
mov edi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x48]
xor ebp, ebp
jmp 0x1107e360
push edi
call fcn.11064ac0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x34
ret
mov ecx, dword [esp + 0x18]
push ecx
call fcn.11064ac0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x34
ret
push ebp
call dword [0x111c416c]
mov edx, dword [esp + 0x1c]
push edx
call fcn.11064ac0
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.110520a0
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.110520a0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x34
ret
mov eax, ecx
push eax
push str.Content_Length:_in__03d_response
push esi
call fcn.110520a0
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x34
ret
mov ecx, dword [esi + 0xc8]
push ecx
push str.Transfer_Encoding:_in__03d_response
push esi
call fcn.110520a0
add esp, 0xc
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.1105f210
add esp, 8
mov dword [edi + ebx*4 + 0x190], 0xffffffff
cmp dword [esi + 0xc8], 0xc8
je 0x1107ed5b
cmp dword [esp + 0x1c], ebp
je 0x1107ecf3
cmp dword [esi + 0x10c], ebp
je 0x1107ecf3
push str.Connect_me_again_please_n
push esi
mov dword [edi + 0x2f0], 1
call fcn.11052010
add esp, 8
jmp 0x1107ed2a
mov eax, dword [esi + 0x10c]
push eax
call dword [0x111c416c]
push 2
push edi
mov dword [esi + 0x10c], ebp
call fcn.1105f350
mov ecx, dword [edi + ebx*4 + 0x190]
push ecx
push edi
call fcn.1105f210
add esp, 0x14
mov dword [edi + ebx*4 + 0x190], 0xffffffff
mov dword [edi + ebx*4 + 0x59c], ebp
cmp dword [edi + 0x2f0], ebp
jne 0x1107ed9d
mov edx, dword [esi + 0xc8]
push edx
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push esi
call fcn.110520a0
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x34
ret
mov dword [edi + ebx*4 + 0x59c], 2
mov eax, dword [edi + 0x344]
push eax
call dword [0x111c416c]
push str.Proxy_replied_OK_to_CONNECT_request_n
mov dword [edi + 0x344], ebp
push esi
mov dword [esi + 0x477c], 1
call fcn.11052010
mov dword [esi + 0x100], ebp
add esp, 0xc
mov dword [edi + 0x2d4], ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret