Function at 0x1401ae9f0
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x5c8
mov qword [rsp + 0x578], 0xfffffffffffffffe
mov rax, qword [0x14025e510]
xor rax, rsp
mov qword [rsp + 0x5b0], rax
lea rcx, [rsp + 0x38]
call fcn.1401b8850
nop
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x5d0]
mov rax, qword [rax]
mov qword [rsp + 0x310], rax
mov rdx, qword [rsp + 0x310]
lea rcx, [rsp + 0x38]
call fcn.1401b8780
mov rax, qword [rsp + 0x5d0]
mov rax, qword [rax]
mov eax, dword [rax - 0x10]
mov dword [rsp + 0x318], eax
cmp dword [rsp + 0x318], 0
jne 0x1401aea83
mov dword [rsp + 0x580], 1
jmp 0x1401aea8e
mov dword [rsp + 0x580], 0
movzx eax, byte [rsp + 0x580]
test eax, eax
jne 0x1401aeadd
mov rax, qword [rsp + 0x5d8]
mov rax, qword [rax]
mov eax, dword [rax - 0x10]
mov dword [rsp + 0x31c], eax
cmp dword [rsp + 0x31c], 0
jne 0x1401aeac6
mov dword [rsp + 0x584], 1
jmp 0x1401aead1
mov dword [rsp + 0x584], 0
movzx eax, byte [rsp + 0x584]
test eax, eax
je 0x1401aeafe
mov dword [rsp + 0x2f0], 0
lea rcx, [rsp + 0x38]
call fcn.1401b8800
mov eax, dword [rsp + 0x2f0]
jmp 0x1401af3a1
mov qword [rsp + 0x2b0], 0
mov rdx, qword [rsp + 0x5d8]
lea rcx, [rsp + 0x2a8]
call fcn.1400047a0
nop
lea rdx, [rsp + 0x2a8]
lea rcx, [rsp + 0x2a0]
call fcn.1400047a0
nop
lea rax, [0x14021bd20]
mov qword [rsp + 0x320], rax
cmp qword [rsp + 0x320], 0
jne 0x1401aeb5d
mov dword [rsp + 0x328], 0
jmp 0x1401aeb71
mov rcx, qword [rsp + 0x320]
call fcn.14002f9b0
mov dword [rsp + 0x328], eax
mov r8d, dword [rsp + 0x328]
lea rdx, [0x14021bd20]
lea rcx, [rsp + 0x2a0]
call fcn.140004560
mov rax, qword [rsp + 0x2a0]
mov qword [rsp + 0x330], rax
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x330]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x2b0], rax
cmp qword [rsp + 0x2b0], 0xffffffffffffffff
je 0x1401af31a
mov eax, dword [rsp + 0x50]
and eax, 0x10
test eax, eax
je 0x1401af2ff
lea rdx, [0x14021b6fc]
lea rcx, [rsp + 0x7c]
call fcn.140030bd0
test eax, eax
je 0x1401aec00
lea rdx, [0x14021bd28]
lea rcx, [rsp + 0x7c]
call fcn.140030bd0
test eax, eax
jne 0x1401aec0a
jmp 0x1401af2ff
lea rdx, [rsp + 0x7c]
lea rcx, [rsp + 0x2d0]
call fcn.1400062b0
nop
lea rdx, [rsp + 0x2a8]
lea rcx, [rsp + 0x2e8]
call fcn.1400047a0
nop
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x350], rax
cmp qword [rsp + 0x350], 0
jne 0x1401aec58
mov dword [rsp + 0x358], 0
jmp 0x1401aec6c
mov rcx, qword [rsp + 0x350]
call fcn.14002f9b0
mov dword [rsp + 0x358], eax
mov r8d, dword [rsp + 0x358]
lea rdx, [rsp + 0x7c]
lea rcx, [rsp + 0x2e8]
call fcn.140004560
call fcn.140008c24
mov rdx, rax
lea rcx, [rsp + 0x2b8]
call fcn.140005310
nop
call fcn.140008c24
mov rdx, rax
lea rcx, [rsp + 0x2e0]
call fcn.140005310
nop
lea r8, str._reglogs.dat
lea rdx, [rsp + 0x2e8]
lea rcx, [rsp + 0x2f8]
call fcn.140006bb0
mov qword [rsp + 0x588], rax
mov rax, qword [rsp + 0x588]
mov qword [rsp + 0x360], rax
mov rdx, qword [rsp + 0x360]
lea rcx, [rsp + 0x2b8]
call fcn.140004ac0
nop
mov rax, qword [rsp + 0x2f8]
sub rax, 0x18
mov qword [rsp + 0x368], rax
mov rcx, qword [rsp + 0x368]
call fcn.140005390
lea r8, str._filelogs.dat
lea rdx, [rsp + 0x2e8]
lea rcx, [rsp + 0x300]
call fcn.140006bb0
mov qword [rsp + 0x590], rax
mov rax, qword [rsp + 0x590]
mov qword [rsp + 0x370], rax
mov rdx, qword [rsp + 0x370]
lea rcx, [rsp + 0x2e0]
call fcn.140004ac0
nop
mov rax, qword [rsp + 0x300]
sub rax, 0x18
mov qword [rsp + 0x378], rax
mov rcx, qword [rsp + 0x378]
call fcn.140005390
mov rax, qword [rsp + 0x2e8]
mov qword [rsp + 0x380], rax
mov rcx, qword [rsp + 0x380]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
cmp eax, 1
je 0x1401aedf7
mov rax, qword [rsp + 0x2b8]
mov qword [rsp + 0x388], rax
mov rcx, qword [rsp + 0x388]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1401aee83
mov rax, qword [rsp + 0x2e0]
mov qword [rsp + 0x390], rax
mov rcx, qword [rsp + 0x390]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1401aee83
mov rax, qword [rsp + 0x2e0]
sub rax, 0x18
mov qword [rsp + 0x398], rax
mov rcx, qword [rsp + 0x398]
call fcn.140005390
nop
mov rax, qword [rsp + 0x2b8]
sub rax, 0x18
mov qword [rsp + 0x3a0], rax
mov rcx, qword [rsp + 0x3a0]
call fcn.140005390
nop
mov rax, qword [rsp + 0x2e8]
sub rax, 0x18
mov qword [rsp + 0x3a8], rax
mov rcx, qword [rsp + 0x3a8]
call fcn.140005390
nop
mov rax, qword [rsp + 0x2d0]
sub rax, 0x18
mov qword [rsp + 0x3b0], rax
mov rcx, qword [rsp + 0x3b0]
call fcn.140005390
jmp 0x1401af2ff
mov r8d, 0xffffffff
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0x2c0]
call fcn.140007310
mov dword [rsp + 0x20], 0xa
mov r9d, 1
lea r8, [0x14021bd70]
lea rdx, [0x14021bd88]
lea rcx, [rsp + 0x38]
call fcn.1401b8fe0
lea r11, [0x14021b714]
mov qword [rsp + 0x3d8], r11
cmp qword [rsp + 0x3d8], 0
jne 0x1401aeee8
mov dword [rsp + 0x3e0], 0
jmp 0x1401aeefc
mov rcx, qword [rsp + 0x3d8]
call fcn.14002f9b0
mov dword [rsp + 0x3e0], eax
mov r8d, dword [rsp + 0x3e0]
lea rdx, [0x14021b714]
lea rcx, [rsp + 0x2e8]
call fcn.140004560
mov rax, qword [rsp + 0x2e8]
mov qword [rsp + 0x3e8], rax
mov r9, qword [rsp + 0x3e8]
lea r8, [0x14021bda8]
mov rdx, qword [rsp + 0x2d0]
lea rcx, [rsp + 0x38]
call fcn.1401b8630
call fcn.140008c24
mov rdx, rax
lea rcx, [rsp + 0x2c8]
call fcn.140005310
nop
lea rdx, [rsp + 0x3f0]
lea rcx, [rsp + 0x2c0]
call fcn.140006f30
mov qword [rsp + 0x418], rax
cmp qword [rsp + 0x418], 0
je 0x1401aef9a
mov rax, qword [rsp + 0x418]
mov eax, dword [rax]
mov dword [rsp + 0x598], eax
jmp 0x1401aefa5
mov dword [rsp + 0x598], 0xffffffff
lea rdx, [rsp + 0x420]
lea rcx, [rsp + 0x2c0]
call fcn.140006f30
mov qword [rsp + 0x448], rax
cmp qword [rsp + 0x448], 0
je 0x1401aefe1
mov rax, qword [rsp + 0x448]
mov eax, dword [rax + 4]
mov dword [rsp + 0x59c], eax
jmp 0x1401aefec
mov dword [rsp + 0x59c], 0xffffffff
lea rdx, [rsp + 0x450]
lea rcx, [rsp + 0x2c0]
call fcn.140006f30
mov qword [rsp + 0x478], rax
cmp qword [rsp + 0x478], 0
je 0x1401af028
mov rax, qword [rsp + 0x478]
mov eax, dword [rax + 8]
mov dword [rsp + 0x5a0], eax
jmp 0x1401af033
mov dword [rsp + 0x5a0], 0xffffffff
mov eax, dword [rsp + 0x598]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x59c]
mov r8d, dword [rsp + 0x5a0]
lea rdx, [0x14021bdb8]
lea rcx, [rsp + 0x2c8]
call fcn.140005d30
mov r11, qword [rsp + 0x2c8]
mov qword [rsp + 0x480], r11
mov r9, qword [rsp + 0x480]
lea r8, [0x14021bdd8]
mov rdx, qword [rsp + 0x2d0]
lea rcx, [rsp + 0x38]
call fcn.1401b8630
call fcn.140008c24
mov rdx, rax
lea rcx, [rsp + 0x2d8]
call fcn.140005310
nop
lea rdx, [rsp + 0x488]
lea rcx, [rsp + 0x2c0]
call fcn.140006f30
mov qword [rsp + 0x4b0], rax
cmp qword [rsp + 0x4b0], 0
je 0x1401af0ea
mov rax, qword [rsp + 0x4b0]
mov eax, dword [rax + 0x14]
add eax, 0x76c
mov dword [rsp + 0x5a4], eax
jmp 0x1401af0f5
mov dword [rsp + 0x5a4], 0
lea rdx, [rsp + 0x4b8]
lea rcx, [rsp + 0x2c0]
call fcn.140006f30
mov qword [rsp + 0x4e0], rax
cmp qword [rsp + 0x4e0], 0
je 0x1401af134
mov rax, qword [rsp + 0x4e0]
mov eax, dword [rax + 0x10]
add eax, 1
mov dword [rsp + 0x5a8], eax
jmp 0x1401af13f
mov dword [rsp + 0x5a8], 0
lea rdx, [rsp + 0x4e8]
lea rcx, [rsp + 0x2c0]
call fcn.140006f30
mov qword [rsp + 0x510], rax
cmp qword [rsp + 0x510], 0
je 0x1401af17b
mov rax, qword [rsp + 0x510]
mov eax, dword [rax + 0xc]
mov dword [rsp + 0x5ac], eax
jmp 0x1401af186
mov dword [rsp + 0x5ac], 0
mov eax, dword [rsp + 0x5a4]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x5a8]
mov r8d, dword [rsp + 0x5ac]
lea rdx, [0x14021bde8]
lea rcx, [rsp + 0x2d8]
call fcn.140005d30
mov r11, qword [rsp + 0x2d8]
mov qword [rsp + 0x518], r11
mov r9, qword [rsp + 0x518]
lea r8, [0x14021be08]
mov rdx, qword [rsp + 0x2d0]
lea rcx, [rsp + 0x38]
call fcn.1401b8630
mov r11, qword [rsp + 0x2d0]
mov qword [rsp + 0x520], r11
mov r9, qword [rsp + 0x520]
lea r8, [0x14021be18]
mov rdx, qword [rsp + 0x2d0]
lea rcx, [rsp + 0x38]
call fcn.1401b8630
lea r9, [0x14021b74c]
lea r8, [0x14021be28]
mov rdx, qword [rsp + 0x2d0]
lea rcx, [rsp + 0x38]
call fcn.1401b8630
mov dword [rsp + 0x20], 0xa
xor r9d, r9d
lea r8, [0x14021be38]
mov rdx, qword [rsp + 0x2d0]
lea rcx, [rsp + 0x38]
call fcn.1401b8d80
mov dword [rsp + 0x20], 0xa
xor r9d, r9d
lea r8, [0x14021be50]
mov rdx, qword [rsp + 0x2d0]
lea rcx, [rsp + 0x38]
call fcn.1401b8d80
lea r9, [rsp + 0x2c8]
lea r8, [rsp + 0x2d8]
lea rdx, [rsp + 0x2d0]
lea rcx, [rsp + 0x2e8]
call fcn.1401ae4f0
mov dword [rsp + 0x30], 1
lea rcx, [rsp + 0x2d8]
call fcn.1400053e0
nop
lea rcx, [rsp + 0x2c8]
call fcn.1400053e0
nop
lea rcx, [rsp + 0x2e0]
call fcn.1400053e0
nop
lea rcx, [rsp + 0x2b8]
call fcn.1400053e0
nop
lea rcx, [rsp + 0x2e8]
call fcn.1400053e0
nop
lea rcx, [rsp + 0x2d0]
call fcn.1400053e0
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1401aebc7
mov rcx, qword [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [rsp + 0x30], 0
je 0x1401af369
mov dword [rsp + 0x308], 1
lea rcx, [rsp + 0x2a0]
call fcn.1400053e0
nop
lea rcx, [rsp + 0x2a8]
call fcn.1400053e0
nop
lea rcx, [rsp + 0x38]
call fcn.1401b8800
mov eax, dword [rsp + 0x308]
jmp 0x1401af3a1
mov dword [rsp + 0x30c], 0
lea rcx, [rsp + 0x2a0]
call fcn.1400053e0
nop
lea rcx, [rsp + 0x2a8]
call fcn.1400053e0
nop
lea rcx, [rsp + 0x38]
call fcn.1401b8800
mov eax, dword [rsp + 0x30c]
mov rcx, qword [rsp + 0x5b0]
xor rcx, rsp
call fcn.14002f990
add rsp, 0x5c8
ret