Function at 0x14005b7a0
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 rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x5d8]
sub rsp, 0x6d8
mov rbx, qword [rbp + 0x638]
lea rcx, [rbp + 0x1b0]
mov r8d, 0x103
mov rdx, rbx
call qword [sym.imp.MSVCR100.dll_wcsncpy]
xor esi, esi
lea rcx, [rbp + 0x1b0]
lea edx, [rsi + 0x5c]
mov word [rbp + 0x3b6], si
call qword [sym.imp.MSVCR100.dll_wcsrchr]
test rax, rax
je 0x14005b84d
lea rdi, [rax + 2]
lea rdx, [rbp + 0x3c0]
mov rcx, rdi
sub rdx, rdi
nop word [rax + rax]
movzx eax, word [rcx]
add rcx, 2
mov word [rdx + rcx - 2], ax
test ax, ax
jne 0x14005b820
mov word [rdi], si
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x1b0]
xor eax, eax
repne scasw ax, word [rdi]
not rcx
lea rdi, [rcx - 1]
jmp 0x14005b873
mov rdx, rsi
movzx eax, word [rbp + rdx + 0x1b0]
add rdx, 2
mov word [rbp + rdx + 0x3be], ax
test ax, ax
jne 0x14005b850
mov word [rbp + 0x1b0], si
mov rdi, rsi
lea rdx, [rsp + 0x60]
mov rcx, rbx
mov qword [rsp + 0x40], rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor ebx, ebx
cmp rax, 0xffffffffffffffff
mov rsi, rax
mov qword [rsp + 0x48], rax
setne bl
test ebx, ebx
je 0x14005b94a
mov esi, dword [rbp + 0x628]
test byte [rsp + 0x60], 0x10
je 0x14005b8ce
cmp esi, 1
je 0x14005b8ff
cmp word [rbp - 0x74], 0x2e
jne 0x14005b8d3
movzx eax, word [rbp - 0x72]
test ax, ax
je 0x14005b8ff
cmp ax, 0x2e
jne 0x14005b8d3
cmp word [rbp - 0x70], 0
jmp 0x14005b8d1
cmp esi, 2
je 0x14005b8ff
cmp word [rbp + 0x1b0], 0
je 0x14005b940
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x74]
repne scasw ax, word [rdi]
mov rdi, qword [rsp + 0x40]
not rcx
lea rax, [rcx + rdi - 1]
cmp rax, 0x104
jb 0x14005b917
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, eax
test eax, eax
jne 0x14005b8a5
jmp 0x14005b940
lea r8, [rcx + rcx]
add rdi, rdi
lea rdx, [rbp - 0x74]
lea rcx, [rbp + rdi - 0x74]
call qword [sym.imp.MSVCR100.dll_memmove]
lea rdx, [rbp + 0x1b0]
lea rcx, [rbp - 0x74]
mov r8, rdi
call sub.MSVCR100.dll_memcpy
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
mov rax, qword [0x14013b0f8]
mov qword [rsp + 0x58], rax
test ebx, ebx
je 0x14005bb78
nop
mov rbx, qword [rbp + 0x600]
lea rcx, [rsp + 0x60]
mov qword [rax + 0x10], rcx
mov rcx, qword [rbx + 0x20]
cmp byte [rcx], 0x75
jne 0x14005b9ad
mov rsi, qword [rbp + 0x608]
mov rcx, qword [rcx + 0x20]
lea r9, [rsp + 0x50]
mov r8, rsi
mov edx, 2
call fcn.1400516d0
mov rcx, qword [rbx + 0x20]
mov edi, eax
mov rax, qword [rsp + 0x50]
cmp rax, rcx
je 0x14005b980
mov rsi, qword [rsp + 0x48]
jmp 0x14005b9ca
mov r8, qword [rbp + 0x608]
lea r9, [rsp + 0x50]
mov edx, 3
call fcn.1400516d0
mov edi, eax
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x14005b9fe
cmp edi, 6
jne 0x14005bd0d
cmp rax, rbx
je 0x14005ba08
mov r9, qword [rbp + 0x618]
mov qword [r9], rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
add rsp, 0x6d8
pop rdi
pop rsi
pop rbx
pop rbp
ret
cmp edi, 1
je 0x14005ba08
cmp edi, 6
jne 0x14005b9e7
mov rdi, qword [rbp + 0x620]
test rdi, rdi
je 0x14005bab9
mov rax, qword [0x14013b0f8]
mov qword [0x140143818], rdi
cmp byte [rax + 0x139], 0
je 0x14005ba6f
movsxd rax, dword [0x1401405f8]
lea rbx, [0x140000000]
mov qword [rbx + rax*8 + 0x140600], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
movsxd rdx, dword [0x1401405f8]
mov dword [rbx + rdx*4 + 0x13eec0], eax
inc edx
mov eax, 0
cmp edx, 0x190
cmovge edx, eax
mov dword [0x1401405f8], edx
cmp qword [0x140141ff0], 0xffffffffffffffff
je 0x14005ba81
mov rcx, rdi
call fcn.140008230
xor r9d, r9d
or r8, 0xffffffffffffffff
xor edx, edx
mov rcx, rdi
call fcn.1400af9f0
mov edi, eax
cmp eax, 1
jne 0x14005b9e7
mov rcx, qword [0x14013f5a0]
lea edi, [rax + 4]
call fcn.14009e0f0
test eax, eax
setne al
test al, al
jne 0x14005b9e7
mov edi, dword [rbp + 0x628]
nop
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, eax
test eax, eax
je 0x14005bb62
test byte [rsp + 0x60], 0x10
je 0x14005bb01
cmp edi, 1
je 0x14005bac0
cmp word [rbp - 0x74], 0x2e
jne 0x14005bb06
movzx ecx, word [rbp - 0x72]
test cx, cx
je 0x14005bac0
cmp cx, 0x2e
jne 0x14005bb06
cmp word [rbp - 0x70], 0
jmp 0x14005bb04
cmp edi, 2
je 0x14005bac0
cmp word [rbp + 0x1b0], 0
je 0x14005bb62
mov rdx, qword [rsp + 0x40]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x74]
repne scasw ax, word [rdi]
mov edi, dword [rbp + 0x628]
not rcx
lea rax, [rcx + rdx - 1]
cmp rax, 0x104
jae 0x14005bac0
lea rdi, [rdx + rdx]
lea r8, [rcx + rcx]
lea rdx, [rbp - 0x74]
lea rcx, [rbp + rdi - 0x74]
call qword [sym.imp.MSVCR100.dll_memmove]
lea rdx, [rbp + 0x1b0]
lea rcx, [rbp - 0x74]
mov r8, rdi
call sub.MSVCR100.dll_memcpy
mov rax, qword [rsp + 0x58]
inc qword [rax + 8]
test ebx, ebx
jne 0x14005b960
mov rdi, qword [rsp + 0x40]
cmp rsi, 0xffffffffffffffff
je 0x14005bb87
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [rbp + 0x630], 0
je 0x14005bd46
cmp rdi, 0x100
ja 0x14005bd46
lea rdx, [rbp + rdi*2 + 0x1b0]
lea rcx, [0x140120890]
sub rdx, rcx
nop word [rax + rax]
movzx eax, word [rcx]
add rcx, 2
mov word [rdx + rcx - 2], ax
test ax, ax
jne 0x14005bbc0
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14005bd46
mov r10, qword [rsp + 0x40]
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x3c0]
xor eax, eax
repne scasw ax, word [rdi]
not rcx
lea rsi, [r10 + rcx - 1]
nop dword [rax]
test byte [rsp + 0x60], 0x10
je 0x14005bcf1
cmp word [rbp - 0x74], 0x2e
jne 0x14005bc40
movzx eax, word [rbp - 0x72]
test ax, ax
je 0x14005bcf1
cmp ax, 0x2e
jne 0x14005bc40
cmp word [rbp - 0x70], 0
je 0x14005bcf1
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rbp - 0x74]
repne scasw ax, word [rdi]
not rcx
dec rcx
add rcx, rsi
cmp rcx, 0x102
ja 0x14005bcf1
lea r9, [rbp + 0x3c0]
lea r8, [rbp - 0x74]
lea rdx, [0x140120898]
lea rcx, [rbp + r10*2 + 0x1b0]
call qword [sym.imp.MSVCR100.dll__swprintf]
movzx eax, byte [rbp + 0x630]
mov r9, qword [rbp + 0x618]
mov r8, qword [rbp + 0x610]
mov rcx, qword [rbp + 0x600]
lea rdx, [rbp + 0x1b0]
mov qword [rsp + 0x38], rdx
mov rdx, qword [rbp + 0x608]
mov byte [rsp + 0x30], al
mov eax, dword [rbp + 0x628]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x620]
mov qword [rsp + 0x20], rax
call fcn.14005b7a0
mov edi, eax
cmp eax, 1
jne 0x14005bd26
mov rax, qword [rbp + 0x610]
cmp byte [rax], 0
jne 0x14005bd3d
mov rax, qword [rbp + 0x618]
cmp qword [rax], 0
jne 0x14005bd3d
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14005bd3d
mov r10, qword [rsp + 0x40]
jmp 0x14005bc10
cmp rax, rbx
jne 0x14005b9dd
mov r8, qword [rbp + 0x610]
mov byte [r8], 1
jmp 0x14005b9e7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
add rsp, 0x6d8
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
add rsp, 0x6d8
pop rdi
pop rsi
pop rbx
pop rbp
ret