Function at 0x140016780
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x340
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x398], rbx
mov rax, qword [0x1400d2478]
xor rax, rsp
mov qword [rsp + 0x330], rax
mov r13, r8
mov rbp, rdx
mov r14, rcx
mov qword [rsp + 0xd0], rdx
mov qword [rsp + 0x58], 7
xor r15d, r15d
mov qword [rsp + 0x50], r15
mov word [rsp + 0x40], r15w
lea r8d, [r15 + 0x13]
lea rdx, str.GetLogDirectoryInfo
lea rcx, [rsp + 0x38]
call fcn.140001870
nop
lea r9, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae r9, qword [rsp + 0x40]
lea rax, str.Function_start
mov qword [rsp + 0x20], rax
lea edx, [r15 + 0x32]
lea r8d, [r15 + 1]
mov rcx, r14
call fcn.1400144a0
mov qword [rsp + 0x80], 7
mov qword [rsp + 0x78], r15
mov word [rsp + 0x68], r15w
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbp
lea rcx, [rsp + 0x60]
call fcn.140001500
mov rbx, qword [rsp + 0x78]
test rbx, rbx
je 0x1400168fd
test rbx, rbx
je 0x1400168e6
cmp rbx, 0xffffffffffffffff
jbe 0x14001686f
or rcx, 0xffffffffffffffff
jmp 0x140016873
lea rcx, [rbx - 1]
lea rax, [rsp + 0x68]
mov rsi, qword [rsp + 0x68]
mov r12, qword [rsp + 0x80]
cmp r12, 8
cmovae rax, rsi
lea rdi, [rax + rcx*2]
mov ecx, 1
lea rax, [0x1400ad338]
movzx edx, word [rdi]
cmp word [rax], dx
je 0x1400168c4
add rax, 2
sub rcx, 1
jne 0x1400168a0
lea rcx, [rsp + 0x60]
call fcn.1400016d0
cmp rdi, rax
je 0x1400168e6
sub rdi, 2
jmp 0x140016891
lea rax, [rsp + 0x68]
cmp r12, 8
cmovae rax, rsi
sub rdi, rax
sar rdi, 1
cmp rdi, 0xffffffffffffffff
je 0x1400168e6
lea rax, [rdi + 1]
cmp rbx, rax
je 0x1400168fd
mov r8d, 1
lea rdx, [0x1400ad338]
lea rcx, [rsp + 0x60]
call fcn.14000a130
mov r8d, 3
lea rdx, [0x1400adb90]
lea rcx, [rsp + 0x60]
call fcn.14000a130
mov rcx, r13
call fcn.1400185a0
lea rcx, [rsp + 0x68]
cmp qword [rsp + 0x80], 8
cmovae rcx, qword [rsp + 0x68]
lea rdx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140016a5a
mov r12d, 0x2e
mov ecx, dword [rsp + 0xe0]
and ecx, 0x10
je 0x14001696c
cmp r12w, word [rsp + 0x10c]
je 0x140016a37
mov qword [rsp + 0xb0], 7
mov qword [rsp + 0xa8], r15
mov word [rsp + 0x98], r15w
mov dword [rsp + 0xb8], ecx
mov rax, qword [rsp + 0xf4]
mov qword [rsp + 0xbc], rax
mov eax, dword [rsp + 0xfc]
mov dword [rsp + 0xc4], eax
mov eax, dword [rsp + 0x100]
mov dword [rsp + 0xc8], eax
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x10c]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x10c]
lea rcx, [rsp + 0x90]
call fcn.140001870
mov rbx, qword [r13 + 0x28]
lea r9, [rsp + 0x90]
mov r8, qword [rbx + 8]
mov rdx, rbx
mov rcx, r13
call fcn.140018b10
mov rdi, rax
mov edx, 1
mov rcx, r13
call fcn.140018ba0
mov qword [rbx + 8], rdi
mov rcx, qword [rdi + 8]
mov qword [rcx], rdi
cmp qword [rsp + 0xb0], 8
jb 0x140016a37
mov rcx, qword [rsp + 0x98]
call fcn.140065920
lea rdx, [rsp + 0xe0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140016951
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
cmp qword [rsp + 0x80], 8
jb 0x140016a6f
mov rcx, qword [rsp + 0x68]
call fcn.140065920
lea r9, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae r9, qword [rsp + 0x40]
mov dword [rsp + 0x28], r15d
lea rax, str.Return_code__0x_x_
mov qword [rsp + 0x20], rax
mov edx, 0x28
lea r8d, [rdx - 0x27]
mov rcx, r14
call fcn.1400144a0
lea r9, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae r9, qword [rsp + 0x40]
lea rax, str.Function_end
mov qword [rsp + 0x20], rax
mov edx, 0x32
lea r8d, [rdx - 0x31]
mov rcx, r14
call fcn.1400144a0
nop
cmp qword [rsp + 0x58], 8
jb 0x140016ae3
mov rcx, qword [rsp + 0x40]
call fcn.140065920
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r15
mov word [rsp + 0x40], r15w
cmp qword [rbp + 0x20], 8
jb 0x140016b07
mov rcx, qword [rbp + 8]
call fcn.140065920
mov qword [rbp + 0x20], 7
mov qword [rbp + 0x18], r15
mov word [rbp + 8], r15w
xor eax, eax
mov rcx, qword [rsp + 0x330]
xor rcx, rsp
call fcn.140064b70
mov rbx, qword [rsp + 0x398]
add rsp, 0x340
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret