Function at 0x140016b54
Capabilities:
Check http status code

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x48]
sub rsp, 0x110
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140176810]
xor rax, rsp
mov qword [rbp + 8], rax
mov rsi, rdx
mov rdi, rcx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x34], r14d
mov dword [rsp + 0x38], 4
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x34]
mov edx, 0x20000013
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x140016ec4
cmp dword [rsp + 0x34], 0xc8
jne 0x140016ec4
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x30]
xor r8d, r8d
lea r15d, [r14 + 0x16]
mov edx, r15d
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140016ec4
lea ecx, [rax + 1]
lea eax, [r14 + 2]
mul rcx
lea r12, [r14 - 1]
cmovo rax, r12
mov rcx, rax
call fcn.1400dbb90
mov rbx, rax
mov r8d, dword [rsp + 0x30]
inc r8d
add r8, r8
xor edx, edx
mov rcx, rax
call fcn.1400ddc70
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x30]
mov r8, rbx
mov edx, r15d
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x140016ec4
lea r15d, [r14 + 7]
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x58], r14
mov word [rsp + 0x48], r14w
cmp word [rbx], r14w
jne 0x140016c74
mov eax, r14d
jmp 0x140016c7c
mov rcx, rbx
call fcn.1400ded00
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140010250
nop
mov rcx, rbx
call fcn.1400dde9c
lea rdi, [0x140137d04]
lea r13, [0x140137d0c]
mov rcx, rdi
call fcn.1400ded00
mov r9, rax
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.140014724
cmp rax, r12
je 0x140016eae
mov rcx, rdi
call fcn.1400ded00
mov r9, rax
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.140014724
mov r9, rax
xor r8d, r8d
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x48]
call fcn.140013198
nop
mov rcx, r13
call fcn.1400ded00
mov r9, rax
mov rdx, r13
lea rcx, [rbp - 0x78]
call fcn.140014724
cmp rax, r12
je 0x140016e13
mov rcx, r13
call fcn.1400ded00
mov r9, rax
mov rdx, r13
lea rcx, [rbp - 0x78]
call fcn.140014724
mov r9, rax
xor r8d, r8d
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x78]
call fcn.140013198
nop
lea rcx, [rbp - 0x18]
call fcn.14002987c
mov rcx, r13
call fcn.1400ded00
mov r9, rax
mov rdx, r13
lea rcx, [rbp - 0x78]
call fcn.140014724
lea r8, [rax + 1]
mov r9, r12
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x78]
call fcn.140013198
nop
lea rcx, [rsp + 0x68]
call fcn.14002987c
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x38]
call fcn.140010008
mov rbx, rax
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x58]
call fcn.140010008
nop
mov rdx, rax
mov rcx, rsi
call fcn.1400092e0
mov rcx, rax
mov rdx, rbx
call fcn.140008d20
nop
cmp qword [rbp - 0x40], 0x10
jb 0x140016dc2
mov rcx, qword [rbp - 0x58]
call fcn.1400400f0
mov qword [rbp - 0x40], 0xf
mov qword [rbp - 0x48], r14
mov byte [rbp - 0x58], r14b
cmp qword [rbp - 0x20], 0x10
jb 0x140016de3
mov rcx, qword [rbp - 0x38]
call fcn.1400400f0
nop
cmp qword [rbp - 0x80], 8
jb 0x140016df4
mov rcx, qword [rsp + 0x68]
call fcn.1400400f0
mov qword [rbp - 0x80], r15
mov qword [rsp + 0x78], r14
mov word [rsp + 0x68], r14w
cmp qword [rbp], 8
jb 0x140016e13
mov rcx, qword [rbp - 0x18]
call fcn.1400400f0
mov rcx, rdi
call fcn.1400ded00
mov r9, rax
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.140014724
lea r8, [rax + 2]
mov r9, r12
lea rdx, [rbp - 0x38]
lea rcx, [rsp + 0x48]
call fcn.140013198
mov rbx, rax
lea rax, [rsp + 0x48]
cmp rax, rbx
je 0x140016e7c
cmp qword [rsp + 0x60], 8
jb 0x140016e5f
mov rcx, qword [rsp + 0x48]
call fcn.1400400f0
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x58], r14
mov word [rsp + 0x48], r14w
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140010474
cmp qword [rbp - 0x20], 8
jb 0x140016e8c
mov rcx, qword [rbp - 0x38]
call fcn.1400400f0
mov rcx, rdi
call fcn.1400ded00
nop
cmp qword [rbp - 0x60], 8
jb 0x140016ca3
mov rcx, qword [rbp - 0x78]
call fcn.1400400f0
jmp 0x140016ca3
cmp qword [rsp + 0x60], 8
jb 0x140016ec0
mov rcx, qword [rsp + 0x48]
call fcn.1400400f0
mov al, 1
jmp 0x140016ec6
xor al, al
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.1400dc400
mov rbx, qword [rsp + 0x160]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret