Function at 0x1400763b0
Capabilities:
Check for time delay via gettickcount
Check http status code

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
mov eax, 0xb0
call fcn.1401ef830
sub rsp, rax
mov r13, qword [rcx]
mov r12, rcx
add rcx, 0x230
movsxd rdi, edx
xor bl, bl
mov dword [rsp + 0x60], 0
mov esi, r9d
mov byte [rsp + 0x110], bl
lea r14, [r12 + 0x720]
mov rbp, r8
lea rcx, [rcx + rdi*8]
mov qword [rsp + 0x88], rcx
lea r14, [r14 + rdi*4]
mov rcx, qword [r12 + rdi*8 + 0x230]
mov qword [rsp + 0x78], rcx
xor ecx, ecx
cmp dword [r14], 2
mov qword [rsp + 0x58], rcx
mov byte [rsp + 0xf0], cl
mov dword [rsp + 0x40], ecx
mov qword [rsp + 0x48], r14
jne 0x140076445
xor eax, eax
jmp 0x140077141
mov qword [rsp + 0xa8], r15
mov byte [r12 + 0x3e2], cl
cmp dword [r14], 0
movabs r15, 0x20c49ba5e353f7cf
jne 0x1400766ee
mov r9d, esi
lea rdx, str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
mov r8, rbp
mov rcx, r13
call fcn.140059720
mov rcx, qword [r13 + 0x1d8]
call qword [fcn.1402196e8]
mov edx, Ordinal_26
mov qword [r13 + 0x1d8], 0
lea ecx, [rdx - 0x17]
call qword [fcn.14021a30c]
mov rdi, rax
test rax, rax
je 0x140076f9e
mov r8d, esi
lea rcx, str._s:_hu
mov rdx, rbp
call fcn.14006acb0
mov rsi, rax
test rax, rax
je 0x140076f96
mov r9b, 1
lea rdx, [0x1402d2f40]
mov r8, rax
mov rcx, r12
call fcn.1400703b0
mov rcx, rsi
mov ebx, eax
call qword [fcn.1402196e8]
test ebx, ebx
jne 0x14007672b
cmp dword [r12 + 0x16c], 1
lea rax, [0x1402d173c]
lea rbx, [0x14027c115]
lea r14, [0x1402d1738]
mov rsi, rbx
cmove r14, rax
mov r15, rbx
movzx eax, byte [r12 + 0x3d2]
cmp rbp, qword [r12 + 0xb8]
je 0x140076544
mov edx, Ordinal_60
mov rcx, rbp
call fcn.14021125c
test rax, rax
setne al
test al, al
lea rcx, [0x14027c2d8]
lea rax, [0x14027c2d0]
mov r9, rbx
cmovne r9, rcx
mov rdx, rbx
cmovne rdx, rax
lea rcx, str._s_s_s:_hu
mov eax, dword [rsp + 0x108]
mov r8, rbp
mov dword [rsp + 0x20], eax
call fcn.14006acb0
mov rbp, rax
test rax, rax
je 0x140076f96
lea rdx, str.Host:
mov rcx, r12
call fcn.14006faf0
test rax, rax
jne 0x1400765b7
mov rdx, rbp
lea rcx, str.Host:__s_r_n
call fcn.14006acb0
mov rsi, rax
test rax, rax
je 0x140076f8d
lea rdx, str.Proxy_Connection:
mov rcx, r12
call fcn.14006faf0
test rax, rax
lea rbx, str.Proxy_Connection:_Keep_Alive_r_n
lea rax, [0x14027c115]
mov rcx, r12
lea rdx, str.User_Agent:
cmovne rbx, rax
call fcn.14006faf0
test rax, rax
jne 0x140076600
cmp qword [r13 + 0x6c8], rax
je 0x140076600
mov r15, qword [r12 + 0x430]
mov rax, qword [r12 + 0x428]
lea rcx, [0x14027c115]
mov qword [rsp + 0x38], rbx
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s_s_s
test rax, rax
mov qword [rsp + 0x30], r15
mov r9, r14
mov r8, rbp
cmovne rcx, rax
mov qword [rsp + 0x28], rcx
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call fcn.140070ba0
mov ebx, eax
test rsi, rsi
je 0x140076654
cmp byte [rsi], 0
je 0x140076654
mov rcx, rsi
call qword [fcn.1402196e8]
mov rcx, rbp
call qword [fcn.1402196e8]
test ebx, ebx
jne 0x1400766ab
mov r8, rdi
mov dl, 1
mov rcx, r12
call fcn.140071220
mov ebx, eax
test eax, eax
jne 0x1400766ab
lea rdx, [0x14027c42c]
mov rcx, rdi
call fcn.140070ba0
mov ebx, eax
test eax, eax
jne 0x1400766ab
mov eax, dword [rsp + 0xf8]
lea r8, [r13 + 0x8bb0]
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov rdx, r12
mov rcx, rdi
call fcn.140070970
mov ebx, eax
xor edi, edi
test ebx, ebx
je 0x1400766c0
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, r13
call fcn.140059810
mov r14, qword [rsp + 0x48]
movabs r15, 0x20c49ba5e353f7cf
mov rcx, rdi
call qword [fcn.1402196e8]
test ebx, ebx
jne 0x140076fdb
mov edi, dword [rsp + 0xf8]
mov dword [r14], 1
movsxd r8, dword [r13 + 0x328]
xor ecx, ecx
movsxd rdx, dword [r13 + 0x32c]
test r8d, r8d
mov ebx, 0x493e0
setg cl
test edx, edx
jle 0x140076710
or ecx, 2
sub ecx, 1
je 0x14007673b
sub ecx, 1
je 0x140076736
cmp ecx, 1
jne 0x14007673e
cmp r8d, edx
cmovl edx, r8d
movsxd rbx, edx
jmp 0x14007673e
mov rcx, qword [rdi]
call qword [fcn.1402196e8]
jmp 0x1400766cf
mov rbx, rdx
jmp 0x14007673e
mov rbx, r8
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov r9d, edx
shr r9d, 6
imul eax, r9d, 0x3e8
mov dword [rsp + 0x68], r9d
sub ecx, eax
imul eax, ecx, 0x3e8
mov rcx, qword [r13 + 0x8b8]
sub r9d, ecx
mov r8, rcx
shr r8, 0x20
mov dword [rsp + 0x6c], eax
mov rax, qword [rsp + 0x68]
shr rax, 0x20
sub eax, r8d
movsxd rdx, eax
mov rax, r15
imul rdx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul eax, r9d, 0x3e8
sub rbx, rdx
movsxd rcx, eax
sub rbx, rcx
je 0x140077125
test rbx, rbx
jle 0x140077125
mov edx, edi
mov rcx, r12
call fcn.14005bbc0
test al, al
je 0x14007711a
xor eax, eax
lea rdi, [r13 + 0x988]
xor esi, esi
mov qword [rsp + 0x50], rax
xor r14d, r14d
lea r15, [r13 + 0x988]
mov ebp, 1
test ebp, ebp
je 0x1400769a0
mov rcx, r12
call fcn.14006eba0
test eax, eax
jne 0x14007711e
lea rax, [r13 + 0x4988]
cmp rdi, rax
jae 0x140076fe2
movsxd r8, dword [r13 + 0x328]
xor ecx, ecx
movsxd rdx, dword [r13 + 0x32c]
test r8d, r8d
mov ebx, 0x493e0
setg cl
test edx, edx
jle 0x14007683a
or ecx, 2
sub ecx, 1
je 0x14007685a
sub ecx, 1
je 0x140076855
cmp ecx, 1
jne 0x14007685d
cmp r8d, edx
cmovl edx, r8d
movsxd rbx, edx
jmp 0x14007685d
mov rbx, rdx
jmp 0x14007685d
mov rbx, r8
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov r9d, edx
shr r9d, 6
imul eax, r9d, 0x3e8
mov dword [rsp + 0x70], r9d
sub ecx, eax
imul eax, ecx, 0x3e8
mov rcx, qword [r13 + 0x8b8]
sub r9d, ecx
mov r8, rcx
shr r8, 0x20
mov dword [rsp + 0x74], eax
mov rax, qword [rsp + 0x70]
shr rax, 0x20
sub eax, r8d
movsxd rdx, eax
movabs rax, 0x20c49ba5e353f7cf
imul rdx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul eax, r9d, 0x3e8
sub rbx, rdx
movsxd rcx, eax
sub rbx, rcx
je 0x140076efb
test rbx, rbx
jle 0x140076efb
mov rdx, qword [rsp + 0x78]
lea rax, [rsp + 0x80]
mov r9d, 1
mov qword [rsp + 0x20], rax
mov r8, rdi
mov rcx, r12
call fcn.140059e70
cmp eax, 0x51
jne 0x14007694e
mov rcx, qword [rsp + 0x78]
mov r9d, 0x3e8
cmp rbx, r9
cmovl r9, rbx
or r8, 0xffffffffffffffff
or rdx, r8
call fcn.14005bc60
cmp eax, 0xffffffff
jne 0x140076dc3
mov edi, 1
lea rdx, str.Proxy_CONNECT_aborted_due_to_select_poll_error
mov rcx, r13
mov dword [rsp + 0x40], edi
call fcn.140059810
jmp 0x1400769a4
test eax, eax
jne 0x1400769a0
cmp qword [rsp + 0x80], 0
jle 0x140076ead
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x50], rax
cmp ebp, 1
jle 0x140076a48
xor eax, eax
lea rdi, [r13 + 0x988]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x1400769f9
dec rax
mov qword [rsp + 0x58], rax
test rax, rax
jg 0x1400767f0
mov edi, dword [rsp + 0x40]
mov rcx, r12
call fcn.14006eba0
test eax, eax
jne 0x14007711e
test edi, edi
jne 0x140077134
cmp dword [r13 + 0x8b9c], 0xc8
je 0x140076f18
mov rcx, r12
call fcn.140070050
test eax, eax
jne 0x140077139
cmp byte [r12 + 0x3c9], al
je 0x140076f18
mov bl, 1
mov byte [rsp + 0x110], bl
jmp 0x140076f24
lea r9, [rsp + 0x90]
mov qword [rsp + 0x90], 0
mov r8d, 1
mov rdx, rdi
mov rcx, r12
call fcn.140093950
cmp eax, 0xffffffff
jne 0x1400767f0
lea rdx, str.chunk_reading_DONE_n
mov rcx, r13
call fcn.140059720
xor ebp, ebp
mov rax, qword [rsp + 0x48]
mov dword [rax], 2
jmp 0x1400767f0
inc esi
inc r14
cmp byte [rdi], 0xa
je 0x140076a5a
inc rdi
jmp 0x140076dc8
cmp byte [r13 + 0x578], 0
je 0x140076a7c
movsxd r9, esi
mov r8, r15
mov edx, 1
mov qword [rsp + 0x20], r12
mov rcx, r13
call fcn.14005a090
xor edx, edx
movsxd r9, esi
cmp byte [r13 + 0x56d], dl
setne dl
add edx, 2
test esi, esi
jne 0x140076aa0
or r9, 0xffffffffffffffff
inc r9
cmp byte [r15 + r9], 0
jne 0x140076a96
mov r8, r15
mov rcx, r12
call fcn.140059c70
add dword [r13 + 0x8bac], esi
add dword [r13 + 0xc0], esi
test eax, eax
jne 0x140077139
movzx eax, byte [r15]
cmp al, 0xd
je 0x140076dd9
cmp al, 0xa
je 0x140076dd9
mov byte [r14 + r15], 0
lea r8, str.WWW_Authenticate:
mov r9d, reloc.WS2_32.dll_recvfrom
mov r10, r15
nop word [rax + rax]
movzx ecx, byte [r10]
test cl, cl
je 0x140076b28
test r9, r9
je 0x140076b54
movzx edx, byte [r8]
lea eax, [rdx - 0x61]
cmp al, 0x19
ja 0x140076b0b
sub dl, 0x20
lea eax, [rcx - 0x61]
cmp al, 0x19
ja 0x140076b15
sub cl, 0x20
cmp dl, cl
jne 0x140076b28
inc r8
dec r9
inc r10
cmp byte [r8], 0
jne 0x140076af0
test r9, r9
je 0x140076b54
movzx edx, byte [r8]
lea eax, [rdx - 0x61]
cmp al, 0x19
ja 0x140076b3b
sub dl, 0x20
movzx ecx, byte [r10]
lea eax, [rcx - 0x61]
cmp al, 0x19
ja 0x140076b49
sub cl, 0x20
xor eax, eax
cmp dl, cl
sete al
test eax, eax
je 0x140076b67
mov ebx, dword [r13 + 0x128]
cmp ebx, 0x191
je 0x140076d75
mov r9d, reloc.WS2_32.dll_send
lea r8, str.Proxy_authenticate:
mov r10, r15
movzx ecx, byte [r10]
test cl, cl
je 0x140076baf
test r9, r9
je 0x140076bdb
movzx edx, byte [r8]
lea eax, [rdx - 0x61]
cmp al, 0x19
ja 0x140076b92
sub dl, 0x20
lea eax, [rcx - 0x61]
cmp al, 0x19
ja 0x140076b9c
sub cl, 0x20
cmp dl, cl
jne 0x140076baf
inc r8
dec r9
inc r10
cmp byte [r8], 0
jne 0x140076b77
test r9, r9
je 0x140076bdb
movzx edx, byte [r8]
lea eax, [rdx - 0x61]
cmp al, 0x19
ja 0x140076bc2
sub dl, 0x20
movzx ecx, byte [r10]
lea eax, [rcx - 0x61]
cmp al, 0x19
ja 0x140076bd0
sub cl, 0x20
xor eax, eax
cmp dl, cl
sete al
test eax, eax
je 0x140076bee
mov ebx, dword [r13 + 0x128]
cmp ebx, 0x197
je 0x140076d75
mov r9d, reloc.WS2_32.dll_ntohs
lea r8, str.Content_Length:
mov r10, r15
nop
movzx eax, byte [r10]
test al, al
je 0x140076c3d
test r9, r9
je 0x140076d4a
movzx edx, byte [r8]
lea ecx, [rdx - 0x61]
cmp cl, 0x19
ja 0x140076c20
sub dl, 0x20
lea ecx, [rax - 0x61]
cmp cl, 0x19
ja 0x140076c2a
sub al, 0x20
cmp dl, al
jne 0x140076c3d
inc r8
dec r9
inc r10
cmp byte [r8], 0
jne 0x140076c00
test r9, r9
je 0x140076d4a
movzx edx, byte [r8]
lea eax, [rdx - 0x61]
cmp al, 0x19
ja 0x140076c54
sub dl, 0x20
movzx ecx, byte [r10]
lea eax, [rcx - 0x61]
cmp al, 0x19
ja 0x140076c62
sub cl, 0x20
xor eax, eax
cmp dl, cl
sete al
test eax, eax
jne 0x140076d4a
lea r8, str.close
mov rcx, r15
lea rdx, str.Connection:
call fcn.140070d40
test al, al
je 0x140076c98
mov byte [rsp + 0x110], 1
jmp 0x140076db0
lea r8, str.chunked
mov rcx, r15
lea rdx, str.Transfer_Encoding:
call fcn.140070d40
test al, al
je 0x140076cf5
mov eax, dword [r13 + 0x128]
mov rcx, r13
sub eax, 0xc8
cmp eax, 0x64
jb 0x140076fa8
lea rdx, str.CONNECT_responded_chunked_n
call fcn.140059720
mov byte [rsp + 0xf0], 1
mov qword [r12 + 0x1c], 0
mov qword [r12 + 0x30], 0
jmp 0x140076db0
lea r8, str.close
mov rcx, r15
lea rdx, str.Proxy_Connection:
call fcn.140070d40
test al, al
je 0x140076d1c
mov byte [rsp + 0x110], 1
jmp 0x140076db0
lea rbx, [r13 + 0x128]
mov rcx, r15
mov r9, rbx
lea r8, [rsp + 0x60]
lea rdx, str.HTTP_1._d__d
call fcn.14005c290
cmp eax, 2
jne 0x140076db0
mov eax, dword [rbx]
mov dword [r13 + 0x8b9c], eax
jmp 0x140076db0
mov eax, dword [r13 + 0x128]
sub eax, 0xc8
cmp eax, 0x64
jb 0x140076fc0
xor edx, edx
lea rcx, [r15 + 0xf]
lea r8d, [rdx + 0xa]
call fcn.14021947c
mov qword [rsp + 0x58], rax
jmp 0x140076db0
mov rcx, r15
call fcn.14006fbe0
mov rdi, rax
test rax, rax
je 0x140076f9e
cmp ebx, 0x197
mov r8, rax
mov rcx, r12
sete dl
call fcn.1400704f0
mov rcx, rdi
mov ebx, eax
call qword [fcn.1402196e8]
test ebx, ebx
jne 0x140076fdb
xor esi, esi
lea rdi, [r13 + 0x988]
xor r14d, r14d
lea r15, [r13 + 0x988]
mov rax, qword [rsp + 0x50]
cmp rax, 0x4000
jb 0x1400767f0
jmp 0x1400769a0
xor eax, eax
lea rdi, [r13 + 0x988]
cmp dword [r13 + 0x128], 0x197
mov qword [rsp + 0x50], rax
jne 0x140076a36
cmp byte [r13 + 0x8a90], al
jne 0x140076a36
lea ebp, [rax + 2]
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x140076e30
mov r8, rax
lea rdx, str.Ignore__I64d_bytes_of_response_body_n
mov rcx, r13
call fcn.140059720
mov rax, qword [rsp + 0x48]
mov dword [rax], ebp
jmp 0x1400767f0
cmp byte [rsp + 0xf0], 0
je 0x140076a36
lea rdx, str.Ignore_chunked_response_body_n
mov rcx, r13
call fcn.140059720
lea rax, [r15 + 1]
mov byte [r13 + 0x1cd], 1
cmp byte [rax], 0xa
lea r9, [rsp + 0x80]
mov r8d, 1
mov rcx, r12
cmovne rax, r15
mov r15, rax
lea rdx, [rax + 1]
call fcn.140093950
cmp eax, 0xffffffff
jne 0x140076a38
lea rdx, str.chunk_reading_DONE_n
mov rcx, r13
call fcn.140059720
mov rax, qword [rsp + 0x48]
xor ebp, ebp
mov dword [rax], 2
mov dword [rax], 2
jmp 0x1400767f0
cmp dword [r13 + 0x248], 0
je 0x140076ede
cmp dword [r13 + 0x8a88], 0
je 0x140076ede
lea rdx, str.Proxy_CONNECT_connection_closed_n
mov byte [r12 + 0x3e2], 1
mov rcx, r13
call fcn.140059720
jmp 0x1400769a0
mov edi, 1
lea rdx, str.Proxy_CONNECT_aborted
mov rcx, r13
mov dword [rsp + 0x40], edi
call fcn.140059810
jmp 0x1400769a4
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, r13
call fcn.140059810
mov edi, 2
mov dword [rsp + 0x40], edi
jmp 0x1400769a4
movzx ebx, byte [rsp + 0x110]
test bl, bl
je 0x140076f32
cmp qword [r13 + 0x1d8], 0
jne 0x140076fee
cmp qword [r13 + 0x1d8], 0
mov r14, qword [rsp + 0x48]
je 0x14007700a
cmp dword [r14], 2
jne 0x140076f64
xor r8d, r8d
mov dword [r14], 0
lea rdx, str.TUNNEL_STATE_switched_to:__d_n
mov rcx, r13
call fcn.140059720
cmp qword [r13 + 0x1d8], 0
je 0x14007700a
mov rbp, qword [rsp + 0x100]
mov esi, dword [rsp + 0x108]
mov edi, dword [rsp + 0xf8]
jmp 0x140076455
mov rcx, rbp
call qword [fcn.1402196e8]
mov rcx, rdi
call fcn.140070940
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x140077139
mov r8d, dword [r13 + 0x128]
lea rdx, str.Transfer_Encoding:_in__03d_response
call fcn.140059810
jmp 0x140077134
mov r8d, dword [r13 + 0x128]
lea rdx, str.Content_Length:_in__03d_response
mov rcx, r13
call fcn.140059810
jmp 0x140077134
mov eax, ebx
jmp 0x140077139
lea rdx, str.CONNECT_response_too_large_
jmp 0x14007712c
mov rdi, qword [rsp + 0x88]
mov rcx, r12
mov rdx, qword [rdi]
call fcn.14005bb40
mov qword [rdi], 0xffffffffffffffff
jmp 0x140077012
mov rdi, qword [rsp + 0x88]
cmp dword [r13 + 0x128], 0xc8
je 0x1400770cd
test bl, bl
je 0x14007704b
cmp qword [r13 + 0x1d8], 0
je 0x14007704b
lea rdx, str.Connect_me_again_please_n
mov byte [r12 + 0x3e2], 1
mov rcx, r13
call fcn.140059720
jmp 0x14007709f
mov rcx, qword [r13 + 0x1d8]
call qword [fcn.1402196e8]
mov qword [r13 + 0x1d8], 0
mov rax, qword [r12 + 0x400]
mov ecx, dword [rax + 0x78]
and ecx, 0x200
sete al
test ecx, ecx
jne 0x14007708d
cmp al, byte [r12 + 0x3c9]
je 0x14007708d
mov byte [r12 + 0x3c9], al
mov rdx, qword [rdi]
mov rcx, r12
call fcn.14005bb40
mov qword [rdi], 0xffffffffffffffff
mov rax, qword [rsp + 0x48]
mov dword [rax], 0
cmp byte [r12 + 0x3e2], 0
jne 0x14007711a
mov r8d, dword [r13 + 0x128]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, r13
call fcn.140059810
jmp 0x140077134
mov rax, qword [rsp + 0x48]
mov dword [rax], 2
mov rcx, qword [r12 + 0x428]
call qword [fcn.1402196e8]
mov qword [r12 + 0x428], 0
lea rdx, str.Proxy_replied_OK_to_CONNECT_request_n
mov rcx, r13
mov byte [r13 + 0x8a8c], 1
call fcn.140059720
mov byte [r13 + 0x1cd], 0
mov byte [r12 + 0x3db], 0
xor eax, eax
jmp 0x140077139
mov eax, Ordinal_46
jmp 0x140077139
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, r13
call fcn.140059810
mov eax, Ordinal_60
mov r15, qword [rsp + 0xa8]
add rsp, 0xb0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret