Function at 0x140051690
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x360
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov rax, qword [0x140085040]
xor rax, rsp
mov qword [rsp + 0x350], rax
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x378]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x370]
cmp qword [rsp + 0x38], rax
je 0x140051724
mov rax, qword [rsp + 0x38]
movzx edx, byte [rax]
lea rcx, [rsp + 0x30]
call fcn.140051c60
movzx eax, al
test eax, eax
jne 0x140051724
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x370]
call fcn.1400520a0
mov qword [rsp + 0x38], rax
jmp 0x1400516e3
mov rax, qword [rsp + 0x38]
movsx eax, byte [rax]
cmp eax, 0x3a
jne 0x140051762
mov rax, qword [rsp + 0x370]
inc rax
cmp qword [rsp + 0x38], rax
je 0x140051762
mov r9, qword [rsp + 0x380]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x370]
call fcn.1400514e0
jmp 0x140051a9b
mov rax, qword [rsp + 0x38]
movzx edx, byte [rax]
lea rcx, [rsp + 0x30]
call fcn.140051c60
movzx eax, al
test eax, eax
je 0x140051798
mov rax, qword [rsp + 0x370]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
inc rax
mov qword [rsp + 0x70], rax
jmp 0x1400517a1
mov qword [rsp + 0x70], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x100]
mov rdi, rax
xor eax, eax
mov ecx, 0x250
rep stosb byte [rdi], al
lea rcx, [rsp + 0xd0]
call fcn.140034920
mov rdx, qword [rsp + 0x370]
lea rcx, [rsp + 0xd0]
call fcn.140052050
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x100]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140005d20
lea rcx, [rsp + 0x48]
call fcn.14000b170
cmp rax, 0xffffffffffffffff
jne 0x140051866
mov r9, qword [rsp + 0x380]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x370]
call fcn.1400514e0
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0x48]
call fcn.140051b80
lea rcx, [rsp + 0xd0]
call fcn.1400349b0
mov eax, dword [rsp + 0x54]
jmp 0x140051a9b
mov rcx, qword [rsp + 0x380]
call fcn.1400520d0
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0xa0]
call fcn.140034920
lea rdx, [rsp + 0x12c]
lea rcx, [rsp + 0xa0]
call fcn.140052000
mov qword [rsp + 0x40], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
movsx eax, byte [rcx + rax]
cmp eax, 0x2e
jne 0x1400518de
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x40]
movsx eax, byte [rcx + rax]
test eax, eax
jne 0x1400518de
lea rcx, [rsp + 0xa0]
call fcn.1400349b0
jmp 0x1400519a0
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
movsx eax, byte [rcx + rax]
cmp eax, 0x2e
jne 0x140051931
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x40]
movsx eax, byte [rcx + rax]
cmp eax, 0x2e
jne 0x140051931
mov eax, 1
imul rax, rax, 2
mov rcx, qword [rsp + 0x40]
movsx eax, byte [rcx + rax]
test eax, eax
jne 0x140051931
lea rcx, [rsp + 0xa0]
call fcn.1400349b0
jmp 0x1400519a0
mov r9, qword [rsp + 0x380]
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x370]
mov rcx, qword [rsp + 0x40]
call fcn.1400514e0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x140051993
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x58], eax
lea rcx, [rsp + 0xa0]
call fcn.1400349b0
lea rcx, [rsp + 0x48]
call fcn.140051b80
lea rcx, [rsp + 0xd0]
call fcn.1400349b0
mov eax, dword [rsp + 0x58]
jmp 0x140051a9b
lea rcx, [rsp + 0xa0]
call fcn.1400349b0
lea rcx, [rsp + 0x48]
call fcn.14000b170
lea rdx, [rsp + 0x100]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140051878
mov rcx, qword [rsp + 0x380]
call fcn.1400520d0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x68], rax
jne 0x140051a09
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x48]
call fcn.140051b80
lea rcx, [rsp + 0xd0]
call fcn.1400349b0
mov eax, dword [rsp + 0x5c]
jmp 0x140051a9b
lea rax, [rsp + 0x31]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x31]
call fcn.140051c10
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0x380]
call fcn.14000b170
mov rcx, qword [rsp + 0x68]
lea rax, [rax + rcx*8]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
mov r9, qword [rsp + 0x88]
mov r8d, 8
mov rdx, rax
mov rcx, qword [rsp + 0x90]
call fcn.14005ea60
mov dword [rsp + 0x60], 0
lea rcx, [rsp + 0x48]
call fcn.140051b80
lea rcx, [rsp + 0xd0]
call fcn.1400349b0
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.14000c470
add rsp, 0x360
pop rdi
ret