Function at 0x140036890
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
sub rsp, 0x88
mov rsi, qword [rsp + 0xd8]
xor ebx, ebx
mov rdx, qword [rsi + 0x20470]
mov rax, qword [rsi + 0x20480]
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x58], rax
mov qword [rsi + 0x20498], rdx
cmp qword [rsi + 0x20478], rbx
jne 0x140036912
cmp qword [rsi + 0x20488], 2
jne 0x140036912
mov rax, qword [rsi + 0x20460]
cmp word [rax + 2], 0x3a
jne 0x140036912
mov dword [rsi + 0x10250], 0x2e
mov qword [rsi + 0x20478], 1
mov byte [rsp + 0x40], bl
jmp 0x14003691e
movzx eax, byte [rsp + 0xd0]
mov byte [rsp + 0x40], al
mov r8, qword [rsi + 0x20478]
lea rcx, [rsi + 0x250]
mov eax, 0x8000
lea rcx, [rcx + rdx*2]
sub rax, rdx
mov qword [rsp + 0x68], rax
cmp r8, rax
jb 0x140036951
mov eax, 1
add rsp, 0x88
pop rsi
pop rbx
ret
mov qword [rsp + 0x80], rbp
lea r8, [r8*2 + 2]
lea rdx, [rsi + 0x10250]
mov qword [rsp + 0x78], rdi
call fcn.1400a9a00
lea rcx, [rsi + 0x250]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
mov rdi, rax
setne bl
test ebx, ebx
je 0x1400369c0
mov ebp, dword [rsp + 0xc8]
nop word [rax + rax]
mov edx, ebp
mov rcx, rsi
call fcn.140051420
test al, al
je 0x1400369c0
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, eax
test eax, eax
jne 0x1400369a0
mov rbp, qword [0x140100a58]
mov qword [rsp + 0x60], rbp
mov qword [rbp + 0x10], rsi
test ebx, ebx
je 0x140036b71
nop dword [rax + rax]
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 0x20]
cmp byte [rcx], 0x75
jne 0x140036a30
mov rbp, qword [rsp + 0xa8]
mov rsi, rax
nop dword [rax]
mov rcx, qword [rcx + 0x20]
lea r9, [rsp + 0x48]
mov r8, rbp
mov edx, 2
call fcn.14002ce50
mov rcx, qword [rsi + 0x20]
mov ebx, eax
mov rax, qword [rsp + 0x48]
cmp rax, rcx
je 0x140036a00
mov rsi, qword [rsp + 0xd8]
jmp 0x140036a4e
mov r8, qword [rsp + 0xa8]
lea r9, [rsp + 0x48]
mov edx, 3
call fcn.14002ce50
mov ebx, eax
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140036a81
cmp ebx, 6
jne 0x140036d75
cmp rax, qword [rsp + 0xa0]
je 0x140036a8b
mov rcx, qword [rsp + 0xb8]
mov qword [rcx], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
jmp 0x140036d5e
cmp ebx, 1
je 0x140036a8b
cmp ebx, 6
jne 0x140036a71
mov rbx, qword [rsp + 0xc0]
test rbx, rbx
je 0x140036b2e
mov rax, qword [0x140100a58]
mov qword [0x140107950], rbx
cmp byte [rax + 0x139], 0
je 0x140036afb
movsxd rax, dword [0x140105dd8]
lea rcx, [0x140000000]
mov qword [rcx + rax*8 + 0x106420], rbx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
movsxd rdx, dword [0x140105dd8]
lea r8, [0x140000000]
mov dword [r8 + rdx*4 + 0x105de0], eax
inc edx
cmp edx, 0x190
mov eax, 0
cmovge edx, eax
mov dword [0x140105dd8], edx
xor r9d, r9d
or r8, 0xffffffffffffffff
xor edx, edx
mov rcx, rbx
call fcn.14006c300
mov ebx, eax
cmp eax, 1
jne 0x140036a71
mov rcx, qword [0x140107150]
lea ebx, [rax + 4]
call fcn.14005ead0
test eax, eax
jne 0x140036a71
mov ebp, dword [rsp + 0xc8]
nop word [rax + rax]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, eax
test eax, eax
je 0x140036b60
mov edx, ebp
mov rcx, rsi
call fcn.140051420
test al, al
jne 0x140036b40
mov rbp, qword [rsp + 0x60]
inc qword [rbp + 8]
test ebx, ebx
jne 0x1400369e0
cmp rdi, 0xffffffffffffffff
je 0x140036b80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [rsp + 0x40], 0
je 0x140036d59
mov rcx, qword [rsp + 0x50]
mov rdx, rsi
lea rax, [rsi + rcx*2]
lea rcx, [rsi + 0x250]
mov dword [rax + 0x250], 0x2a
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0xd8], rax
cmp rax, 0xffffffffffffffff
je 0x140036d59
mov eax, 0x8000
sub rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
nop
test byte [rsi], 0x10
je 0x140036d32
cmp word [rsi + 0x2c], 0x2e
jne 0x140036bfe
movzx eax, word [rsi + 0x2e]
test ax, ax
je 0x140036d32
cmp ax, 0x2e
jne 0x140036bfe
cmp word [rsi + 0x30], 0
je 0x140036d32
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rsi + rdi*2 + 0x2c], 0
jne 0x140036c02
lea rax, [rdi + 1]
cmp rax, qword [rsp + 0x68]
jae 0x140036d32
mov rax, qword [rsp + 0x50]
lea rbx, [rdi + rdi]
add rax, 0x128
lea rdx, [rsi + 0x2c]
mov r8, rbx
lea rcx, [rsi + rax*2]
call fcn.1400a9a00
mov rcx, qword [rsp + 0x50]
lea rdx, [rsi + 0x234]
lea rax, [rsi + rcx*2]
mov dword [rbx + rax + 0x250], 0x5c
lea rax, [rcx + 1]
add rax, rdi
mov qword [rsi + 0x20470], rax
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140036c70
test rbx, rbx
jne 0x140036c86
lea rdx, [rsi + 0x2c]
mov rbx, rdi
lea rax, [rbx + 1]
cmp rax, qword [rsp + 0x60]
jae 0x140036d32
mov rcx, qword [rsp + 0x58]
lea rdi, [rbx + rbx]
mov r8, rdi
lea rbp, [rsi + rcx*2]
lea rcx, [rbp + 0x10458]
call fcn.1400a9a00
mov rax, qword [rsp + 0x58]
mov rdx, qword [rsp + 0xa8]
inc rax
mov rcx, qword [rsp + 0xa0]
add rax, rbx
mov dword [rdi + rbp + 0x10458], 0x5c
mov rbp, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0xb0]
mov r9, rbp
mov qword [rsi + 0x20480], rax
mov r8, rdi
movzx eax, byte [rsp + 0x40]
mov qword [rsp + 0x38], rsi
mov byte [rsp + 0x30], al
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x20], rax
call fcn.140036890
mov ebx, eax
cmp eax, 1
jne 0x140036d9b
cmp byte [rdi], 0
jne 0x140036d4b
cmp qword [rbp], 0
jne 0x140036d4b
mov rcx, qword [rsp + 0xd8]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140036bd0
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
mov rbp, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x78]
add rsp, 0x88
pop rsi
pop rbx
ret
cmp rax, qword [rsp + 0xa0]
jne 0x140036a66
mov rax, qword [rsp + 0xb0]
mov rcx, rdi
mov byte [rax], 1
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
jmp 0x140036d5e
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
jmp 0x140036d5e