Function at 0x14016f5e0
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
cmp dword [rcx + 0x5c], 0xffffffff
mov esi, r9d
mov r15d, dword [0x140461770]
mov r14d, r8d
movsxd rdi, dword [0x140461784]
mov ebp, edx
mov rbx, rcx
je 0x14016f942
test r8d, r8d
je 0x14016f942
cmp qword [rcx + 0x50], 0
jne 0x14016f672
mov edx, 1
mov ecx, 0x320
call fcn.140032b90
mov qword [rbx + 0x50], rax
test rax, rax
jne 0x14016f653
mov dword [rbx + 0x5c], 0xffffffff
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov dword [rbx + 0x58], 0x64
mov dword [rbx + 0x5c], 1
mov dword [rax], 1
mov rax, qword [rbx + 0x50]
mov dword [rax + 4], 1
cmp esi, 3
jne 0x14016f6a8
cmp dword [rbx], 1
jne 0x14016f6a8
mov rax, qword [rbx + 0x50]
mov dword [rbx + 0x5c], 1
mov dword [rax], 1
mov rcx, qword [rbx + 0x50]
mov eax, dword [rbx + 0x24]
mov dword [rcx + 4], eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r13
xor r13d, r13d
cmp rbx, qword [0x140461768]
jne 0x14016f6ed
mov eax, dword [0x140461760]
inc eax
cmp ebp, eax
jne 0x14016f6ed
cmp esi, 1
jne 0x14016f6ed
mov eax, dword [rbx + 0x5c]
dec eax
cmp edi, eax
jge 0x14016f71d
mov rax, qword [rbx + 0x50]
mov eax, dword [rax + rdi*8]
add eax, r15d
cmp ebp, eax
jl 0x14016f71d
mov r15d, eax
inc edi
jmp 0x14016f71d
mov r8d, dword [rbx + 0x5c]
mov r15d, 1
dec r8d
mov edi, r13d
test r8d, r8d
jle 0x14016f71d
mov rcx, qword [rbx + 0x50]
mov edx, dword [rcx]
add edx, r15d
cmp ebp, edx
jl 0x14016f71d
inc edi
add rcx, 8
mov r15d, edx
cmp edi, r8d
jl 0x14016f706
mov rax, qword [rbx + 0x50]
movsxd r12, edi
lea rdx, [rax + r12*8]
mov eax, r14d
neg eax
cmp esi, 2
cmovne eax, r14d
add dword [rdx + 4], eax
cmp esi, 1
jne 0x14016f998
inc dword [rdx]
mov eax, dword [rbx + 0x5c]
mov ecx, dword [rbx + 0x58]
inc eax
cmp eax, ecx
jl 0x14016f797
mov rsi, qword [rbx + 0x50]
lea eax, [rcx + rcx*2]
cdq
mov rcx, rsi
sub eax, edx
sar eax, 1
movsxd rdx, eax
shl rdx, 3
mov dword [rbx + 0x58], eax
call fcn.140005658
mov qword [rbx + 0x50], rax
test rax, rax
jne 0x14016f797
test rsi, rsi
je 0x14016f78b
cmp dword [0x14045b3f8], r13d
jne 0x14016f78b
mov rcx, rsi
call fcn.140005660
mov dword [rbx + 0x5c], 0xffffffff
jmp 0x14016f938
mov rax, qword [rbx + 0x50]
lea rsi, [rax + r12*8]
mov eax, dword [rax + r12*8]
cmp eax, 0x320
jl 0x14016f8f4
mov eax, dword [rbx + 0x5c]
lea rcx, [rsi + 8]
sub eax, edi
mov rdx, rsi
movsxd r8, eax
shl r8, 3
call fcn.140003740
mov edi, r13d
mov esi, r13d
cmp r15d, dword [rbx]
jge 0x14016f8c5
nop word [rax + rax]
cmp esi, 0x190
jge 0x14016f8c5
mov r8d, reloc.WSOCK32.dll_send
mov edx, r15d
mov rcx, rbx
call fcn.140170f10
test rax, rax
je 0x14016f78b
sub r15d, dword [rbx + 0x40]
mov ecx, dword [rbx + 0x44]
mov r8d, ecx
sub r8d, dword [rbx + 0x40]
mov r10, qword [rax + 0x28]
movsxd rdx, r15d
movsxd r9, r15d
lea r15d, [rcx + 1]
mov ecx, r8d
sub ecx, edx
inc ecx
add ecx, esi
cmp ecx, 0x190
jle 0x14016f843
mov r8d, edx
sub r8d, esi
mov esi, 0x190
add r8d, 0x18f
jmp 0x14016f845
mov esi, ecx
cmp dword [rbx + 0x19b8], r13d
je 0x14016f899
movsxd rax, r8d
mov r8, rdx
cmp rax, rdx
jge 0x14016f8bc
lea rdx, [rax + 5]
sub r8, rax
lea rdx, [r10 + rdx*4]
nop dword [rax]
nop dword [rax + rax]
mov ecx, dword [rdx]
mov rax, 0xffffffffffffffff
btr ecx, 0x1f
add rcx, r10
inc rax
cmp byte [rcx + rax], r13b
jne 0x14016f880
inc edi
add rdx, 4
add edi, eax
sub r8, 1
jne 0x14016f870
jmp 0x14016f8bc
test edx, edx
jne 0x14016f8a3
mov edx, dword [r10 + 0xc]
jmp 0x14016f8ac
mov edx, dword [r10 + r9*4 + 0x10]
btr edx, 0x1f
movsxd rax, r8d
mov ecx, dword [r10 + rax*4 + 0x14]
btr ecx, 0x1f
sub edx, ecx
add edi, edx
cmp r15d, dword [rbx]
jl 0x14016f7e0
mov rax, qword [rbx + 0x50]
mov qword [0x140461768], r13
mov dword [rax + r12*8], esi
mov rax, qword [rbx + 0x50]
sub dword [rax + r12*8 + 8], esi
mov rax, qword [rbx + 0x50]
mov dword [rax + r12*8 + 4], edi
mov rax, qword [rbx + 0x50]
sub dword [rax + r12*8 + 0xc], edi
inc dword [rbx + 0x5c]
jmp 0x14016f938
cmp eax, 0x190
jl 0x14016f91e
mov ecx, dword [rbx + 0x5c]
lea eax, [rcx - 1]
cmp edi, eax
jne 0x14016f91e
mov edx, dword [rbx]
mov eax, edx
sub eax, ebp
cmp eax, 1
jg 0x14016f91e
lea eax, [rcx + 1]
mov dword [rbx + 0x5c], eax
cmp ebp, edx
jne 0x14016f953
mov qword [rsi + 8], r13
mov qword [0x140461768], rbx
mov dword [0x140461760], ebp
mov dword [0x140461770], r15d
mov dword [0x140461784], edi
mov r12, qword [rsp + 0x50]
mov r13, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov r8d, reloc.WSOCK32.dll_send
mov rcx, rbx
call fcn.140170f10
test rax, rax
je 0x14016f78b
mov rcx, qword [rax + 0x28]
movsxd rax, dword [rcx + 0x10]
cmp eax, 1
jne 0x14016f97c
mov eax, dword [rcx + 0xc]
jmp 0x14016f984
mov eax, dword [rcx + rax*4 + 0xc]
btr eax, 0x1f
sub eax, dword [rcx + 8]
sub dword [rsi + 4], eax
dec dword [rsi]
mov dword [rsi + 0xc], eax
mov dword [rsi + 8], 1
jmp 0x14016f91e
cmp esi, 2
jne 0x14016f91e
mov r8d, dword [rdx]
dec r8d
mov qword [0x140461768], r13
mov dword [rdx], r8d
mov r9d, dword [rbx + 0x5c]
dec r9d
cmp edi, r9d
jge 0x14016f9da
mov ecx, dword [rdx + 8]
add ecx, r8d
cmp ecx, 0x190
jg 0x14016f9da
mov rax, qword [rbx + 0x50]
inc edi
movsxd rcx, edi
mov r9d, dword [rax + rcx*8]
lea rdx, [rax + rcx*8]
jmp 0x14016fa1f
test edi, edi
jne 0x14016fa04
test r8d, r8d
jg 0x14016f938
mov rcx, qword [rbx + 0x50]
movsxd r8, r9d
shl r8, 3
mov dword [rbx + 0x5c], r9d
lea rdx, [rcx + 8]
call fcn.140003740
jmp 0x14016f938
mov r9d, r8d
cmp r8d, 0xa
jle 0x14016fa1f
mov ecx, dword [rdx - 8]
add ecx, r8d
cmp ecx, 0x190
jg 0x14016f938
mov eax, dword [rdx + 4]
add dword [rdx - 4], eax
add dword [rdx - 8], r9d
mov edx, dword [rbx + 0x5c]
dec edx
mov dword [rbx + 0x5c], edx
cmp edi, edx
jge 0x14016f938
mov rax, qword [rbx + 0x50]
sub edx, edi
movsxd r8, edx
movsxd rcx, edi
shl r8, 3
lea rcx, [rax + rcx*8]
lea rdx, [rcx + 8]
call fcn.140003740
jmp 0x14016f938