Function at 0x1401fd390
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2c0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x318], rbx
mov rax, qword [0x140437340]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
movzx r14d, r9b
mov qword [rsp + 0x28], r8
mov rdi, rdx
mov r15, rcx
lea r8, [0x14033ff78]
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.14001db30
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14000f920
lea rdx, [rsp + 0x60]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r12, rax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1401fd42c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401fd44c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor r13b, r13b
xor esi, esi
cmp r12, 0xffffffffffffffff
je 0x1401fd656
cmp word [rsp + 0x8c], 0x2e
je 0x1401fd656
mov r13b, 1
lea rcx, [0x14042f270]
mov rax, qword [0x14042f270]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x8c]
lea rax, [rsp + 0x8c]
test rax, 0xffffffffffff0000
jne 0x1401fd4c9
movzx edi, cx
xor edx, edx
mov ecx, edi
call fcn.140001440
test rax, rax
je 0x1401fd5b9
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140002960
jmp 0x1401fd5b9
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x8c]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x1401fd53b
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x1401fd5b9
cmp dword [rdx + 0x10], eax
jge 0x1401fd510
cmp dword [rbx - 0xc], eax
jl 0x1401fd66d
mov dword [rbx - 0x10], esi
mov word [rbx], si
jmp 0x1401fd5b9
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401fd527
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
jmp 0x1401fd5b9
mov ebp, dword [rbx - 0x10]
lea rsi, [rsp + 0x8c]
sub rsi, rbx
sar rsi, 1
test ecx, ecx
js 0x1401fd690
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x1401fd576
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.140002650
mov rbx, qword [rsp + 0x20]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp rsi, rbp
lea rbp, [rax + rax]
mov r9, rbp
ja 0x1401fd59a
lea r8, [rbx + rsi*2]
call fcn.1402518dc
jmp 0x1401fd5a7
lea r8, [rsp + 0x8c]
call fcn.140250f34
cmp edi, dword [rbx - 0xc]
jg 0x1401fd685
mov dword [rbx - 0x10], edi
xor esi, esi
mov word [rbx + rbp], si
lea r8, [0x14033ff78]
mov rdx, r15
lea rcx, [rsp + 0x38]
call fcn.14001db30
nop
lea r8, [rsp + 0x20]
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14000f920
nop
mov rdx, rax
mov rcx, qword [rsp + 0x28]
call fcn.140061fc0
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401fd610
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401fd631
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401fd651
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test r14b, r14b
jne 0x1401fd678
lea rdx, [rsp + 0x60]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1401fd69b
jmp 0x1401fd451
mov ecx, 0x80070057
call fcn.140001290
nop
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
jmp 0x1401fd6a8
mov ecx, 0x80070057
call fcn.140001290
int3
mov ecx, 0x80070057
call fcn.140001290
nop
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
movzx eax, r13b
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.140250fd0
mov rbx, qword [rsp + 0x318]
add rsp, 0x2c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret