// File: vianna274[P]dropbox/src/Server.cpp
// Function: Dropbox::Server::Server(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
Server::Server(string ipLocal) : connectClientSocket(SERVER_PORT), listenToServersSocket(BACKUPS_PORT)
{
    this->isMain = true;
    this->ipLocal = ipLocal;
    this->ipMain = ipLocal;
    this->backups = {};
    this->usersIp = {};
    this->backupsSockets = {};
    this->status = STATUS_NORMAL;
    initializeUsers();
    initializePorts();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rsi, -0x78(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x68(%rbp)
movq %rdi, %rax
movq %rax, -0x70(%rbp)
callq 0x9900
leaq -0x11(%rbp), %rdi
movq %rdi, -0x60(%rbp)
callq 0x3620
movq -0x68(%rbp), %rdi
movq -0x60(%rbp), %rdx
leaq 0xd6cd(%rip), %rsi      # 0x193f4
callq 0x3480
jmp 0xbd2e
leaq -0x11(%rbp), %rdi
callq 0x33e0
movq -0x70(%rbp), %rdi
addq $0x20, %rdi
callq 0x6890
movq -0x70(%rbp), %rdi
addq $0x48, %rdi
callq 0x6890
movq -0x70(%rbp), %rdi
addq $0x70, %rdi
callq 0x6890
movq -0x70(%rbp), %rdi
addq $0x98, %rdi
callq 0x6890
movq -0x70(%rbp), %rdi
addq $0xc0, %rdi
callq 0x6890
movq -0x70(%rbp), %rdi
addq $0xe8, %rdi
movq %rdi, -0x80(%rbp)
movl $0xfa0, %esi            # imm = 0xFA0
callq 0x177a0
jmp 0xbd99
movq -0x70(%rbp), %rdi
addq $0x130, %rdi            # imm = 0x130
movq %rdi, -0x88(%rbp)
movl $0x2328, %esi           # imm = 0x2328
callq 0x177a0
jmp 0xbdb7
movq -0x70(%rbp), %rdi
addq $0x958, %rdi            # imm = 0x958
movq %rdi, -0xb8(%rbp)
callq 0x11860
movq -0x70(%rbp), %rdi
addq $0x970, %rdi            # imm = 0x970
movq %rdi, -0xb0(%rbp)
callq 0x11880
movq -0x70(%rbp), %rdi
addq $0x988, %rdi            # imm = 0x988
movq %rdi, -0xa8(%rbp)
callq 0x11880
movq -0x70(%rbp), %rdi
addq $0x9a0, %rdi            # imm = 0x9A0
movq %rdi, -0xa0(%rbp)
callq 0x118a0
movq -0x70(%rbp), %rdi
addq $0x9b8, %rdi            # imm = 0x9B8
movq %rdi, -0x90(%rbp)
callq 0x3490
movq -0x70(%rbp), %rdi
addq $0x9d8, %rdi            # imm = 0x9D8
movq %rdi, -0x98(%rbp)
callq 0x3490
movq -0x70(%rbp), %rax
movq -0x90(%rbp), %rdi
movq -0x78(%rbp), %rsi
movb $0x1, 0x9f8(%rax)
callq 0x3060
jmp 0xbe5e
movq -0x78(%rbp), %rsi
movq -0x70(%rbp), %rdi
addq $0x9d8, %rdi            # imm = 0x9D8
callq 0x3060
jmp 0xbe74
leaq -0x38(%rbp), %rdi
callq 0x118c0
movq -0x70(%rbp), %rdi
addq $0x970, %rdi            # imm = 0x970
movq -0x38(%rbp), %rsi
movq -0x30(%rbp), %rdx
callq 0x118e0
jmp 0xbe97
leaq -0x48(%rbp), %rdi
callq 0x118c0
movq -0x70(%rbp), %rdi
addq $0x988, %rdi            # imm = 0x988
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
callq 0x118e0
jmp 0xbeba
leaq -0x58(%rbp), %rdi
callq 0x11930
movq -0x70(%rbp), %rdi
addq $0x9a0, %rdi            # imm = 0x9A0
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
callq 0x11950
jmp 0xbedd
movq -0x70(%rbp), %rdi
movl $0x18, 0x180(%rdi)
callq 0xbfc0
jmp 0xbef2
movq -0x70(%rbp), %rdi
callq 0xc640
jmp 0xbefd
addq $0xc0, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0x11(%rbp), %rdi
callq 0x33e0
jmp 0xbfae
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
jmp 0xbfa5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
jmp 0xbf9c
movq -0x98(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
callq 0x3280
movq -0x90(%rbp), %rdi
callq 0x3280
movq -0xa0(%rbp), %rdi
callq 0x119a0
movq -0xa8(%rbp), %rdi
callq 0x11a00
movq -0xb0(%rbp), %rdi
callq 0x11a00
movq -0xb8(%rbp), %rdi
callq 0x11a60
movq -0x88(%rbp), %rdi
callq 0x17770
movq -0x80(%rbp), %rdi
callq 0x17770
movq -0x68(%rbp), %rdi
callq 0x3280
movq -0x20(%rbp), %rdi
callq 0x3610
nopw (%rax,%rax)