// File: 4n6ist[P]usn_analytics/lib/usnjrnl.cpp
// Function: UsnJrnl::GetAllDirName()
int UsnJrnl::GetAllDirName() {

  historical_dir hdir;
  uint32_t pid;
  
  // root directory
  hdir.name = "\\";
  hdir.pid = 0;
  hdir.usn = 0;
  path_table.insert(make_pair(5, hdir));

  // directory table
  for(UsnMain x: usnmain_set) {
    if (x.attrs_i & FOLDER) {
      if (x.file_name.size() == 0)
        continue;
      if (x.file_name.find("\\", x.file_name.size()-1) == string::npos) // filename doesn't end with "\"
        continue;
      if (x.file_name == "<Can't Convert>")
        continue;
      if (x.cid == x.pid) // ignore unusual pattern
        continue;
      hdir.name = x.file_name;
      hdir.pid = x.pid;
      hdir.usn = x.usn;
      dir_table.insert(make_pair(x.cid, hdir));
      // hard coding
      if (hdir.name == "Public") {
        hdir.name = "Users";
        hdir.pid = 5;
        hdir.usn = 0;
        dir_table.insert(make_pair(x.cid, hdir));
      } else if (hdir.name == "Default") {
        hdir.name = "Users";
        hdir.pid = 5;
        hdir.usn = 0;
        dir_table.insert(make_pair(x.cid, hdir));
      } else if (hdir.name == "System32") {
        hdir.name = "Windows";
        hdir.pid = 5;
        hdir.usn = 0;
        dir_table.insert(make_pair(x.cid, hdir));
      } else if (hdir.name == "Prefetch") {
        hdir.name = "Windows";
        hdir.pid = 5;
        hdir.usn = 0;
        dir_table.insert(make_pair(x.cid, hdir));
      }
      //fprintf(fp_ofexecuted, "%lld, %s, %lld, %lld\n", x.cid, hdir.name.c_str(), hdir.pid, hdir.usn);
    }
  }
  uint32_t dir_table_size = dir_table.size();

  uint64_t i=1;
  uint64_t progress = dir_table_size / 10;
    
  // fullpath table
  for(auto x : dir_table) {  // x.first is cid, x.second is hdir
    if (i >= progress) {
  	  printf(".");
      progress += dir_table_size / 10;
    }
    ++i;

    hdir = GetHistoricalFileName(x.second, 0);
    path_table.insert(make_pair(x.first, hdir));
    //fprintf(fp_ofopened, "%lld, %s, %lld, %lld\n", x.first, hdir.name.c_str(), hdir.pid, hdir.usn);
  }

  uint64_t usnmain_set_size = usnmain_set.size();
  progress = usnmain_set_size / 10;
  
  // store into file_path with usnmain_set
  for(i=0; i+1 < usnmain_set_size; i++) {
    if (i >= progress) {
  	  printf(".");
      progress += usnmain_set_size / 10;
    }
    // examine correct path
    size_t count;
    count = path_table.count(usnmain_set[i].pid);
    if (count == 0) {
      usnmain_set[i].file_path = "";
    }
    else if (count == 1) {
      auto itr = path_table.find(usnmain_set[i].pid);   
      usnmain_set[i].file_path = itr->second.name;
    }
    else {
      int64_t diff = INT64_MAX;
      string pname;
      auto itr = path_table.equal_range(usnmain_set[i].pid);
      for (auto iterator = itr.first; iterator != itr.second; iterator++) {
      //  if (usn_record.Usn - iterator->second.usn > 0) {
        if (abs(int64_t(usnmain_set[i].usn - iterator->second.usn)) < diff) {
          diff = usnmain_set[i].usn - iterator->second.usn;
          pname = iterator->second.name;
        }
      }
      usnmain_set[i].file_path = pname;
    }
  }
  
  printf("Done\n");
  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x4f0, %rsp            # imm = 0x4F0
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x3e0(%rbp)
leaq -0x34(%rbp), %rdi
movq %rdi, -0x3d8(%rbp)
callq 0xb0e0
movq -0x3d8(%rbp), %rdi
leaq 0x16bb8(%rip), %rsi     # 0x1c1a0
callq 0x34a0
jmp 0x55ef
movq -0x3e0(%rbp), %rax
movl $0x0, -0x14(%rbp)
movq $0x0, -0x10(%rbp)
addq $0xc8, %rax
movq %rax, -0x3e8(%rbp)
movl $0x5, -0x78(%rbp)
leaq -0x74(%rbp), %rdi
leaq -0x78(%rbp), %rsi
leaq -0x34(%rbp), %rdx
callq 0xb130
jmp 0x562c
movq -0x3e8(%rbp), %rdi
leaq -0x74(%rbp), %rsi
callq 0xb100
movq %rax, -0x3f0(%rbp)
jmp 0x5645
movq -0x3f0(%rbp), %rax
movq %rax, -0x80(%rbp)
leaq -0x74(%rbp), %rdi
callq 0xb170
movq -0x3e0(%rbp), %rax
addq $0x50, %rax
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rdi
callq 0xb190
movq %rax, -0x90(%rbp)
movq -0x88(%rbp), %rdi
callq 0xb1c0
movq %rax, -0x98(%rbp)
leaq -0x90(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0xb1f0
testb $0x1, %al
jne 0x56ad
jmp 0x5c05
leaq -0x90(%rbp), %rdi
callq 0xb230
movq %rax, %rsi
leaq -0x162(%rbp), %rdi
callq 0xb250
jmp 0x56ca
movl -0xe4(%rbp), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x5bbd
leaq -0x162(%rbp), %rdi
addq $0x3a, %rdi
callq 0x3220
cmpq $0x0, %rax
jne 0x572c
movl $0x3, -0x168(%rbp)
jmp 0x5bc7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x6255
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x74(%rbp), %rdi
callq 0xb170
jmp 0x6255
leaq -0x162(%rbp), %rax
addq $0x3a, %rax
movq %rax, -0x3f8(%rbp)
leaq -0x162(%rbp), %rdi
addq $0x3a, %rdi
callq 0x3220
movq -0x3f8(%rbp), %rdi
movq %rax, %rdx
subq $0x1, %rdx
leaq 0x16a3d(%rip), %rsi     # 0x1c1a0
callq 0x3630
cmpq $-0x1, %rax
jne 0x577d
movl $0x3, -0x168(%rbp)
jmp 0x5bc7
leaq -0x128(%rbp), %rdi
leaq 0x16a17(%rip), %rsi     # 0x1c1a2
callq 0xb3a0
movb %al, -0x3f9(%rbp)
jmp 0x5798
movb -0x3f9(%rbp), %al
testb $0x1, %al
jne 0x57a4
jmp 0x57c4
movl $0x3, -0x168(%rbp)
jmp 0x5bc7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x5bf4
movl -0xc0(%rbp), %eax
cmpl -0xbc(%rbp), %eax
jne 0x57e1
movl $0x3, -0x168(%rbp)
jmp 0x5bc7
leaq -0x128(%rbp), %rsi
leaq -0x34(%rbp), %rdi
callq 0x3050
jmp 0x57f3
movq -0x3e0(%rbp), %rax
movl -0xbc(%rbp), %ecx
movl %ecx, -0x14(%rbp)
movq -0x162(%rbp), %rcx
movq %rcx, -0x10(%rbp)
addq $0x98, %rax
movq %rax, -0x408(%rbp)
leaq -0xc0(%rbp), %rsi
leaq -0x198(%rbp), %rdi
leaq -0x34(%rbp), %rdx
callq 0xb400
jmp 0x5834
movq -0x408(%rbp), %rdi
leaq -0x198(%rbp), %rsi
callq 0xb3d0
movq %rax, -0x410(%rbp)
jmp 0x5850
movq -0x410(%rbp), %rax
movq %rax, -0x1a0(%rbp)
leaq -0x198(%rbp), %rdi
callq 0xb440
leaq 0x16941(%rip), %rsi     # 0x1c1b2
leaq -0x34(%rbp), %rdi
callq 0xb3a0
movb %al, -0x411(%rbp)
jmp 0x5882
movb -0x411(%rbp), %al
testb $0x1, %al
jne 0x5891
jmp 0x5954
leaq 0x16921(%rip), %rsi     # 0x1c1b9
leaq -0x34(%rbp), %rdi
callq 0x34a0
jmp 0x58a3
movq -0x3e0(%rbp), %rax
movl $0x5, -0x14(%rbp)
movq $0x0, -0x10(%rbp)
addq $0x98, %rax
movq %rax, -0x420(%rbp)
leaq -0xc0(%rbp), %rsi
leaq -0x1d0(%rbp), %rdi
leaq -0x34(%rbp), %rdx
callq 0xb400
jmp 0x58df
movq -0x420(%rbp), %rdi
leaq -0x1d0(%rbp), %rsi
callq 0xb3d0
movq %rax, -0x428(%rbp)
jmp 0x58fb
movq -0x428(%rbp), %rax
movq %rax, -0x1d8(%rbp)
leaq -0x1d0(%rbp), %rdi
callq 0xb440
jmp 0x5bbb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x198(%rbp), %rdi
callq 0xb440
jmp 0x5bf4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x1d0(%rbp), %rdi
callq 0xb440
jmp 0x5bf4
leaq 0x16864(%rip), %rsi     # 0x1c1bf
leaq -0x34(%rbp), %rdi
callq 0xb3a0
movb %al, -0x429(%rbp)
jmp 0x596c
movb -0x429(%rbp), %al
testb $0x1, %al
jne 0x597b
jmp 0x5a21
leaq 0x16837(%rip), %rsi     # 0x1c1b9
leaq -0x34(%rbp), %rdi
callq 0x34a0
jmp 0x598d
movq -0x3e0(%rbp), %rax
movl $0x5, -0x14(%rbp)
movq $0x0, -0x10(%rbp)
addq $0x98, %rax
movq %rax, -0x438(%rbp)
leaq -0xc0(%rbp), %rsi
leaq -0x208(%rbp), %rdi
leaq -0x34(%rbp), %rdx
callq 0xb400
jmp 0x59c9
movq -0x438(%rbp), %rdi
leaq -0x208(%rbp), %rsi
callq 0xb3d0
movq %rax, -0x440(%rbp)
jmp 0x59e5
movq -0x440(%rbp), %rax
movq %rax, -0x210(%rbp)
leaq -0x208(%rbp), %rdi
callq 0xb440
jmp 0x5bb9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x208(%rbp), %rdi
callq 0xb440
jmp 0x5bf4
leaq 0x1679f(%rip), %rsi     # 0x1c1c7
leaq -0x34(%rbp), %rdi
callq 0xb3a0
movb %al, -0x441(%rbp)
jmp 0x5a39
movb -0x441(%rbp), %al
testb $0x1, %al
jne 0x5a48
jmp 0x5aee
leaq 0x16781(%rip), %rsi     # 0x1c1d0
leaq -0x34(%rbp), %rdi
callq 0x34a0
jmp 0x5a5a
movq -0x3e0(%rbp), %rax
movl $0x5, -0x14(%rbp)
movq $0x0, -0x10(%rbp)
addq $0x98, %rax
movq %rax, -0x450(%rbp)
leaq -0xc0(%rbp), %rsi
leaq -0x240(%rbp), %rdi
leaq -0x34(%rbp), %rdx
callq 0xb400
jmp 0x5a96
movq -0x450(%rbp), %rdi
leaq -0x240(%rbp), %rsi
callq 0xb3d0
movq %rax, -0x458(%rbp)
jmp 0x5ab2
movq -0x458(%rbp), %rax
movq %rax, -0x248(%rbp)
leaq -0x240(%rbp), %rdi
callq 0xb440
jmp 0x5bb7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x240(%rbp), %rdi
callq 0xb440
jmp 0x5bf4
leaq 0x166e3(%rip), %rsi     # 0x1c1d8
leaq -0x34(%rbp), %rdi
callq 0xb3a0
movb %al, -0x459(%rbp)
jmp 0x5b06
movb -0x459(%rbp), %al
testb $0x1, %al
jne 0x5b15
jmp 0x5bb5
leaq 0x166b4(%rip), %rsi     # 0x1c1d0
leaq -0x34(%rbp), %rdi
callq 0x34a0
jmp 0x5b27
movq -0x3e0(%rbp), %rax
movl $0x5, -0x14(%rbp)
movq $0x0, -0x10(%rbp)
addq $0x98, %rax
movq %rax, -0x468(%rbp)
leaq -0xc0(%rbp), %rsi
leaq -0x278(%rbp), %rdi
leaq -0x34(%rbp), %rdx
callq 0xb400
jmp 0x5b63
movq -0x468(%rbp), %rdi
leaq -0x278(%rbp), %rsi
callq 0xb3d0
movq %rax, -0x470(%rbp)
jmp 0x5b7f
movq -0x470(%rbp), %rax
movq %rax, -0x280(%rbp)
leaq -0x278(%rbp), %rdi
callq 0xb440
jmp 0x5bb5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x278(%rbp), %rdi
callq 0xb440
jmp 0x5bf4
jmp 0x5bb7
jmp 0x5bb9
jmp 0x5bbb
jmp 0x5bbd
movl $0x0, -0x168(%rbp)
leaq -0x162(%rbp), %rdi
callq 0xa960
movl -0x168(%rbp), %eax
testl %eax, %eax
je 0x5be1
jmp 0x5bdf
jmp 0x5be3
jmp 0x5be3
leaq -0x90(%rbp), %rdi
callq 0xb460
jmp 0x5691
leaq -0x162(%rbp), %rdi
callq 0xa960
jmp 0x6255
movq -0x3e0(%rbp), %rdi
addq $0x98, %rdi
callq 0xb480
movl %eax, -0x284(%rbp)
movq $0x1, -0x290(%rbp)
movl -0x284(%rbp), %eax
movl $0xa, %ecx
xorl %edx, %edx
divl %ecx
movl %eax, %ecx
movq -0x3e0(%rbp), %rax
movl %ecx, %ecx
movq %rcx, -0x298(%rbp)
addq $0x98, %rax
movq %rax, -0x2a0(%rbp)
movq -0x2a0(%rbp), %rdi
callq 0xb4a0
movq %rax, -0x2a8(%rbp)
movq -0x2a0(%rbp), %rdi
callq 0xb4d0
movq %rax, -0x2b0(%rbp)
leaq -0x2a8(%rbp), %rdi
leaq -0x2b0(%rbp), %rsi
callq 0xb500
testb $0x1, %al
jne 0x5c99
jmp 0x5e48
leaq -0x2a8(%rbp), %rdi
callq 0xb530
movq %rax, %rsi
leaq -0x2e0(%rbp), %rdi
callq 0xb550
jmp 0x5cb6
movq -0x290(%rbp), %rax
cmpq -0x298(%rbp), %rax
jb 0x5d08
leaq 0x16aba(%rip), %rdi     # 0x1c787
xorl %eax, %eax
callq 0x3060
jmp 0x5cd6
movl -0x284(%rbp), %eax
movl $0xa, %ecx
xorl %edx, %edx
divl %ecx
movl %eax, %eax
addq -0x298(%rbp), %rax
movq %rax, -0x298(%rbp)
jmp 0x5d08
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x5e37
movq -0x290(%rbp), %rax
incq %rax
movq %rax, -0x290(%rbp)
leaq -0x2dc(%rbp), %rsi
leaq -0x338(%rbp), %rdi
callq 0xb590
jmp 0x5d2e
movq -0x3e0(%rbp), %rsi
leaq -0x30c(%rbp), %rdi
leaq -0x338(%rbp), %rdx
xorl %ecx, %ecx
callq 0x6270
jmp 0x5d4c
leaq -0x34(%rbp), %rdi
movq %rdi, -0x480(%rbp)
leaq -0x30c(%rbp), %rsi
movq %rsi, -0x488(%rbp)
callq 0xb5d0
movq -0x488(%rbp), %rdi
callq 0xb610
leaq -0x338(%rbp), %rdi
callq 0xb610
movq -0x3e0(%rbp), %rax
movq -0x480(%rbp), %rdx
addq $0xc8, %rax
movq %rax, -0x478(%rbp)
leaq -0x368(%rbp), %rdi
leaq -0x2e0(%rbp), %rsi
callq 0xb630
jmp 0x5db2
movq -0x478(%rbp), %rdi
leaq -0x368(%rbp), %rsi
callq 0xb3d0
movq %rax, -0x490(%rbp)
jmp 0x5dce
movq -0x490(%rbp), %rax
movq %rax, -0x370(%rbp)
leaq -0x368(%rbp), %rdi
callq 0xb440
leaq -0x2e0(%rbp), %rdi
callq 0xb670
leaq -0x2a8(%rbp), %rdi
callq 0xb690
jmp 0x5c7d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x338(%rbp), %rdi
callq 0xb610
jmp 0x5e37
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x368(%rbp), %rdi
callq 0xb440
leaq -0x2e0(%rbp), %rdi
callq 0xb670
jmp 0x6255
movq -0x3e0(%rbp), %rdi
addq $0x50, %rdi
callq 0xaf20
movq %rax, -0x378(%rbp)
movq -0x378(%rbp), %rax
movl $0xa, %ecx
xorl %edx, %edx
divq %rcx
movq %rax, -0x298(%rbp)
movq $0x0, -0x290(%rbp)
movq -0x290(%rbp), %rax
addq $0x1, %rax
cmpq -0x378(%rbp), %rax
jae 0x6227
movq -0x290(%rbp), %rax
cmpq -0x298(%rbp), %rax
jb 0x5ed9
leaq 0x168d6(%rip), %rdi     # 0x1c787
xorl %eax, %eax
callq 0x3060
jmp 0x5eba
movq -0x378(%rbp), %rax
movl $0xa, %ecx
xorl %edx, %edx
divq %rcx
addq -0x298(%rbp), %rax
movq %rax, -0x298(%rbp)
movq -0x3e0(%rbp), %rdi
movq %rdi, %rax
addq $0xc8, %rax
movq %rax, -0x4a0(%rbp)
addq $0x50, %rdi
movq -0x290(%rbp), %rsi
callq 0xaf90
movq -0x4a0(%rbp), %rdi
movq %rax, %rsi
addq $0xa6, %rsi
callq 0xb6c0
movq %rax, -0x498(%rbp)
jmp 0x5f1f
movq -0x498(%rbp), %rax
movq %rax, -0x380(%rbp)
cmpq $0x0, -0x380(%rbp)
jne 0x5f6b
movq -0x3e0(%rbp), %rdi
addq $0x50, %rdi
movq -0x290(%rbp), %rsi
callq 0xaf90
movq %rax, %rdi
addq $0xaa, %rdi
leaq 0x163be(%rip), %rsi     # 0x1c31d
callq 0x34a0
jmp 0x5f66
jmp 0x620e
cmpq $0x1, -0x380(%rbp)
jne 0x6018
movq -0x3e0(%rbp), %rdi
movq %rdi, %rax
addq $0xc8, %rax
movq %rax, -0x4b0(%rbp)
addq $0x50, %rdi
movq -0x290(%rbp), %rsi
callq 0xaf90
movq -0x4b0(%rbp), %rdi
movq %rax, %rsi
addq $0xa6, %rsi
callq 0xb6f0
movq %rax, -0x4a8(%rbp)
jmp 0x5fbf
movq -0x4a8(%rbp), %rax
movq %rax, -0x388(%rbp)
leaq -0x388(%rbp), %rdi
callq 0xb720
movq -0x3e0(%rbp), %rdi
addq $0x4, %rax
movq %rax, -0x4b8(%rbp)
addq $0x50, %rdi
movq -0x290(%rbp), %rsi
callq 0xaf90
movq -0x4b8(%rbp), %rsi
movq %rax, %rdi
addq $0xaa, %rdi
callq 0x3050
jmp 0x6013
jmp 0x620c
movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF
movq %rax, -0x390(%rbp)
leaq -0x3b0(%rbp), %rdi
callq 0x34b0
movq -0x3e0(%rbp), %rdi
movq %rdi, %rax
addq $0xc8, %rax
movq %rax, -0x4d0(%rbp)
addq $0x50, %rdi
movq -0x290(%rbp), %rsi
callq 0xaf90
movq -0x4d0(%rbp), %rdi
movq %rax, %rsi
addq $0xa6, %rsi
callq 0xb740
movq %rdx, -0x4c8(%rbp)
movq %rax, -0x4c0(%rbp)
jmp 0x6082
movq -0x4c8(%rbp), %rax
movq -0x4c0(%rbp), %rcx
movq %rcx, -0x3c0(%rbp)
movq %rax, -0x3b8(%rbp)
movq -0x3c0(%rbp), %rax
movq %rax, -0x3c8(%rbp)
leaq -0x3c0(%rbp), %rsi
addq $0x8, %rsi
leaq -0x3c8(%rbp), %rdi
callq 0xb500
testb $0x1, %al
jne 0x60cc
jmp 0x61d1
movq -0x3e0(%rbp), %rdi
addq $0x50, %rdi
movq -0x290(%rbp), %rsi
callq 0xaf90
movq (%rax), %rax
movq %rax, -0x4e0(%rbp)
leaq -0x3c8(%rbp), %rdi
callq 0xb720
movq -0x4e0(%rbp), %rdi
movq 0x28(%rax), %rax
subq %rax, %rdi
callq 0xb780
movq %rax, -0x4d8(%rbp)
jmp 0x6115
movq -0x4d8(%rbp), %rax
cmpq -0x390(%rbp), %rax
jge 0x61b5
movq -0x3e0(%rbp), %rdi
addq $0x50, %rdi
movq -0x290(%rbp), %rsi
callq 0xaf90
movq (%rax), %rax
movq %rax, -0x4e8(%rbp)
leaq -0x3c8(%rbp), %rdi
movq %rdi, -0x4f0(%rbp)
callq 0xb720
movq -0x4f0(%rbp), %rdi
movq %rax, %rcx
movq -0x4e8(%rbp), %rax
movq 0x28(%rcx), %rcx
subq %rcx, %rax
movq %rax, -0x390(%rbp)
callq 0xb720
movq %rax, %rsi
addq $0x4, %rsi
leaq -0x3b0(%rbp), %rdi
callq 0x3050
jmp 0x6196
jmp 0x61b5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x3b0(%rbp), %rdi
callq 0x31d0
jmp 0x6255
jmp 0x61b7
leaq -0x3c8(%rbp), %rdi
xorl %esi, %esi
callq 0xb7a0
movq %rax, -0x3d0(%rbp)
jmp 0x60ac
movq -0x3e0(%rbp), %rdi
addq $0x50, %rdi
movq -0x290(%rbp), %rsi
callq 0xaf90
movq %rax, %rdi
addq $0xaa, %rdi
leaq -0x3b0(%rbp), %rsi
callq 0x3050
jmp 0x6200
leaq -0x3b0(%rbp), %rdi
callq 0x31d0
jmp 0x620e
jmp 0x6210
movq -0x290(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x290(%rbp)
jmp 0x5e82
leaq 0x161e3(%rip), %rdi     # 0x1c411
xorl %eax, %eax
callq 0x3060
jmp 0x6237
movl $0x1, -0x168(%rbp)
leaq -0x34(%rbp), %rdi
callq 0xb610
xorl %eax, %eax
addq $0x4f0, %rsp            # imm = 0x4F0
popq %rbp
retq
leaq -0x34(%rbp), %rdi
callq 0xb610
movq -0x40(%rbp), %rdi
callq 0x35c0
nopw (%rax,%rax)