// File: /workspace/github_cpp_makefile_star2_O2/CoinBlack[P]blackcoin-seeder/main.cpp
// Function: ThreadSeeder
void* ThreadSeeder(void*) {
  vector<string> vDnsSeeds;
  for (const string& seed: vSeeds) {
    size_t len = seed.size();
    if (len > 6 && !seed.compare(len - 6, 6, ".onion")) {
      db.Add(CService(seed.c_str(), GetDefaultPort()), true);
    } else {
      vDnsSeeds.push_back(seed);
    }
  }
  do {
    for (const string& seed: vDnsSeeds) {
      vector<CNetAddr> ips;
      LookupHost(seed.c_str(), ips);
      for (vector<CNetAddr>::iterator it = ips.begin(); it != ips.end(); it++) {
        db.Add(CService(*it, GetDefaultPort()), true);
      }
    }
    Sleep(1800000);
  } while(1);
  return nullptr;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
xorps %xmm0, %xmm0
leaq 0x50(%rsp), %rbx
andq $0x0, 0x10(%rbx)
movaps %xmm0, (%rbx)
movq 0x10856(%rip), %r14     # 0x1d810
movq 0x10857(%rip), %r13     # 0x1d818
leaq 0x5d8b(%rip), %r15      # 0x12d53
pushq $0x6
popq %r12
leaq 0xa0(%rsp), %rbp
cmpq %r13, %r14
je 0xd07f
movq 0x8(%r14), %rsi
cmpq $0x7, %rsi
jb 0xcffd
addq $-0x6, %rsi
movq %r14, %rdi
movq %r12, %rdx
movq %r15, %rcx
callq 0x3540
testl %eax, %eax
je 0xd00e
movq %rbx, %rdi
movq %r14, %rsi
callq 0xe130
addq $0x20, %r14
jmp 0xcfd4
movq (%r14), %rsi
cmpb $0x0, 0x104c8(%rip)     # 0x1d4e0
leaq 0x104b3(%rip), %rax     # 0x1d4d2
movzwl (%rax), %eax
movl $0x3d62, %ecx           # imm = 0x3D62
movl $0x6472, %edx           # imm = 0x6472
cmovnel %edx, %ecx
testw %ax, %ax
cmovnel %eax, %ecx
movzwl %cx, %edx
leaq 0x88(%rsp), %rdi
xorl %ecx, %ecx
callq 0x8e96
movzwl 0x98(%rsp), %eax
movw %ax, 0x10(%rsp)
movups 0x88(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %rbp, %rdi
pushq $0x1
popq %rsi
callq 0x9cfc
leaq 0x10476(%rip), %rdi     # 0x1d4e8
movq %rbp, %rsi
pushq $0x1
popq %rdx
callq 0xe0f2
jmp 0xd008
leaq 0x20(%rsp), %rbx
pushq $0x1
popq %rbp
leaq 0x70(%rsp), %r14
leaq 0xa0(%rsp), %r15
pushq $0x1
popq %r12
leaq 0x10449(%rip), %r13     # 0x1d4e8
movq 0x50(%rsp), %rax
movq 0x58(%rsp), %rcx
movq %rcx, 0x40(%rsp)
cmpq 0x40(%rsp), %rax
je 0xd168
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
andq $0x0, 0x30(%rsp)
movq %rax, 0x48(%rsp)
movq (%rax), %rdi
movq %rbx, %rsi
xorl %edx, %edx
movl %ebp, %ecx
callq 0x6d80
movq 0x20(%rsp), %rbx
cmpq 0x28(%rsp), %rbx
je 0xd14d
cmpb $0x0, 0x103f2(%rip)     # 0x1d4e0
leaq 0x103dd(%rip), %rax     # 0x1d4d2
movzwl (%rax), %eax
movl $0x3d62, %ecx           # imm = 0x3D62
movl $0x6472, %edx           # imm = 0x6472
cmovnel %edx, %ecx
testw %ax, %ax
cmovnel %eax, %ecx
movzwl %cx, %edx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x8d50
movzwl 0x80(%rsp), %eax
movw %ax, 0x10(%rsp)
movups 0x70(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %r15, %rdi
movq %r12, %rsi
callq 0x9cfc
movq %r13, %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0xe0f2
addq $0x10, %rbx
jmp 0xd0e0
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
callq 0x978a
movq 0x48(%rsp), %rax
addq $0x20, %rax
jmp 0xd0ae
movl $0x1b7740, %edi         # imm = 0x1B7740
callq 0xc926
jmp 0xd09f
jmp 0xd18c
jmp 0xd17d
jmp 0xd18c
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x978a
jmp 0xd18f
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0xe0d0
movq %rbx, %rdi
callq 0x36d0