Function at 0x14003a374
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 [0x14004d298]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov rdi, qword [rsp + 0x500]
xor r12d, r12d
mov r15d, r9d
mov r14, r8
mov rbx, rdx
mov rbp, rcx
test rdx, rdx
je 0x14003a72a
mov edx, 0x104
mov rax, rbx
mov r9d, edx
cmp word [rax], r12w
je 0x14003a3d3
add rax, 2
sub r9, 1
jne 0x14003a3c3
mov rax, r9
mov ecx, 0x80070057
neg rax
sbb r8d, r8d
not r8d
and r8d, ecx
test r9, r9
je 0x14003a730
mov rax, rdx
sub rax, r9
add rax, rax
neg r9
sbb r10, r10
and r10, rax
test rdi, rdi
je 0x14003a6e4
mov r9, rdx
mov rax, rdi
cmp word [rax], r12w
je 0x14003a421
add rax, 2
sub r9, 1
jne 0x14003a411
mov rax, r9
neg rax
sbb r8d, r8d
not r8d
and r8d, ecx
test r9, r9
je 0x14003a6e7
mov rcx, rdx
sub rcx, r9
add rcx, rcx
neg r9
sbb rax, rax
and rax, rcx
add rax, r10
cmp rax, 0x206
jb 0x14003a4a3
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x14003a76c
test byte [rcx + 0x1c], 1
je 0x14003a76c
cmp byte [rcx + 0x19], 2
jb 0x14003a76c
mov rcx, qword [rcx + 0x10]
lea r8, [0x140047130]
mov edx, 0x1b
mov qword [rsp + 0x20], rbx
mov r9, rdi
call fcn.14000a4e8
jmp 0x14003a76c
lea rax, [rsp + 0x280]
mov r8, rbx
sub r8, rax
lea rcx, [rsp + 0x280]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x14003a4dc
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14003a4dc
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14003a4b9
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r12w
mov rax, rdx
neg rax
sbb r8d, r8d
not r8d
and r8d, 0x8007007a
test rdx, rdx
jne 0x14003a538
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x14003a76c
test byte [rcx + 0x1c], 1
je 0x14003a76c
cmp byte [rcx + 0x19], 2
jb 0x14003a76c
mov edx, 0x1c
jmp 0x14003a70b
mov r8, rdi
lea rcx, [rsp + 0x280]
call fcn.140017968
mov r8d, eax
test eax, eax
jns 0x14003a584
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x14003a76c
test byte [rcx + 0x1c], 1
je 0x14003a76c
cmp byte [rcx + 0x19], 2
jb 0x14003a76c
mov edx, 0x1d
jmp 0x14003a70b
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]
nop dword [rax + rax]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14003a601
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
call fcn.140002f1c
mov r8d, eax
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x14003a76c
test byte [rcx + 0x1c], 1
je 0x14003a76c
cmp byte [rcx + 0x19], 2
jb 0x14003a76c
lea edx, [rsi + 0x1f]
jmp 0x14003a70b
mov edi, 0x102
cmp word [rsp + 0x5c], 0x2e
jne 0x14003a61e
movzx eax, word [rsp + 0x5e]
cmp ax, 0x2e
je 0x14003a631
test ax, ax
je 0x14003a631
lea r9, [rsp + 0x5c]
mov r8d, r15d
mov rdx, r14
mov rcx, rbx
call fcn.140039cfc
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
je 0x14003a6d0
cmp byte [rbp + 0xa5], r12b
jne 0x14003a695
cmp byte [rbp + 0xa6], r12b
jne 0x14003a695
mov rcx, qword [rbp + 0x300]
xor edx, edx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
nop dword [rax + rax]
cmp eax, edi
jne 0x14003a695
mov rcx, qword [rbp + 0x2f8]
xor edx, edx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
nop dword [rax + rax]
cmp eax, edi
je 0x14003a606
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x14003a6d0
test byte [rcx + 0x1c], 1
je 0x14003a6d0
cmp byte [rcx + 0x19], 5
jb 0x14003a6d0
mov rcx, qword [rcx + 0x10]
lea r9, [rbp + 0x2a0]
mov edx, 0xfc
lea r8, [0x1400467b0]
call fcn.140019588
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
nop dword [rax + rax]
jmp 0x14003a76c
mov r8d, ecx
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x14003a76c
test byte [rcx + 0x1c], 1
je 0x14003a76c
cmp byte [rcx + 0x19], 2
jb 0x14003a76c
mov edx, 0x1a
mov rcx, qword [rcx + 0x10]
mov r9, rdi
mov dword [rsp + 0x28], r8d
lea r8, [0x140047130]
mov qword [rsp + 0x20], rbx
call fcn.1400193d8
jmp 0x14003a76c
mov r8d, 0x80070057
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x14003a76c
test byte [rcx + 0x1c], 1
je 0x14003a76c
cmp byte [rcx + 0x19], 2
jb 0x14003a76c
mov rcx, qword [rcx + 0x10]
mov edx, 0x19
mov dword [rsp + 0x20], r8d
mov r9, rbx
lea r8, [0x140047130]
call fcn.14000a60c
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.140001e70
add rsp, 0x4a0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret