Function at 0x1400ea820
Capabilities:
Check http status code

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x10], rdx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x3f0
mov qword [r11 - 0x210], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rsi, r9
mov rbx, r8
mov rdi, rdx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
mov rax, qword [r8]
test rax, rax
je 0x1400eb142
cmp dword [rax + 0x20], 0xc8
jne 0x1400eaf6c
lea rax, [r11 - 0x68]
mov qword [r11 + 0x18], rax
mov qword [r11 - 0x30], r12
mov rdx, qword [r8]
add rdx, 0x38
lea rcx, [r11 - 0x2a0]
call fcn.1400e1c30
nop
mov r9b, 1
lea r8, [rsp + 0x3b0]
lea rdx, [rsp + 0x178]
lea rcx, [rsp + 0xb8]
call fcn.14004fb10
nop
mov rbx, qword [rsp + 0x180]
test rbx, rbx
je 0x1400ea8f0
mov eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400ea8f0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400ea8f0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
lea rax, [rsp + 0x100]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x430], r12d
mov dword [rsp + 0x434], 4
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x100], xmm0
mov qword [rsp + 0x110], r12
movzx r9d, byte [rsp + 0x430]
lea r8, [rsp + 0x438]
lea rdx, [rsp + 0x430]
lea rcx, [rsp + 0x100]
call fcn.140070210
nop
mov byte [rsp + 0x20], 0
mov r9b, 0x20
mov r8d, 0xffffffff
lea rdx, [rsp + 0x228]
lea rcx, [rsp + 0xb8]
call fcn.14003dbe0
nop
mov r9d, 0x1a
lea r8, str.Got_response_from_daemon:
xor edx, edx
mov rcx, rax
call fcn.14004b8d0
mov qword [rsp + 0x198], r12
mov qword [rsp + 0x1a0], r12
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x188], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x198], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov dword [rsp + 0x30], 2
lea r9, [rsp + 0x100]
mov r8d, 5
lea rdx, [rsp + 0x188]
lea rcx, [0x140349580]
call fcn.140190720
nop
mov rdx, qword [rsp + 0x240]
cmp rdx, 0x10
jb 0x1400eaa2a
inc rdx
mov rcx, qword [rsp + 0x228]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400eaa25
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400eb1fa
call fcn.1401d6ea0
cmp byte [rsp + 0x448], 0
je 0x1400eae29
movdqa xmm0, xmmword [0x1402563b0]
movdqu xmmword [rsp + 0x1b8], xmm0
mov byte [rsp + 0x1a8], 0
mov r8d, 6
lea rdx, str.status
lea rcx, [rsp + 0x1a8]
call fcn.1400399d0
nop
lea rdx, [rsp + 0x1a8]
lea rcx, [rsp + 0xb8]
call fcn.140039dd0
lea rdx, [rsp + 0x98]
mov rcx, rax
call fcn.1400218d0
nop
mov rdx, qword [rsp + 0x1c0]
cmp rdx, 0x10
jb 0x1400eaad5
inc rdx
mov rcx, qword [rsp + 0x1a8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400eaad0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400eb200
call fcn.1401d6ea0
lea rdx, [rsp + 0x98]
mov rcx, qword [rsp + 0x98]
mov r8, qword [rsp + 0xb0]
cmp r8, 0x10
cmovae rdx, rcx
cmp qword [rsp + 0xa8], 2
jne 0x1400eab62
movzx eax, byte [rdx]
cmp al, byte [0x140253d18]
jne 0x1400eab1c
movzx eax, byte [rdx + 1]
cmp al, byte [0x140253d19]
jne 0x1400eab1c
mov eax, r12d
jmp 0x1400eab21
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1400eab62
cmp r8, 0x10
jb 0x1400eae29
lea rdx, [r8 + 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400eab58
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400eb206
call fcn.1401d6ea0
jmp 0x1400eae29
lea rax, [rsp + 0x118]
mov qword [rsp + 0x430], rax
mov dword [rsp + 0x88], r12d
mov dword [rsp + 0x8c], 4
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x118], xmm0
mov qword [rsp + 0x128], r12
movzx r9d, byte [rsp + 0x430]
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x118]
call fcn.140070210
nop
movdqa xmm0, xmmword [0x1402563b0]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], 0
mov dword [rsp + 0x30], 6
mov rdx, qword [rsi + 0x10]
add rdx, 0x1d
lea rcx, [rsp + 0x68]
call fcn.140054f40
mov r14, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0x10
jb 0x1400eabfb
mov rsi, qword [rsi]
mov r15, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
mov rax, rcx
sub rax, r15
cmp r14, rax
ja 0x1400eac45
lea rax, [r15 + r14]
mov qword [rsp + 0x78], rax
lea rbx, [rsp + 0x68]
cmp rcx, 0x10
cmovae rbx, qword [rsp + 0x68]
lea rcx, [rbx + r15]
mov r8, r14
mov rdx, rsi
call fcn.1401f4fc0
lea rax, [r14 + rbx]
mov byte [rax + r15], 0
jmp 0x1400eac5d
mov qword [rsp + 0x20], r14
mov r9, rsi
xor r8d, r8d
mov rdx, r14
lea rcx, [rsp + 0x68]
call fcn.14001f2b0
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x80]
mov rax, rdx
sub rax, rcx
cmp rax, 0x1d
jb 0x1400eacac
lea rax, [rcx + 0x1d]
mov qword [rsp + 0x78], rax
lea rbx, [rsp + 0x68]
cmp rdx, 0x10
cmovae rbx, qword [rsp + 0x68]
add rbx, rcx
mov r8d, 0x1d
lea rdx, str.___Expected_status__OK___got
mov rcx, rbx
call fcn.1401f4fc0
mov byte [rbx + 0x1d], 0
jmp 0x1400eaccd
mov qword [rsp + 0x20], 0x1d
lea r9, str.___Expected_status__OK___got
xor r8d, r8d
lea edx, [r8 + 0x1d]
lea rcx, [rsp + 0x68]
call fcn.14001f2b0
lea rdx, [rsp + 0x98]
cmp qword [rsp + 0xb0], 0x10
cmovae rdx, qword [rsp + 0x98]
mov r8, qword [rsp + 0xa8]
lea rcx, [rsp + 0x68]
call fcn.140039940
mov qword [rsp + 0x1d8], r12
mov qword [rsp + 0x1e0], r12
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x1c8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x1d8], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov dword [rsp + 0x30], reloc.WS2_32.dll_ntohl
lea r9, [rsp + 0x118]
mov r8d, 3
lea rdx, [rsp + 0x1c8]
lea rcx, [0x140349580]
call fcn.140190720
nop
mov rdx, qword [rsp + 0x80]
cmp rdx, 0x10
jb 0x1400ead9a
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ead95
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400eb20c
call fcn.1401d6ea0
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov byte [rdi], al
mov byte [rdi + 0x18], al
mov dword [rsp + 0x30], ntohl
mov rdx, qword [rsp + 0xb0]
cmp rdx, 0x10
jb 0x1400eadfb
inc rdx
mov rcx, qword [rsp + 0x98]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400eadf6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400eb212
call fcn.1401d6ea0
movdqa xmm0, xmmword [0x1402563b0]
movdqu xmmword [rsp + 0xa8], xmm0
mov byte [rsp + 0x98], 0
lea rcx, [rsp + 0xb8]
call fcn.14002ca60
mov rax, rdi
jmp 0x1400eb1e2
lea rdx, [rsp + 0xb8]
lea rcx, [rsp + 0x218]
call fcn.140028360
mov rbx, rax
mov qword [rsp + 0x430], rax
movdqa xmm0, xmmword [0x1402563b0]
movdqu xmmword [rsp + 0x1f8], xmm0
mov byte [rsp + 0x1e8], 0
mov r8d, 4
lea rdx, str.outs
lea rcx, [rsp + 0x1e8]
call fcn.1400399d0
nop
lea rdx, [rsp + 0x1e8]
mov rcx, rbx
call fcn.140039dd0
nop
mov qword [rsp + 0xc8], r12
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xd0], xmm0
mov dword [rsp + 0x30], 0x22
lea rdx, [rsp + 0xc8]
mov rcx, rax
call fcn.1400e4e00
nop
mov rdx, qword [rsp + 0x200]
cmp rdx, 0x10
jb 0x1400eaeff
inc rdx
mov rcx, qword [rsp + 0x1e8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400eaef9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400eb218
call fcn.1401d6ea0
nop
mov rcx, rbx
call fcn.14002ca60
mov rax, qword [rsp + 0xc8]
mov qword [rdi], rax
mov rax, qword [rsp + 0xd0]
mov qword [rdi + 8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rdi + 0x10], rax
mov qword [rsp + 0xc8], r12
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xd0], xmm0
mov byte [rdi + 0x18], 1
mov dword [rsp + 0x30], reloc.WS2_32.dll_send
lea rcx, [rsp + 0xb8]
call fcn.14002ca60
mov rax, rdi
jmp 0x1400eb1e2
lea rax, [0x140257ad0]
mov qword [rsp + 0x270], rax
lea rax, [0x140257ad8]
mov qword [rsp + 0x280], rax
lea rax, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov qword [rsp + 0x308], rax
mov dword [rsp + 0x30], 0x80
xor r8d, r8d
lea rdx, [rsp + 0x288]
lea rcx, [rsp + 0x270]
call fcn.14006c450
nop
mov rax, qword [rsp + 0x270]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x270], rax
mov rax, qword [rsp + 0x270]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x26c], edx
lea rcx, [rsp + 0x288]
call fcn.140028730
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + 0x288], rax
mov qword [rsp + 0x2f0], r12
mov dword [rsp + 0x2f8], r12d
mov r8, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0x10
jb 0x1400eb028
mov rsi, qword [rsi]
mov rdx, rsi
lea rcx, [rsp + 0x280]
call fcn.14001e4e0
lea rdx, str.___got_status_code
mov rcx, rax
call fcn.140019480
mov rcx, qword [rbx]
mov edx, dword [rcx + 0x20]
mov rcx, rax
call fcn.140061b90
mov rax, qword [rbx]
cmp qword [rax + 0x48], 0
je 0x1400eb090
lea rdx, str.__body:
lea rcx, [rsp + 0x280]
call fcn.140019480
mov rdx, qword [rbx]
add rdx, 0x38
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x1400eb088
mov rdx, qword [rdx]
mov rcx, rax
call fcn.14001e4e0
lea rax, [rsp + 0x148]
mov qword [rsp + 0x430], rax
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x44], 4
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x148], xmm0
mov qword [rsp + 0x158], r12
movzx r9d, byte [rsp + 0x430]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x148]
call fcn.140070210
nop
lea rdx, [rsp + 0x248]
lea rcx, [rsp + 0x288]
call fcn.140081830
nop
lea r9, [rsp + 0x148]
mov r8d, 3
lea rdx, [rsp + 0x248]
lea rcx, [0x140349580]
call fcn.140190720
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov byte [rdi], al
mov byte [rdi + 0x18], al
lea rcx, [rsp + 0x270]
call fcn.1400623a0
jmp 0x1400eb1df
lea rax, [rsp + 0x160]
mov qword [rsp + 0x430], rax
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x3c], 4
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x160], xmm0
mov qword [rsp + 0x170], r12
movzx r9d, byte [rsp + 0x430]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x160]
call fcn.140070210
nop
lea r8, str.___failed_to_open_socket_or_timed_out.
mov rdx, rsi
lea rcx, [rsp + 0x390]
call fcn.1400e1e80
nop
lea r9, [rsp + 0x160]
mov r8d, 3
mov rdx, rax
lea rcx, [0x140349580]
call fcn.140190720
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov byte [rdi], al
mov byte [rdi + 0x18], al
mov rax, rdi
mov rbx, qword [rsp + 0x420]
add rsp, 0x3f0
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call fcn.1401fe6e4
nop
call fcn.1401fe6e4
nop
call fcn.1401fe6e4
nop
call fcn.1401fe6e4
nop
call fcn.1401fe6e4
nop
call fcn.1401fe6e4
int3