Function at 0x140052f48
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x140065020]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rdi, r9
mov rbx, rdx
xor esi, esi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
mov rdx, rcx
lea rcx, [rsp + 0x30]
call fcn.14004d58c
nop
cmp qword [rsp + 0x40], rsi
je 0x14005307f
lea rcx, [rsp + 0x30]
call fcn.140053850
test al, al
jne 0x14005307f
lea rcx, [rsp + 0x30]
call fcn.140053758
test al, al
jne 0x14005307f
lea rcx, [rsp + 0x30]
call fcn.1400537d4
test al, al
jne 0x14005307f
mov rcx, qword [rsp + 0x40]
cmp rcx, 2
jb 0x14005306b
lea rax, [rsp + 0x30]
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x48]
cmp r8, 8
cmovae rax, rdx
cmp word [rax], 0x5c
je 0x14005303e
cmp word [rax], 0x2f
je 0x14005303e
cmp rcx, 3
jb 0x14005306b
lea rax, [rsp + 0x30]
cmp r8, 8
cmovae rax, rdx
cmp word [rax + 2], 0x3a
jne 0x14005306b
lea rax, [rsp + 0x30]
cmp r8, 8
cmovae rax, rdx
cmp word [rax + 4], 0x5c
je 0x140053062
cmp word [rax + 4], 0x2f
je 0x140053062
jmp 0x14005306b
lea rax, [rsp + 0x30]
cmp r8, 8
cmovae rax, rdx
cmp word [rax + 2], 0x5c
je 0x14005305b
cmp word [rax + 2], 0x2f
mov al, 1
jne 0x14005305e
mov al, sil
test al, al
jne 0x14005306b
cmp rcx, 0x104
jb 0x14005307f
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1400529e4
test al, al
je 0x1400532a3
mov qword [rsp + 0x70], rsi
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x78], rsi
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.14004d58c
nop
cmp qword [rbx + 0x18], 8
jb 0x1400530a6
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.14004ca9c
xor edx, edx
mov r8d, 0x250
lea rcx, [rbp - 0x70]
call fcn.140058010
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rcx, qword [rsp + 0x70]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8, [rbp - 0x70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140053247
lea r13, [0x14005fab0]
test byte [rbp - 0x70], 0x10
je 0x140053228
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], si
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x50]
call fcn.14004b22c
nop
lea r8, [rsp + 0x50]
mov rcx, qword [rsp + 0x50]
mov r9, qword [rsp + 0x68]
cmp r9, 8
cmovae r8, rcx
cmp qword [rsp + 0x60], 1
jne 0x140053179
mov r10d, 1
lea rax, [0x14005f388]
mov rdx, rax
sub r8, rax
movzx eax, word [rdx]
cmp word [r8 + rdx], ax
jne 0x140053179
add rdx, 2
sub r10, 1
jne 0x140053163
jmp 0x1400531f4
lea rdx, [rsp + 0x50]
cmp r9, 8
cmovae rdx, rcx
cmp qword [rsp + 0x60], 2
jne 0x1400531b1
mov r10d, 2
mov r8, r13
sub rdx, r13
movzx eax, word [r8]
cmp word [rdx + r8], ax
jne 0x1400531b1
add r8, 2
sub r10, 1
jne 0x14005319a
jmp 0x1400531f4
mov rax, qword [rdi + 8]
cmp rax, qword [rdi + 0x10]
je 0x1400531da
mov qword [rax], rsi
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rsi
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.14004d58c
add qword [rdi + 8], 0x20
jmp 0x1400531ea
lea r8, [rsp + 0x50]
mov rdx, rax
mov rcx, rdi
call fcn.14004d6cc
mov rcx, qword [rsp + 0x50]
mov r9, qword [rsp + 0x68]
cmp r9, 8
jb 0x140053228
lea rdx, [r9*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140053223
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140053286
call fcn.140056020
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140053100
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x140053292
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005328d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005328d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140056020
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], si
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1400532e8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400532e3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400532e3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140056020
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.140056000
add rsp, 0x2f0
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret