// File: mooncoincore[P]mooncoin-seeder/main.cpp
// Function: ThreadSeeder
void* ThreadSeeder(void*) {
  if (!fTestNet){
    db.Add(CService("45.32.217.146.vultr.com", 44664), true);
  }else{
    db.Add(CService("45.32.90.235", 14664), true);
    db.Add(CService("217.163.29.38", 14664), 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, 0x26d8a(%rip)     # 0x4a5a0
jne 0x23874
leaq -0x48(%rbp), %rdi
leaq 0x10576(%rip), %rsi     # 0x33d99
movl $0xae78, %edx           # imm = 0xAE78
xorl %ecx, %ecx
callq 0x149b0
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 0x189a0
leaq 0x26d47(%rip), %rdi     # 0x4a5a8
leaq -0x30(%rbp), %rsi
movl $0x1, %edx
callq 0x25760
jmp 0x23934
leaq -0x88(%rbp), %rdi
leaq 0x1052f(%rip), %rsi     # 0x33db1
movl $0x3948, %edx           # imm = 0x3948
xorl %ecx, %ecx
callq 0x149b0
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 0x189a0
leaq 0x26ce5(%rip), %rdi     # 0x4a5a8
leaq -0x70(%rbp), %rsi
movl $0x1, %edx
callq 0x25760
leaq -0xc8(%rbp), %rdi
leaq 0x104df(%rip), %rsi     # 0x33dbe
movl $0x3948, %edx           # imm = 0x3948
xorl %ecx, %ecx
callq 0x149b0
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 0x189a0
leaq 0x26c85(%rip), %rdi     # 0x4a5a8
leaq -0xb0(%rbp), %rsi
movl $0x1, %edx
callq 0x25760
jmp 0x23936
movl $0x0, -0xcc(%rbp)
movq 0x26b91(%rip), %rdi     # 0x4a4d8
movslq -0xcc(%rbp), %rax
shlq $0x5, %rax
addq %rax, %rdi
leaq 0xfdd9(%rip), %rsi      # 0x33735
callq 0x257e0
testb $0x1, %al
jne 0x2396a
jmp 0x23adc
leaq -0xe8(%rbp), %rdi
movq %rdi, -0x158(%rbp)
callq 0x15360
movq 0x26b54(%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 0xf970
jmp 0x239af
leaq -0xe8(%rbp), %rdi
callq 0x15e30
movq %rax, -0x100(%rbp)
leaq -0xe8(%rbp), %rdi
callq 0x15cb0
movq %rax, -0x108(%rbp)
leaq -0x100(%rbp), %rdi
leaq -0x108(%rbp), %rsi
callq 0x25810
testb $0x1, %al
jne 0x239f1
jmp 0x23abc
leaq -0x100(%rbp), %rdi
callq 0x25850
movq %rax, -0x168(%rbp)
movzbl 0x26b95(%rip), %edi     # 0x4a5a0
andl $0x1, %edi
callq 0x23b10
movw %ax, -0x15a(%rbp)
jmp 0x23a1c
movq -0x168(%rbp), %rsi
movw -0x15a(%rbp), %ax
movzwl %ax, %edx
leaq -0x148(%rbp), %rdi
callq 0x146f0
jmp 0x23a3b
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 0x189a0
jmp 0x23a66
leaq 0x26b3b(%rip), %rdi     # 0x4a5a8
leaq -0x130(%rbp), %rsi
movl $0x1, %edx
callq 0x25760
jmp 0x23a80
jmp 0x23a82
leaq -0x100(%rbp), %rdi
xorl %esi, %esi
callq 0x25870
movq %rax, -0x150(%rbp)
jmp 0x239c2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf0(%rbp)
movl %eax, -0xf4(%rbp)
leaq -0xe8(%rbp), %rdi
callq 0x15470
jmp 0x23afd
leaq -0xe8(%rbp), %rdi
callq 0x15470
movl -0xcc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xcc(%rbp)
jmp 0x23940
movl $0x1b7740, %edi         # imm = 0x1B7740
callq 0x22c10
movb $0x1, %al
testb $0x1, %al
jne 0x23936
jmp 0x23af2
xorl %eax, %eax
addq $0x180, %rsp            # imm = 0x180
popq %rbp
retq
movq -0xf0(%rbp), %rdi
callq 0x47f0
nopl (%rax)