// File: tenup-coin[P]seeder/main.cpp
// Function: ThreadSeeder
void* ThreadSeeder(void*) {
  if (!fTestNet){
    db.Add(CService("168.235.109.113", 51482), true);
    db.Add(CService("168.235.78.242", 51482), true);
    db.Add(CService("176.56.236.202", 51482), true);
  }
  do {
    for (int i=0; seeds[i] != ""; i++) {
      vector<CNetAddr> ips;
      LookupHost(seeds[i].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
movq %rsp, %rbp
subq $0x180, %rsp            # imm = 0x180
movq %rdi, -0x8(%rbp)
testb $0x1, 0x26e3a(%rip)     # 0x4a5a0
jne 0x23883
leaq -0x48(%rbp), %rdi
leaq 0x105be(%rip), %rsi     # 0x33d35
movl $0xc91a, %edx           # imm = 0xC91A
xorl %ecx, %ecx
callq 0x14900
leaq -0x30(%rbp), %rdi
leaq -0x48(%rbp), %rax
movl $0x1, %esi
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movw 0x10(%rax), %ax
movw %ax, 0x10(%rsp)
callq 0x188f0
leaq 0x26df3(%rip), %rdi     # 0x4a5a8
leaq -0x30(%rbp), %rsi
movl $0x1, %edx
callq 0x256b0
leaq -0x88(%rbp), %rdi
leaq 0x10574(%rip), %rsi     # 0x33d45
movl $0xc91a, %edx           # imm = 0xC91A
xorl %ecx, %ecx
callq 0x14900
leaq -0x70(%rbp), %rdi
leaq -0x88(%rbp), %rax
movl $0x1, %esi
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movw 0x10(%rax), %ax
movw %ax, 0x10(%rsp)
callq 0x188f0
leaq 0x26d96(%rip), %rdi     # 0x4a5a8
leaq -0x70(%rbp), %rsi
movl $0x1, %edx
callq 0x256b0
leaq -0xc8(%rbp), %rdi
leaq 0x10526(%rip), %rsi     # 0x33d54
movl $0xc91a, %edx           # imm = 0xC91A
xorl %ecx, %ecx
callq 0x14900
leaq -0xb0(%rbp), %rdi
leaq -0xc8(%rbp), %rax
movl $0x1, %esi
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movw 0x10(%rax), %ax
movw %ax, 0x10(%rsp)
callq 0x188f0
leaq 0x26d36(%rip), %rdi     # 0x4a5a8
leaq -0xb0(%rbp), %rsi
movl $0x1, %edx
callq 0x256b0
jmp 0x23885
movl $0x0, -0xcc(%rbp)
movq 0x26c42(%rip), %rdi     # 0x4a4d8
movslq -0xcc(%rbp), %rax
shlq $0x5, %rax
addq %rax, %rdi
leaq 0xfe7a(%rip), %rsi      # 0x33725
callq 0x25730
testb $0x1, %al
jne 0x238b9
jmp 0x23a2b
leaq -0xe8(%rbp), %rdi
movq %rdi, -0x158(%rbp)
callq 0x152b0
movq 0x26c05(%rip), %rdi     # 0x4a4d8
movslq -0xcc(%rbp), %rax
shlq $0x5, %rax
addq %rax, %rdi
callq 0x41e0
movq -0x158(%rbp), %rsi
movq %rax, %rdi
xorl %edx, %edx
movl $0x1, %ecx
callq 0xf8c0
jmp 0x238fe
leaq -0xe8(%rbp), %rdi
callq 0x15d80
movq %rax, -0x100(%rbp)
leaq -0xe8(%rbp), %rdi
callq 0x15c00
movq %rax, -0x108(%rbp)
leaq -0x100(%rbp), %rdi
leaq -0x108(%rbp), %rsi
callq 0x25760
testb $0x1, %al
jne 0x23940
jmp 0x23a0b
leaq -0x100(%rbp), %rdi
callq 0x257a0
movq %rax, -0x168(%rbp)
movzbl 0x26c46(%rip), %edi     # 0x4a5a0
andl $0x1, %edi
callq 0x23a60
movw %ax, -0x15a(%rbp)
jmp 0x2396b
movq -0x168(%rbp), %rsi
movw -0x15a(%rbp), %ax
movzwl %ax, %edx
leaq -0x148(%rbp), %rdi
callq 0x14640
jmp 0x2398a
movw -0x138(%rbp), %cx
movq %rsp, %rax
movw %cx, 0x10(%rax)
movups -0x148(%rbp), %xmm0
movups %xmm0, (%rax)
leaq -0x130(%rbp), %rdi
movl $0x1, %esi
callq 0x188f0
jmp 0x239b5
leaq 0x26bec(%rip), %rdi     # 0x4a5a8
leaq -0x130(%rbp), %rsi
movl $0x1, %edx
callq 0x256b0
jmp 0x239cf
jmp 0x239d1
leaq -0x100(%rbp), %rdi
xorl %esi, %esi
callq 0x257c0
movq %rax, -0x150(%rbp)
jmp 0x23911
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf0(%rbp)
movl %eax, -0xf4(%rbp)
leaq -0xe8(%rbp), %rdi
callq 0x153c0
jmp 0x23a4c
leaq -0xe8(%rbp), %rdi
callq 0x153c0
movl -0xcc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xcc(%rbp)
jmp 0x2388f
movl $0x1b7740, %edi         # imm = 0x1B7740
callq 0x22b60
movb $0x1, %al
testb $0x1, %al
jne 0x23885
jmp 0x23a41
xorl %eax, %eax
addq $0x180, %rsp            # imm = 0x180
popq %rbp
retq
movq -0xf0(%rbp), %rdi
callq 0x47f0
nopl (%rax,%rax)