Function at 0x440570
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + ecx*4 + 0x168]
push ebx
xor ebx, ebx
cmp dword [eax + ecx*4 + 0x514], 2
push esi
mov esi, dword [eax]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
jne 0x4405b0
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov dword [eax + 0x274], ebx
jmp 0x4405c0
cmp dword [eax + ecx*4 + 0x514], ebx
jne 0x440812
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
push str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
push esi
call fcn.004251f0
mov edx, dword [esi + 0x10c]
push edx
call dword [0x464f54]
add esp, 0x14
mov dword [esi + 0x10c], ebx
call fcn.0043b6f0
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, ebx
je 0x440e89
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
push str._s:_hu
call fcn.0042a350
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x440e49
mov edx, dword [ebp + 8]
push 1
push ebx
push str.CONNECT
push edx
call fcn.0043b310
push ebx
mov edi, eax
call dword [0x464f54]
add esp, 0x14
test edi, edi
jne 0x4407eb
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14c], 1
mov ecx, 0x460c6e
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0x45cafc
je 0x440674
mov dword [ebp - 8], 0x45cb00
mov ebx, dword [ebp + 0x10]
mov eax, dword [edi + 0x238]
cmp ebx, dword [edi + 0x98]
je 0x44069b
push 0x3a
push ebx
call fcn.0044c750
add esp, 8
neg eax
sbb eax, eax
neg eax
mov ecx, 0x460c6e
test eax, eax
je 0x4406ab
mov ecx, 0x457890
mov eax, 0x457874
jmp 0x4406ad
mov eax, ecx
mov edx, dword [ebp + 0x14]
push edx
push ecx
push ebx
push eax
push str._s_s_s:_hu
call fcn.0042a350
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x440e5e
push str.Host:
push edi
call fcn.0043ad80
add esp, 8
test eax, eax
jne 0x4406f6
push ebx
push str.Host:__s_r_n
call fcn.0042a350
add esp, 8
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x440e76
push str.Proxy_Connection:
push edi
call fcn.0043ad80
add esp, 8
test eax, eax
jne 0x44070f
mov dword [ebp - 0x10], str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent:
push edi
call fcn.0043ad80
add esp, 8
test eax, eax
jne 0x440732
cmp dword [esi + 0x404], eax
je 0x440732
mov eax, dword [edi + 0x2b8]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x2b4]
test eax, eax
jne 0x440741
mov eax, 0x460c6e
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
push edx
mov edx, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push ecx
push ebx
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push edx
call fcn.0043c040
add esp, 0x20
cmp dword [ebp - 0x1c], 0
mov edi, eax
je 0x440780
mov eax, dword [ebp - 0x1c]
cmp byte [eax], 0
je 0x440780
mov ecx, eax
push ecx
call dword [0x464f54]
add esp, 4
push ebx
call dword [0x464f54]
add esp, 4
test edi, edi
jne 0x4407d5
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
push ebx
push 1
push edx
call fcn.0043c130
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4407d5
push 0x457e58
push ebx
call fcn.0043c040
mov edi, eax
add esp, 8
test edi, edi
jne 0x4407d5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
push edi
lea ecx, [esi + 0x87a4]
push ecx
push edx
push ebx
call fcn.0043b730
add esp, 0x14
mov edi, eax
xor ebx, ebx
test edi, edi
je 0x4407ee
push str.Failed_sending_CONNECT_to_proxy
push esi
call fcn.00425270
add esp, 8
jmp 0x4407ee
mov ebx, dword [ebp - 0x18]
push ebx
call fcn.0043b700
add esp, 4
test edi, edi
jne 0x440e95
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax + ecx*4 + 0x514], 1
xor ebx, ebx
push 1
push ebx
push esi
call fcn.00427790
add esp, 0xc
test eax, eax
jle 0x440e9e
cmp dword [ebp + 0x18], ebx
jne 0x440844
mov edx, dword [ebp - 0x28]
push ebx
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.0041a2c0
add esp, 0x10
test eax, eax
je 0x440fd0
mov ebx, dword [ebp + 8]
lea eax, [esi + 0x624]
mov dword [ebp - 0x10], eax
mov edi, eax
xor eax, eax
mov dword [ebp - 8], 1
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], 0
je 0x440d95
cmp dword [ebp - 0x24], 0
jne 0x440f80
push 1
push 0
push esi
call fcn.00427790
add esp, 0xc
test eax, eax
jle 0x440e2f
cmp eax, 0x3e8
jl 0x440896
mov eax, 0x3e8
push eax
mov eax, dword [ebp - 0x28]
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
call fcn.0041a2c0
add esp, 0x10
cmp eax, 0xffffffff
je 0x440d62
test eax, eax
je 0x440d77
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x28]
mov edx, 0x4000
sub edx, dword [ebp - 0x1c]
push edx
push eax
push ecx
push ebx
call fcn.00424f70
add esp, 0x14
cmp eax, 0x51
je 0x440d88
xor ecx, ecx
cmp eax, ecx
je 0x4408ed
mov dword [ebp - 8], ecx
jmp 0x440d77
mov eax, dword [ebp - 0x14]
cmp eax, ecx
jg 0x44092b
mov dword [ebp - 8], ecx
cmp dword [esi + 0x158], ecx
je 0x440921
cmp dword [esi + 0x86c8], ecx
je 0x440921
push str.Proxy_CONNECT_connection_closed_n
push esi
mov dword [ebx + 0x274], 1
call fcn.004251f0
jmp 0x440d74
push str.Proxy_CONNECT_aborted
jmp 0x440d67
add dword [ebp - 0x1c], eax
mov edx, 1
cmp dword [ebp - 8], edx
jle 0x4409d6
mov edx, dword [ebp - 0x3c]
or edx, dword [ebp - 0x38]
mov dword [ebp - 0x1c], ecx
lea ecx, [esi + 0x624]
mov dword [ebp - 0x10], ecx
je 0x44097c
cdq
sub dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
sbb eax, edx
mov dword [ebp - 0x38], eax
test eax, eax
jg 0x440d77
jl 0x440970
cmp dword [ebp - 0x3c], 0
ja 0x440d77
mov dword [ebp - 8], 0
jmp 0x440d77
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push ecx
push eax
push edx
push ebx
mov dword [ebp - 0x18], 0
call fcn.0044af30
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4409bf
push str.chunk_reading_DONE_n
push esi
call fcn.004251f0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], 0
mov dword [ebx + eax*4 + 0x514], 2
jmp 0x440d74
mov ecx, dword [ebp - 0x18]
push ecx
push str.Read__zd_bytes_of_chunk__continue_n
push esi
call fcn.004251f0
add esp, 0xc
jmp 0x440d77
mov dword [ebp - 0x18], ecx
cmp eax, ecx
jle 0x440d77
jmp 0x4409e5
xor ecx, ecx
add dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x10]
cmp byte [edx], 0xa
jne 0x440bd8
cmp dword [esi + 0x33c], ecx
je 0x440a0d
mov eax, dword [ebp - 0xc]
push ebx
push eax
push edi
push 1
push esi
call fcn.00425110
add esp, 0x14
cmp dword [esi + 0x324], 0
mov eax, 2
je 0x440a20
mov eax, 3
mov ecx, dword [ebp - 0xc]
push ecx
push edi
push eax
push ebx
call fcn.00425650
mov ecx, dword [ebp - 0xc]
add dword [esi + 0x87a0], ecx
add dword [esi + 0x80], ecx
add esp, 0x10
test eax, eax
jne 0x440fd2
mov al, byte [edi]
cmp al, 0xd
je 0x440bf5
cmp al, 0xa
je 0x440bf5
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.004411e0
add esp, 0xc
test eax, eax
je 0x440a85
mov eax, dword [esi + 0xc8]
cmp eax, 0x191
je 0x440aa6
push 0x13
push edi
push str.Proxy_authenticate:
call fcn.004411e0
add esp, 0xc
test eax, eax
je 0x440af5
mov eax, dword [esi + 0xc8]
cmp eax, 0x197
jne 0x440af5
xor ecx, ecx
cmp eax, 0x197
sete cl
push edi
mov dword [ebp - 0x30], ecx
call fcn.0043adf0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x440e89
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp + 8]
push ebx
push edx
push eax
call fcn.0043b420
push ebx
mov dword [ebp - 0x30], eax
call dword [0x464f54]
add esp, 0x10
cmp dword [ebp - 0x30], 0
je 0x440bbe
mov eax, dword [ebp - 0x30]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xf
push edi
push str.Content_Length:
call fcn.004411e0
add esp, 0xc
test eax, eax
je 0x440b24
push 0xa
lea ecx, [edi + 0xf]
push 0
push ecx
call fcn.00419a8d
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edx
jmp 0x440bbe
push str.close
push str.Connection:
push edi
call fcn.0043b9c0
add esp, 0xc
test eax, eax
je 0x440b44
mov dword [ebp - 0x20], 1
jmp 0x440bbe
push str.chunked
push str.Transfer_Encoding:
push edi
call fcn.0043b9c0
add esp, 0xc
test eax, eax
je 0x440b78
push str.CONNECT_responded_chunked_n
push esi
call fcn.004251f0
push ebx
mov dword [ebp - 0x2c], 1
call fcn.0044af10
add esp, 0xc
jmp 0x440bbe
push str.close
push str.Proxy_Connection:
push edi
call fcn.0043b9c0
add esp, 0xc
test eax, eax
je 0x440b98
mov dword [ebp - 0x20], 1
jmp 0x440bbe
lea ebx, [esi + 0xc8]
push ebx
lea edx, [ebp - 0x34]
push edx
push str.HTTP_1._d__d
push edi
call fcn.0044c4b6
add esp, 0x10
cmp eax, 2
jne 0x440bbe
mov eax, dword [ebx]
mov dword [esi + 0x8790], 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 0x4409e3
jmp 0x440d77
xor ecx, ecx
cmp dword [esi + 0xc8], 0x197
lea eax, [esi + 0x624]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], eax
jne 0x440d29
cmp dword [esi + 0x86d8], ecx
jne 0x440d29
mov edx, dword [ebp - 0x3c]
or edx, dword [ebp - 0x38]
mov dword [ebp - 8], 2
je 0x440c84
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
push eax
push ecx
push str.Ignore__I64d_bytes_of_response_body_n
push esi
call fcn.004251f0
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
add esp, 0x10
cdq
sub dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
sbb eax, edx
mov dword [ebp - 0x38], eax
test eax, eax
jg 0x440d52
jl 0x440c6a
cmp dword [ebp - 0x3c], 0
ja 0x440d52
mov edx, dword [ebp + 0xc]
mov dword [ebp - 8], 0
mov dword [ebx + edx*4 + 0x514], 2
jmp 0x440d77
cmp dword [ebp - 0x2c], ecx
je 0x440d16
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.004251f0
add esp, 0xc
cmp byte [edi + 1], 0xa
jne 0x440cb6
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.0044af30
add esp, 0x10
cmp eax, 0xffffffff
jne 0x440d05
push str.chunk_reading_DONE_n
push esi
call fcn.004251f0
mov eax, dword [ebp + 0xc]
mov edx, eax
mov dword [ebx + eax*4 + 0x514], 2
add esp, 8
mov dword [ebp - 8], 0
mov dword [ebx + edx*4 + 0x514], 2
jmp 0x440d77
mov ecx, dword [ebp - 0x14]
push ecx
push str.Read__zd_bytes_of_chunk__continue_n
push esi
call fcn.004251f0
jmp 0x440d4f
mov edx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov dword [ebx + edx*4 + 0x514], 2
jmp 0x440d77
cmp dword [esi + 0x8790], 0xc8
mov dword [ebp - 8], ecx
jne 0x440d52
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
dec eax
cmp eax, ecx
je 0x440d52
push eax
push str.Proxy_CONNECT_followed_by__zd_bytes_of_opaque_data._Data_ignored__known_bug_39_
push esi
call fcn.00425270
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov dword [ebx + edx*4 + 0x514], 2
jmp 0x440d77
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
push esi
mov dword [ebp - 0x24], 1
call fcn.00425270
add esp, 8
push ebx
call fcn.00441e90
add esp, 4
test eax, eax
jne 0x440eb8
cmp dword [ebp - 0x1c], 0x4000
jb 0x440861
cmp dword [ebp - 0x24], 0
jne 0x440f80
cmp dword [esi + 0x8790], 0xc8
je 0x440dcd
push ebx
call fcn.0043be60
add esp, 4
test eax, eax
jne 0x440fd2
cmp dword [ebx + 0x218], eax
je 0x440dcd
mov dword [ebp - 0x20], 1
jmp 0x440dd3
cmp dword [ebp - 0x20], 0
je 0x440de0
cmp dword [esi + 0x10c], 0
jne 0x440ec4
cmp dword [esi + 0x10c], 0
mov edi, dword [ebp + 0xc]
je 0x440ee3
cmp dword [ebx + edi*4 + 0x514], 2
jne 0x440e15
push 0
push str.TUNNEL_STATE_switched_to:__d_n
push esi
mov dword [ebx + edi*4 + 0x514], 0
call fcn.004251f0
add esp, 0xc
cmp dword [esi + 0x10c], 0
je 0x440ee3
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
jmp 0x4405c0
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.00425270
add esp, 8
pop edi
pop esi
mov eax, 0x38
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.0043b700
add esp, 4
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
push eax
call fcn.0043b700
add esp, 4
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call dword [0x464f54]
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0043b700
add esp, 8
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.00425270
add esp, 8
pop edi
pop esi
mov eax, 0x38
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 + 0x168]
push edx
push ebx
call fcn.004281a0
add esp, 8
mov dword [ebx + edi*4 + 0x168], 0xffffffff
cmp dword [esi + 0xc8], 0xc8
je 0x440f8c
cmp dword [ebp - 0x20], 0
je 0x440f1c
cmp dword [esi + 0x10c], 0
je 0x440f1c
push str.Connect_me_again_please_n
push esi
mov dword [ebx + 0x274], 1
call fcn.004251f0
add esp, 8
jmp 0x440f57
mov eax, dword [esi + 0x10c]
push eax
call dword [0x464f54]
push 2
push ebx
mov dword [esi + 0x10c], 0
call fcn.004282d0
mov ecx, dword [ebx + edi*4 + 0x168]
push ecx
push ebx
call fcn.004281a0
add esp, 0x14
mov dword [ebx + edi*4 + 0x168], 0xffffffff
mov dword [ebx + edi*4 + 0x514], 0
cmp dword [ebx + 0x274], 0
jne 0x440fd0
mov edx, dword [esi + 0xc8]
push edx
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push esi
call fcn.00425270
add esp, 0xc
pop edi
pop esi
mov eax, 0x38
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + edi*4 + 0x514], 2
mov eax, dword [ebx + 0x2b4]
push eax
call dword [0x464f54]
xor edi, edi
push str.Proxy_replied_OK_to_CONNECT_request_n
mov dword [ebx + 0x2b4], edi
push esi
mov dword [esi + 0x86cc], 1
call fcn.004251f0
mov dword [esi + 0x100], edi
add esp, 0xc
mov dword [ebx + 0x25c], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret