Function at 0x1401ab420
Capabilities:
Check http status code
Read http header
Receive http response

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xd8
mov qword [rbp - 0x41], 0xfffffffffffffffe
mov rax, qword [0x140437340]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov rdi, r9
mov qword [rbp - 0x49], r9
mov qword [rbp - 0x59], r8
mov r15, rdx
mov rbx, rcx
lea rcx, [0x14042f270]
mov rax, qword [0x14042f270]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x61], rax
lea rcx, [0x14042f270]
mov rax, qword [0x14042f270]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x69], rax
mov dword [rbp - 0x71], 4
mov qword [rsp + 0x28], 0
lea rax, [rbp - 0x71]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x79]
xor r8d, r8d
mov edx, 0x20000013
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
or r14, 0xffffffffffffffff
mov eax, dword [rbp - 0x79]
cmp eax, 0x197
je 0x1401ab4da
cmp eax, 0x191
jne 0x1401ab726
cmp qword [rbx + 0x20], 0
je 0x1401ab4f2
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
lea r8, [rbp - 0x69]
lea rdx, [rbp - 0x61]
call qword [rax]
mov r13d, 1
xor r9d, r9d
mov r12d, r9d
xor sil, sil
jmp 0x1401ab50c
mov rdi, qword [rbp - 0x49]
jmp 0x1401ab50c
xor r9d, r9d
test r13d, r13d
je 0x1401ab538
mov qword [rsp + 0x28], r9
mov rax, qword [rbp - 0x69]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 0x61]
mov r8d, r13d
mov edx, 1
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
xor r9d, r9d
mov qword [rsp + 0x30], r9
test r15, r15
jne 0x1401ab556
mov dword [rsp + 0x28], r9d
mov dword [rsp + 0x20], r9d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
jmp 0x1401ab579
mov edx, dword [rdi]
xor eax, eax
mov rcx, r14
mov rdi, r15
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], edx
mov r9, qword [rbp - 0x59]
mov rdx, r15
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov edi, eax
test eax, eax
je 0x1401ab59b
xor edx, edx
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov edi, eax
test eax, eax
jne 0x1401ab5ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f00
mov r9d, 0
je 0x1401ab503
test edi, edi
je 0x1401ab69b
mov qword [rsp + 0x28], 0
lea rax, [rbp - 0x71]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x79]
xor r8d, r8d
mov edx, 0x20000013
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov edi, eax
test eax, eax
je 0x1401ab69b
mov eax, dword [rbp - 0x79]
sub eax, 0xc8
je 0x1401ab698
sub eax, 0xc9
je 0x1401ab63a
cmp eax, 6
jne 0x1401ab698
lea r9, [rbp - 0x6d]
lea r8, [rbp - 0x51]
lea rdx, [rbp - 0x75]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryAuthSchemes]
mov edi, eax
test eax, eax
je 0x1401ab631
mov ecx, dword [rbp - 0x75]
call fcn.1401ac380
mov r13d, eax
cmp r12d, 0x197
jmp 0x1401ab696
lea r9, [rbp - 0x6d]
lea r8, [rbp - 0x51]
lea rdx, [rbp - 0x75]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryAuthSchemes]
mov edi, eax
test eax, eax
je 0x1401ab68f
mov ecx, dword [rbp - 0x75]
call fcn.1401ac380
mov r8d, eax
test eax, eax
jne 0x1401ab66a
mov sil, 1
jmp 0x1401ab68f
mov qword [rsp + 0x28], 0
mov rax, qword [rbp - 0x69]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 0x61]
mov edx, dword [rbp - 0x6d]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
mov edi, eax
cmp r12d, 0x191
jne 0x1401ab69b
mov sil, 1
mov r12d, dword [rbp - 0x79]
test edi, edi
je 0x1401ab6b0
test sil, sil
mov rdi, qword [rbp - 0x49]
je 0x1401ab509
cmp dword [rbp - 0x79], 0xc8
je 0x1401ab726
mov qword [rbp - 1], 0xf
mov qword [rbp - 9], 0
mov byte [rbp - 0x19], 0
mov r8d, 0x1b
lea rdx, str.Authentication_proxy_fails.
lea rcx, [rbp - 0x19]
call fcn.1400243d0
nop
lea rax, [rbp - 0x19]
cmp qword [rbp - 1], 0x10
cmovae rax, qword [rbp - 0x19]
mov qword [rbp - 0x59], rax
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x39]
call fcn.140251b88
lea rdx, vtable.Cxx::Network::Exception::CNetworkException.0
mov qword [rbp - 0x39], rdx
mov dword [rbp - 0x21], 7
lea rdx, [0x1403df7a0]
lea rcx, [rbp - 0x39]
call fcn.1402510b4
nop
mov rdx, qword [rbp - 0x69]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401ab746
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x61]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r14d
dec r14d
test r14d, r14d
jg 0x1401ab765
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.140250fd0
add rsp, 0xd8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret