Function at 0x1400569d0
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
mov eax, 0x2a8
call fcn.14005d7e0
sub rsp, rax
mov rax, qword [0x1400ac2c8]
xor rax, rsp
mov qword [rsp + 0x290], rax
xor r12d, r12d
movsxd r8, edx
mov rsi, rcx
mov ebp, r12d
mov rdi, r8
test edx, edx
jle 0x140056a2c
mov eax, r12d
lea ecx, [r12 + 1]
movzx edx, word [rsi + rax*2]
cmp dx, 0x2f
je 0x140056a20
cmp dx, 0x5c
jne 0x140056a22
mov ebp, ecx
inc ecx
inc rax
cmp rax, rdi
jl 0x140056a10
movsxd rax, ebp
mov edx, ebp
cmp rax, rdi
jge 0x140056a50
movzx ecx, word [rsi + rax*2]
cmp cx, 0x2a
je 0x140056a50
cmp cx, 0x3f
je 0x140056a50
inc edx
inc rax
cmp rax, rdi
jl 0x140056a36
mov qword [rsp + 0x2e0], rbx
mov qword [rsp + 0x2a0], r15
cmp edx, r8d
je 0x140056c44
movzx ebx, word [rsi + r8*2]
lea rdx, [rsp + 0x40]
mov rcx, rsi
mov word [rsi + r8*2], r12w
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov word [rsi + rdi*2], bx
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140056c44
test ebp, ebp
je 0x140056ac1
mov qword [rsp + 0x38], r12
mov r9d, ebp
mov qword [rsp + 0x30], r12
mov r8, rsi
mov dword [rsp + 0x28], r12d
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
jmp 0x140056ac4
mov edi, r12d
mov qword [rsp + 0x2e8], r14
nop dword [rax]
cmp word [rsp + 0x6c], 0x2e
jne 0x140056af8
movzx eax, word [rsp + 0x6e]
test ax, ax
je 0x140056c16
cmp ax, 0x2e
jne 0x140056af8
cmp word [rsp + 0x70], r12w
je 0x140056c16
mov ebx, dword [0x1400ad53c]
mov ecx, dword [0x1400ad548]
inc ebx
cmp ebx, ecx
jl 0x140056b4c
mov eax, ebx
sub eax, ecx
add ecx, 0x40
and eax, 0xffffffc0
add eax, ecx
mov rcx, qword [0x1400ad540]
movsxd rdx, eax
shl rdx, 3
mov dword [0x1400ad548], eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov rcx, rax
test rax, rax
je 0x140056c2c
mov qword [0x1400ad540], rax
movsxd rax, ebx
mov qword [rcx + rax*8], r12
jmp 0x140056b5a
mov rax, qword [0x1400ad540]
movsxd rcx, ebx
mov qword [rax + rcx*8], r12
mov qword [rsp + 0x38], r12
lea r8, [rsp + 0x6c]
mov qword [rsp + 0x30], r12
mov r9d, 0xffffffff
mov dword [rsp + 0x28], r12d
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r14d, eax
add eax, edi
movsxd rcx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140056c2c
test edi, edi
je 0x140056bca
mov qword [rsp + 0x38], r12
mov r9d, ebp
mov qword [rsp + 0x30], r12
mov r8, rsi
mov dword [rsp + 0x28], edi
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [rsp + 0x38], r12
lea r8, [rsp + 0x6c]
mov qword [rsp + 0x30], r12
mov r9d, 0xffffffff
movsxd rax, edi
xor edx, edx
add rax, rbx
mov dword [rsp + 0x28], r14d
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdx, dword [0x1400ad53c]
mov rax, qword [0x1400ad540]
mov qword [rax + rdx*8], rbx
inc edx
mov dword [0x1400ad53c], edx
lea rdx, [rsp + 0x40]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140056ad0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x2e8]
mov eax, 1
jmp 0x140056c46
xor eax, eax
mov r15, qword [rsp + 0x2a0]
mov rbx, qword [rsp + 0x2e0]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14005d840
add rsp, 0x2a8
pop r12
pop rdi
pop rsi
pop rbp
ret