Function at 0x14003536c
Capabilities:
Enumerate files on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x4a0
mov rax, qword [0x1400491f8]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov rdi, qword [rsp + 0x500]
xor r12d, r12d
mov r14d, r9d
mov r15, r8
mov rbx, rdx
mov rbp, rcx
mov eax, r12d
mov r10d, 0x104
test rdx, rdx
je 0x1400353f1
mov ecx, r10d
mov rax, rdx
cmp word [rax], r12w
je 0x1400353cb
add rax, 2
sub rcx, 1
jne 0x1400353bb
mov rax, rcx
mov edx, 0x80070057
neg rax
sbb r8d, r8d
not r8d
and r8d, edx
test rcx, rcx
je 0x1400353ec
mov rax, r10
sub rax, rcx
jmp 0x1400353f9
mov rax, r12
jmp 0x1400353f9
mov edx, 0x80070057
mov r8d, edx
lea r9, [rax + rax]
test r8d, r8d
jns 0x140035452
mov r9, r12
mov rcx, qword [0x140049138]
lea rax, [0x140049138]
cmp rcx, rax
je 0x14003571c
test byte [rcx + 0x1c], 1
je 0x14003571c
cmp byte [rcx + 0x19], 2
jb 0x14003571c
mov rcx, qword [rcx + 0x10]
mov edx, 0x19
mov dword [rsp + 0x20], r8d
mov r9, rbx
lea r8, [0x140041e70]
call fcn.1400040b8
jmp 0x14003571c
mov rax, r12
test rdi, rdi
je 0x140035491
mov rcx, r10
mov rax, rdi
cmp word [rax], r12w
je 0x140035470
add rax, 2
sub rcx, 1
jne 0x140035460
mov rax, rcx
neg rax
sbb r8d, r8d
not r8d
and r8d, edx
test rcx, rcx
je 0x14003548c
mov rax, r10
sub rax, rcx
jmp 0x140035494
mov rax, r12
jmp 0x140035494
mov r8d, edx
test r8d, r8d
js 0x14003549e
add rax, rax
jmp 0x1400354a1
mov rax, r12
test r8d, r8d
jns 0x1400354f8
mov rcx, qword [0x140049138]
lea rax, [0x140049138]
cmp rcx, rax
je 0x14003571c
test byte [rcx + 0x1c], 1
je 0x14003571c
cmp byte [rcx + 0x19], 2
jb 0x14003571c
mov edx, 0x1a
mov rcx, qword [rcx + 0x10]
mov r9, rdi
mov dword [rsp + 0x28], r8d
lea r8, [0x140041e70]
mov qword [rsp + 0x20], rbx
call fcn.140034cb8
jmp 0x14003571c
add rax, r9
cmp rax, 0x206
jb 0x140035550
mov rcx, qword [0x140049138]
lea rax, [0x140049138]
cmp rcx, rax
je 0x14003571c
test byte [rcx + 0x1c], 1
je 0x14003571c
cmp byte [rcx + 0x19], 2
jb 0x14003571c
mov rcx, qword [rcx + 0x10]
lea r8, [0x140041e70]
mov edx, 0x1b
mov qword [rsp + 0x20], rbx
mov r9, rdi
call fcn.140003f94
jmp 0x14003571c
mov r8, rbx
lea rcx, [rsp + 0x280]
mov edx, 0x208
call fcn.140003abc
mov r8d, eax
test eax, eax
jns 0x1400355a1
mov rcx, qword [0x140049138]
lea rax, [0x140049138]
cmp rcx, rax
je 0x14003571c
test byte [rcx + 0x1c], 1
je 0x14003571c
cmp byte [rcx + 0x19], 2
jb 0x14003571c
mov edx, 0x1c
jmp 0x1400354d6
mov r8, rdi
lea rcx, [rsp + 0x280]
call fcn.140035e34
mov r8d, eax
test eax, eax
jns 0x1400355ed
mov rcx, qword [0x140049138]
lea rax, [0x140049138]
cmp rcx, rax
je 0x14003571c
test byte [rcx + 0x1c], 1
je 0x14003571c
cmp byte [rcx + 0x19], 2
jb 0x14003571c
mov edx, 0x1d
jmp 0x1400354d6
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x250
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x280]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14003565e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.140003cb8
mov r8d, eax
mov rcx, qword [0x140049138]
lea rax, [0x140049138]
cmp rcx, rax
je 0x14003571c
test byte [rcx + 0x1c], 1
je 0x14003571c
cmp byte [rcx + 0x19], 2
jb 0x14003571c
lea edx, [rsi + 0x1f]
jmp 0x1400354d6
mov edi, 0x102
cmp word [rsp + 0x5c], 0x2e
jne 0x14003567b
movzx eax, word [rsp + 0x5e]
cmp ax, 0x2e
je 0x14003568e
test ax, ax
je 0x14003568e
lea r9, [rsp + 0x5c]
mov r8d, r14d
mov rdx, r15
mov rcx, rbx
call fcn.140034d84
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
test eax, eax
je 0x140035713
cmp byte [rbp + 0xa5], r12b
jne 0x1400356d8
cmp byte [rbp + 0xa6], r12b
jne 0x1400356d8
mov rcx, qword [rbp + 0x300]
xor edx, edx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
cmp eax, edi
jne 0x1400356d8
mov rcx, qword [rbp + 0x2f8]
xor edx, edx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
cmp eax, edi
je 0x140035663
mov rcx, qword [0x140049138]
lea rax, [0x140049138]
cmp rcx, rax
je 0x140035713
test byte [rcx + 0x1c], 1
je 0x140035713
cmp byte [rcx + 0x19], 5
jb 0x140035713
mov rcx, qword [rcx + 0x10]
lea r9, [rbp + 0x2a0]
mov edx, 0xfc
lea r8, [0x1400414e8]
call fcn.14000a8c4
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.14003d760
add rsp, 0x4a0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret