Function at 0x140038210
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
mov eax, r12d
mov r11d, 0x104
test rdx, rdx
je 0x140038296
mov ecx, r11d
mov rax, rdx
cmp word [rax], r12w
je 0x14003826f
add rax, 2
sub rcx, 1
jne 0x14003825f
mov rax, rcx
mov r9d, 0x80070057
neg rax
sbb r8d, r8d
not r8d
and r8d, r9d
test rcx, rcx
je 0x140038291
mov rax, r11
sub rax, rcx
jmp 0x14003829f
mov rax, r12
jmp 0x14003829f
mov r9d, 0x80070057
mov r8d, r9d
lea r10, [rax + rax]
test r8d, r8d
jns 0x1400382f8
mov r10, r12
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x1400385f1
test byte [rcx + 0x1c], 1
je 0x1400385f1
cmp byte [rcx + 0x19], 2
jb 0x1400385f1
mov rcx, qword [rcx + 0x10]
mov edx, 0x19
mov dword [rsp + 0x20], r8d
mov r9, rbx
lea r8, [0x140045f80]
call fcn.14000468c
jmp 0x1400385f1
mov rax, r12
test rdi, rdi
je 0x140038335
mov rdx, r11
mov rax, rdi
cmp word [rax], r12w
je 0x140038316
add rax, 2
sub rdx, 1
jne 0x140038306
mov rax, rdx
neg rax
sbb ecx, ecx
not ecx
and ecx, r9d
test rdx, rdx
je 0x140038330
mov rax, r11
sub rax, rdx
jmp 0x140038338
mov rax, r12
jmp 0x140038338
mov ecx, r9d
test ecx, ecx
js 0x140038341
add rax, rax
jmp 0x140038344
mov rax, r12
test ecx, ecx
jns 0x14003839b
mov r10, qword [0x14004d128]
lea rax, [0x14004d128]
cmp r10, rax
je 0x1400385f1
test byte [r10 + 0x1c], 1
je 0x1400385f1
cmp byte [r10 + 0x19], 2
jb 0x1400385f1
mov dword [rsp + 0x28], ecx
mov edx, 0x1a
mov rcx, qword [r10 + 0x10]
lea r8, [0x140045f80]
mov qword [rsp + 0x20], rbx
mov r9, rdi
call fcn.14000b974
jmp 0x1400385f1
add rax, r10
cmp rax, 0x206
jb 0x1400383f3
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x1400385f1
test byte [rcx + 0x1c], 1
je 0x1400385f1
cmp byte [rcx + 0x19], 2
jb 0x1400385f1
mov rcx, qword [rcx + 0x10]
lea r8, [0x140045f80]
mov edx, 0x1b
mov qword [rsp + 0x20], rbx
mov r9, rdi
call fcn.140004560
jmp 0x1400385f1
mov r8, rbx
lea rcx, [rsp + 0x280]
mov edx, 0x208
call fcn.140004054
mov r8d, eax
test eax, eax
jns 0x14003844d
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x1400385f1
test byte [rcx + 0x1c], 1
je 0x1400385f1
cmp byte [rcx + 0x19], 2
jb 0x1400385f1
mov edx, 0x1c
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x28], r8d
jmp 0x140038382
mov r8, rdi
lea rcx, [rsp + 0x280]
call fcn.140018b5c
mov r8d, eax
test eax, eax
jns 0x140038496
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x1400385f1
test byte [rcx + 0x1c], 1
je 0x1400385f1
cmp byte [rcx + 0x19], 2
jb 0x1400385f1
mov edx, 0x1d
jmp 0x14003843f
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 0x140038513
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
call fcn.14000425c
mov r8d, eax
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x1400385f1
test byte [rcx + 0x1c], 1
je 0x1400385f1
cmp byte [rcx + 0x19], 2
jb 0x1400385f1
lea edx, [rsi + 0x1f]
jmp 0x14003843f
mov edi, 0x102
cmp word [rsp + 0x5c], 0x2e
jne 0x140038530
movzx eax, word [rsp + 0x5e]
cmp ax, 0x2e
je 0x140038543
test ax, ax
je 0x140038543
lea r9, [rsp + 0x5c]
mov r8d, r15d
mov rdx, r14
mov rcx, rbx
call fcn.140037c00
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 0x1400385e2
cmp byte [rbp + 0xa5], r12b
jne 0x1400385a7
cmp byte [rbp + 0xa6], r12b
jne 0x1400385a7
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 0x1400385a7
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 0x140038518
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x1400385e2
test byte [rcx + 0x1c], 1
je 0x1400385e2
cmp byte [rcx + 0x19], 5
jb 0x1400385e2
mov rcx, qword [rcx + 0x10]
lea r9, [rbp + 0x2a0]
mov edx, 0xfc
lea r8, [0x140045600]
call fcn.14000bb40
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.140040f60
add rsp, 0x4a0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret