Function at 0x565790
Capabilities:
Check http status code

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov r11, rsp
sub rsp, 0xd8
mov qword [r11 - 8], rbx
mov qword [r11 - 0x10], rbp
mov qword [r11 - 0x18], rsi
mov qword [r11 - 0x20], rdi
movsxd rax, edx
mov qword [r11 - 0x28], r12
mov rsi, qword [rcx + rax*8 + 0x1a8]
xor ebx, ebx
mov qword [r11 - 0x30], r13
xor r12d, r12d
cmp dword [rcx + rax*4 + 0x698], 2
mov qword [r11 - 0x38], r14
mov r14, qword [rcx]
mov qword [r11 - 0x40], r15
mov qword [rsp + 0x78], rsi
mov ebp, r9d
mov r13, r8
mov r15, rcx
mov dword [r11 - 0x58], 0
mov rdi, rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x68], ebx
mov dword [rsp + 0x4c], ebx
je 0x56635d
mov dword [rcx + 0x300], ebx
nop
cmp dword [r15 + rdi*4 + 0x698], 0
jne 0x565a7a
lea rdx, str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
mov r9d, ebp
mov r8, r13
mov rcx, r14
call fcn.0052ede0
mov rcx, qword [r14 + 0x180]
test rcx, rcx
je 0x56585d
call qword [sub.msvcrt.dll_free]
mov qword [r14 + 0x180], rbx
call fcn.005600c0
test rax, rax
mov rdi, rax
je 0x5661fc
lea rcx, str._s:_hu
mov r8d, ebp
mov rdx, r13
call fcn.0052d470
test rax, rax
mov rsi, rax
je 0x5661f3
lea rdx, [0x006b4ea8]
mov r9d, 1
mov r8, rax
mov rcx, r15
call fcn.0055fa40
mov rcx, rsi
mov ebx, eax
call qword [sub.msvcrt.dll_free]
test ebx, ebx
jne 0x5661c1
cmp dword [r15 + 0x188], 1
mov r8, qword [rsp + 0xf0]
lea rcx, [0x00696800]
lea rax, [0x006b3f38]
mov r9, rcx
lea rdx, [0x006a6eec]
mov rsi, rcx
mov r12, rcx
lea r13, [0x006b3f3c]
cmove r13, rax
mov eax, dword [r15 + 0x2c0]
mov dword [rsp + 0x20], ebp
test eax, eax
cmovne r9, rdx
test eax, eax
mov rdx, rcx
lea rax, [0x006a6ef0]
lea rcx, str._s_s_s:_hu
cmovne rdx, rax
call fcn.0052d470
test rax, rax
mov rbp, rax
je 0x5661f3
lea rdx, str.Host:
mov rcx, r15
call fcn.0055f3a0
test rax, rax
jne 0x565958
lea rcx, str.Host:__s_r_n
mov rdx, rbp
call fcn.0052d470
test rax, rax
mov rsi, rax
je 0x5661ea
lea rdx, str.Proxy_Connection:
mov rcx, r15
call fcn.0055f3a0
lea rbx, str.Proxy_Connection:_Keep_Alive_r_n
lea rdx, str.User_Agent:
test rax, rax
lea rax, [0x00696800]
mov rcx, r15
cmovne rbx, rax
call fcn.0055f3a0
test rax, rax
jne 0x5659a0
cmp qword [r14 + 0x5b8], rax
je 0x5659a0
mov r12, qword [r15 + 0x350]
mov rax, qword [r15 + 0x348]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], r12
test rax, rax
lea rcx, [0x00696800]
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s_s_s
cmovne rcx, rax
mov r9, r13
mov r8, rbp
mov qword [rsp + 0x28], rcx
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call fcn.00560e70
test rsi, rsi
mov ebx, eax
je 0x5659f3
cmp byte [rsi], 0
je 0x5659f3
mov rcx, rsi
call qword [sub.msvcrt.dll_free]
mov rcx, rbp
call qword [sub.msvcrt.dll_free]
test ebx, ebx
jne 0x5661ab
lea edx, [rbx + 1]
mov r8, rdi
mov rcx, r15
call fcn.005610b0
test eax, eax
mov ebx, eax
jne 0x5661ab
lea rdx, [0x00698e00]
mov rcx, rdi
call fcn.00560e70
test eax, eax
mov ebx, eax
jne 0x5661ab
mov eax, dword [rsp + 0xe8]
lea r8, [r14 + 0x8a30]
xor r9d, r9d
mov rdx, r15
mov rcx, rdi
mov dword [rsp + 0x20], eax
call fcn.005600d0
test eax, eax
mov ebx, eax
jne 0x5661ab
mov rax, qword [rsp + 0x40]
mov r12, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x78]
mov dword [r15 + rax*4 + 0x698], 1
xor edx, edx
mov rcx, r14
lea r8d, [rdx + 1]
call fcn.0053e6d0
test eax, eax
jle 0x566206
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov rcx, rsi
mov r8, rdx
call fcn.0052f740
test eax, eax
je 0x56635d
mov ebp, 1
lea r13, [r14 + 0x828]
lea rsi, [r14 + 0x828]
mov qword [rsp + 0x60], rbx
xor edi, edi
mov dword [rsp + 0xe0], ebp
nop
test ebp, ebp
je 0x5660ec
cmp dword [rsp + 0x4c], 0
jne 0x5662fc
xor edx, edx
mov rcx, r14
lea r8d, [rdx + 1]
call fcn.0053e6d0
test eax, eax
jle 0x5661d1
mov rcx, qword [rsp + 0x78]
mov r9d, 0x3e8
mov rdx, 0xffffffffffffffff
cmp eax, r9d
mov r8, rdx
cmovl r9d, eax
call fcn.0052f740
cmp eax, 0xffffffff
je 0x5660b1
test eax, eax
je 0x5660c8
mov rdx, qword [rsp + 0x78]
lea rax, [rsp + 0x50]
mov r9d, 0x4000
sub r9, qword [rsp + 0x60]
mov r8, r13
mov rcx, r15
mov qword [rsp + 0x20], rax
call fcn.0052e9c0
cmp eax, 0x51
je 0x5660d8
test eax, eax
je 0x565b6b
xor ebp, ebp
mov dword [rsp + 0xe0], ebp
jmp 0x5660c8
mov rcx, qword [rsp + 0x50]
test rcx, rcx
jg 0x565bcb
xor ebp, ebp
cmp dword [r14 + 0x1f8], ebp
mov dword [rsp + 0xe0], ebp
je 0x565baf
cmp dword [r14 + 0x8928], ebp
je 0x565baf
lea rdx, str.Proxy_CONNECT_connection_closed
mov rcx, r14
mov dword [r15 + 0x300], 1
call fcn.0052ede0
jmp 0x5660c8
lea rdx, str.Proxy_CONNECT_aborted
mov rcx, r14
mov dword [rsp + 0x4c], 1
call fcn.0052eee0
jmp 0x5660c8
add qword [rsp + 0x60], rcx
cmp ebp, 1
jle 0x565c73
xor edx, edx
test r12, r12
lea r13, [r14 + 0x828]
mov qword [rsp + 0x60], rdx
je 0x565c0b
sub r12, rcx
test r12, r12
mov qword [rsp + 0x58], r12
jg 0x5660c8
mov ebp, edx
mov dword [rsp + 0xe0], edx
jmp 0x5660c8
mov qword [rsp + 0x70], rdx
mov r8, rcx
lea r9, [rsp + 0x70]
lea rdx, [r14 + 0x828]
mov rcx, r15
call fcn.0056eef0
cmp eax, 0xffffffff
jne 0x565c5a
lea rdx, str.chunk_reading_DONE_n
mov rcx, r14
call fcn.0052ede0
mov rax, qword [rsp + 0x40]
xor ebp, ebp
mov dword [r15 + rax*4 + 0x698], 2
mov dword [rsp + 0xe0], ebp
jmp 0x5660c8
mov r8, qword [rsp + 0x70]
lea rdx, str.Read__zd_bytes_of_chunk__continue_n
mov rcx, r14
call fcn.0052ede0
jmp 0x5660c8
xor r12d, r12d
test rcx, rcx
jle 0x5660c8
nop
inc rdi
inc ebx
cmp byte [r13], 0xa
mov qword [rsp + 0x70], rdi
jne 0x565e9e
cmp dword [r14 + 0x494], 0
je 0x565cb7
movsxd r9, ebx
mov r8, rsi
mov edx, 1
mov rcx, r14
mov qword [rsp + 0x20], r15
call fcn.0052ebe0
cmp dword [r14 + 0x478], 0
mov edx, 2
mov eax, 3
movsxd r9, ebx
mov r8, rsi
mov rcx, r15
cmovne edx, eax
call fcn.0052f530
add dword [r14 + 0x8a2c], ebx
add dword [r14 + 0xc0], ebx
test eax, eax
jne 0x56635f
movzx eax, byte [rsi]
cmp al, 0xd
je 0x565ebc
cmp al, 0xa
je 0x565ebc
movzx ebp, byte [rdi + rsi]
lea rcx, str.WWW_Authenticate:
mov r8d, reloc.WS2_32.dll_recvfrom
mov rdx, rsi
mov byte [rdi + rsi], 0
call fcn.005406a0
test eax, eax
je 0x565d32
mov eax, dword [r14 + 0x128]
cmp eax, 0x191
je 0x565d59
lea rcx, str.Proxy_authenticate:
mov r8d, reloc.WS2_32.dll_send
mov rdx, rsi
call fcn.005406a0
test eax, eax
je 0x565da2
mov eax, dword [r14 + 0x128]
cmp eax, 0x197
jne 0x565da2
xor edi, edi
cmp eax, 0x197
mov rcx, rsi
sete dil
call fcn.0055f450
test rax, rax
mov rbx, rax
je 0x5661fc
mov r8, rax
mov edx, edi
mov rcx, r15
call fcn.0055fd70
mov rcx, rbx
mov edi, eax
call qword [sub.msvcrt.dll_free]
test edi, edi
jne 0x56621f
mov rdi, qword [rsp + 0x70]
jmp 0x565e8d
lea rcx, str.Content_Length:
mov r8d, reloc.WS2_32.dll_ntohs
mov rdx, rsi
call fcn.005406a0
test eax, eax
je 0x565dd5
xor edx, edx
lea rcx, [rsi + 0xf]
lea r8d, [rdx + 0xa]
call qword [sym.imp.msvcrt.dll__strtoi64]
mov qword [rsp + 0x58], rax
jmp 0x565e8d
lea r8, str.close
lea rdx, str.Connection:
mov rcx, rsi
call fcn.00560440
test eax, eax
je 0x565dfc
mov dword [rsp + 0x48], 1
jmp 0x565e8d
lea r8, str.chunked
lea rdx, str.Transfer_Encoding:
mov rcx, rsi
call fcn.00560440
test eax, eax
je 0x565e37
lea rdx, str.CONNECT_responded_chunked_n
mov rcx, r14
call fcn.0052ede0
mov rcx, r15
mov dword [rsp + 0x68], 1
call fcn.0056eee0
jmp 0x565e8d
lea r8, str.close
lea rdx, str.Proxy_Connection:
mov rcx, rsi
call fcn.00560440
test eax, eax
je 0x565e5b
mov dword [rsp + 0x48], 1
jmp 0x565e8d
lea r9, [r14 + 0x128]
lea r8, [rsp + 0x80]
lea rdx, str.HTTP_1._d__d
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_sscanf]
cmp eax, 2
jne 0x565e8d
mov eax, dword [r14 + 0x128]
mov dword [r14 + 0x8a1c], eax
mov rcx, qword [rsp + 0x50]
mov byte [rdi + rsi], bpl
xor ebx, ebx
xor edi, edi
lea rsi, [r13 + 1]
inc r12d
inc r13
movsxd rax, r12d
cmp rax, rcx
jl 0x565c80
mov ebp, dword [rsp + 0xe0]
jmp 0x5660c8
cmp dword [r14 + 0x128], 0x197
mov qword [rsp + 0x60], 0
lea r13, [r14 + 0x828]
jne 0x56602e
cmp dword [r14 + 0x8938], 0
jne 0x56602e
mov r8, qword [rsp + 0x58]
mov ebp, 2
test r8, r8
mov dword [rsp + 0xe0], ebp
je 0x565f4d
lea rdx, str.Ignore__I64d_bytes_of_response_body_n
mov rcx, r14
call fcn.0052ede0
mov rax, qword [rsp + 0x58]
movsxd r11, r12d
sub r11, qword [rsp + 0x50]
add rax, r11
test rax, rax
mov qword [rsp + 0x58], rax
jg 0x566078
mov rax, qword [rsp + 0x40]
xor ebp, ebp
mov dword [r15 + rax*4 + 0x698], 2
mov dword [rsp + 0xe0], ebp
jmp 0x5660c8
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x56600f
mov r8, qword [rsp + 0x50]
movsxd rax, r12d
lea rdx, str._zd_bytes_of_chunk_left_n
mov rcx, r14
sub r8, rax
mov dword [r14 + 0x170], 1
call fcn.0052ede0
cmp byte [rsi + 1], 0xa
jne 0x565f8a
inc rsi
inc r12d
mov r8, qword [rsp + 0x50]
movsxd rax, r12d
lea rdx, [rsi + 1]
lea r9, [rsp + 0x50]
mov rcx, r15
sub r8, rax
call fcn.0056eef0
cmp eax, 0xffffffff
jne 0x565fe5
lea rdx, str.chunk_reading_DONE_n
mov rcx, r14
call fcn.0052ede0
mov rax, qword [rsp + 0x40]
xor ebp, ebp
mov dword [r15 + rax*4 + 0x698], 2
mov dword [r15 + rax*4 + 0x698], 2
mov dword [rsp + 0xe0], ebp
jmp 0x5660c8
mov r8, qword [rsp + 0x50]
lea rdx, str.Read__zd_bytes_of_chunk__continue_n
mov rcx, r14
call fcn.0052ede0
mov rax, qword [rsp + 0x40]
mov dword [r15 + rax*4 + 0x698], 2
jmp 0x5660c8
mov rax, qword [rsp + 0x40]
xor ebp, ebp
mov dword [r15 + rax*4 + 0x698], 2
mov dword [rsp + 0xe0], ebp
jmp 0x5660c8
xor ebp, ebp
cmp dword [r14 + 0x8a1c], 0xc8
mov dword [rsp + 0xe0], ebp
jne 0x56608b
mov r8, qword [rsp + 0x50]
lea eax, [r12 + 1]
movsxd rcx, eax
sub r8, rcx
je 0x56609e
lea rdx, str.Proxy_CONNECT_followed_by__zd_bytes_of_opaque_data._Data_ignored__known_bug_39_
mov rcx, r14
call fcn.0052eee0
mov rax, qword [rsp + 0x40]
mov dword [r15 + rax*4 + 0x698], 2
jmp 0x5660c8
mov rax, qword [rsp + 0x40]
mov dword [r15 + rax*4 + 0x698], 2
jmp 0x5660c8
mov rax, qword [rsp + 0x40]
mov dword [r15 + rax*4 + 0x698], 2
jmp 0x5660c8
mov rax, qword [rsp + 0x40]
mov dword [r15 + rax*4 + 0x698], 2
jmp 0x5660c8
lea rdx, str.Proxy_CONNECT_aborted_due_to_select_poll_error
mov rcx, r14
mov dword [rsp + 0x4c], 1
call fcn.0052eee0
mov rcx, r15
call fcn.00545200
test eax, eax
jne 0x566226
cmp qword [rsp + 0x60], 0x4000
mov r12, qword [rsp + 0x58]
jb 0x565ad0
cmp dword [rsp + 0x4c], 0
jne 0x5662fc
cmp dword [r14 + 0x8a1c], 0xc8
je 0x566128
mov rcx, r15
call fcn.00560b50
test eax, eax
jne 0x56635f
cmp dword [r15 + 0x2a8], eax
je 0x566128
mov ebx, 1
mov dword [rsp + 0x48], ebx
jmp 0x566130
mov ebx, dword [rsp + 0x48]
test ebx, ebx
je 0x56613e
cmp qword [r14 + 0x180], 0
jne 0x566230
cmp qword [r14 + 0x180], 0
je 0x566178
mov rdi, qword [rsp + 0x40]
cmp dword [r15 + rdi*4 + 0x698], 2
jne 0x56617d
lea rdx, str.TUNNEL_STATE_switched_to:__d_n
xor r8d, r8d
mov rcx, r14
mov dword [r15 + rdi*4 + 0x698], 0
call fcn.0052ede0
jmp 0x56617d
mov rdi, qword [rsp + 0x40]
cmp qword [r14 + 0x180], 0
je 0x566251
mov r12, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x78]
mov ebp, dword [rsp + 0xf8]
mov r13, qword [rsp + 0xf0]
xor ebx, ebx
jmp 0x565820
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, r14
call fcn.0052eee0
mov eax, ebx
jmp 0x56635f
mov rcx, rdi
call qword [sub.msvcrt.dll_free]
mov eax, ebx
jmp 0x56635f
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, r14
call fcn.0052eee0
mov eax, reloc.WS2_32.dll_getservbyport
jmp 0x56635f
mov rcx, rbp
call qword [sub.msvcrt.dll_free]
mov rcx, rdi
call qword [sub.msvcrt.dll_free]
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x56635f
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, r14
call fcn.0052eee0
mov eax, reloc.WS2_32.dll_getservbyport
jmp 0x56635f
mov eax, edi
jmp 0x56635f
mov eax, Ordinal_46
jmp 0x56635f
mov rdi, qword [rsp + 0x40]
mov rcx, r15
mov rdx, qword [r15 + rdi*8 + 0x1a8]
call fcn.0053f420
mov qword [r15 + rdi*8 + 0x1a8], 0xffffffffffffffff
cmp dword [r14 + 0x128], 0xc8
je 0x566303
test ebx, ebx
je 0x56628c
cmp qword [r14 + 0x180], 0
je 0x56628c
lea rdx, str.Connect_me_again_please_n
mov rcx, r14
mov dword [r15 + 0x300], 1
call fcn.0052ede0
jmp 0x5662d0
mov rcx, qword [r14 + 0x180]
test rcx, rcx
je 0x5662a9
call qword [sub.msvcrt.dll_free]
mov qword [r14 + 0x180], 0
mov dword [r15 + 0x2a8], 1
mov rdx, qword [r15 + rdi*8 + 0x1a8]
mov rcx, r15
call fcn.0053f420
mov qword [r15 + rdi*8 + 0x1a8], 0xffffffffffffffff
mov dword [r15 + rdi*4 + 0x698], 0
cmp dword [r15 + 0x300], 0
jne 0x56635d
mov r8d, dword [r14 + 0x128]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, r14
call fcn.0052eee0
mov eax, reloc.WS2_32.dll_getservbyport
jmp 0x56635f
mov dword [r15 + rdi*4 + 0x698], 2
mov rcx, qword [r15 + 0x348]
test rcx, rcx
je 0x56632c
call qword [sub.msvcrt.dll_free]
xor ebx, ebx
mov qword [r15 + 0x348], rbx
jmp 0x56632e
xor ebx, ebx
mov qword [r15 + 0x348], rbx
lea rdx, str.Proxy_replied_OK_to_CONNECT_request_n
mov rcx, r14
mov dword [r14 + 0x892c], 1
call fcn.0052ede0
mov dword [r14 + 0x170], ebx
mov dword [r15 + 0x2e4], ebx
xor eax, eax
mov r15, qword [rsp + 0x98]
mov r14, qword [rsp + 0xa0]
mov r13, qword [rsp + 0xa8]
mov r12, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xb8]
mov rsi, qword [rsp + 0xc0]
mov rbp, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0xd0]
add rsp, 0xd8
ret