Function at 0x10000d0f8
Capabilities:
Enumerate files on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x538
mov rax, qword [0x100028110]
xor rax, rsp
mov qword [rsp + 0x520], rax
mov r15, r9
mov r14, r8
mov r13, rdx
mov rdi, rcx
mov rcx, qword [0x100028c90]
lea rax, [0x100028c90]
cmp rcx, rax
je 0x10000d159
bt dword [rcx + 0x1c], 0x1d
jae 0x10000d159
mov rcx, qword [rcx + 0x10]
lea r8, [0x100005dc8]
mov edx, 0xd
call fcn.10000963c
lea rdx, [0x100006c18]
lea rcx, [rsp + 0x28]
mov r9d, 1
mov r8d, 0x8b
call fcn.10000cb94
xor ecx, ecx
or rax, 0xffffffffffffffff
mov qword [rsp + 0x70], rax
mov r12, rax
lea rax, [0x100005d20]
mov qword [rsp + 0x60], rax
mov esi, ecx
mov dword [rsp + 0x20], ecx
mov eax, 0x9b
mov ebp, ecx
mov ebx, ecx
mov qword [rsp + 0x68], rcx
cmp rdi, rcx
jne 0x10000d1bb
mov dword [rsp + 0x28], 0x80070057
mov word [rsp + 0x2e], ax
jmp 0x10000d36b
mov word [rsp + 0x2c], ax
mov eax, 0x9c
cmp r13, rcx
je 0x10000d1a9
mov word [rsp + 0x2c], ax
mov eax, 0x9d
cmp r14, rcx
je 0x10000d1a9
mov word [rsp + 0x2c], ax
mov eax, 0x9e
cmp r15, rcx
je 0x10000d1a9
mov dword [r13], ecx
mov dword [r14], ecx
mov dword [rsp + 0x28], ecx
mov dword [r15], ecx
lea rcx, [rsp + 0x80]
xor edx, edx
mov r8d, 0x250
mov word [rsp + 0x2c], ax
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x2d0]
xor edx, edx
mov r8d, 0x250
call sub.msvcrt.dll_memset
lea r9, [0x100005de8]
lea rdx, [0x100006c30]
lea rcx, [rsp + 0x60]
mov r8, rdi
call fcn.10000ff50
mov dword [rsp + 0x28], eax
test eax, eax
mov eax, 0xaa
js 0x10000d1b1
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x2d0]
mov word [rsp + 0x2c], ax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x70], rax
cmp rax, 0xffffffffffffffff
je 0x10000d27c
mov dword [rsp + 0x20], 1
lea r9, [0x100005de8]
lea rdx, [0x100006c40]
lea rcx, [rsp + 0x60]
mov r8, rdi
call fcn.10000ff50
mov dword [rsp + 0x28], eax
test eax, eax
mov eax, 0xb5
js 0x10000d1b1
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x80]
mov word [rsp + 0x2c], ax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x10000d35d
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0xac]
repne scasw ax, word [rdi]
not rcx
dec rcx
movsxd rdi, ecx
movzx eax, word [rsp + rdi*2 + 0xa2]
sub eax, 0x30
cmp eax, ebx
cmova ebx, eax
inc ebp
cmp ebx, 7
ja 0x10000d356
cmp ebp, 7
ja 0x10000d356
lea rdx, [rsp + 0x80]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10000d334
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x12
jne 0x10000d33b
and dword [rsp + 0x28], 0
mov eax, 0xd8
mov word [rsp + 0x2c], ax
cmp esi, 0x12
je 0x10000d35d
jmp 0x10000d2e7
movzx eax, ax
or eax, 0x80070000
test esi, esi
cmovle eax, esi
mov dword [rsp + 0x28], eax
mov eax, 0xd8
jmp 0x10000d1b1
mov ebp, 7
mov ebx, ebp
mov eax, dword [rsp + 0x20]
mov dword [r13], eax
mov dword [r14], ebp
mov dword [r15], ebx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [rsp + 0x28]
lea rcx, [rsp + 0x60]
call fcn.10000f9a4
lea rcx, [rsp + 0x28]
call fcn.10000ccac
mov eax, edi
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.1000244e0
add rsp, 0x538
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret