Function at 0x180047870
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rsi
push r12
lea rbp, [rsp - 0x2f0]
sub rsp, 0x3f0
mov rsi, rdx
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.1800087e0
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, rdx
sub rax, rcx
cmp rax, 2
jb 0x1800478cf
lea rax, [rcx + 2]
cmp rdx, 0xf
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
cmova rax, qword [rsp + 0x50]
mov word [rax + rcx], 0x2a5c
mov byte [rax + rcx + 2], 0
jmp 0x1800478ee
lea r9, [0x180171f24]
mov qword [rsp + 0x20], 2
mov edx, 2
lea rcx, [rsp + 0x50]
call fcn.1800092d0
cmp qword [rsp + 0x68], 0xf
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x410], rbx
lea rdx, [rbp + 0x90]
cmova rcx, qword [rsp + 0x50]
mov qword [rsp + 0x418], rdi
mov qword [rsp + 0x420], r13
mov qword [rsp + 0x3e8], r14
mov qword [rsp + 0x3e0], r15
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x180047b31
xor r13d, r13d
nop dword [rax]
nop dword [rax + rax]
xorps xmm0, xmm0
mov qword [rsp + 0x40], r13
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x48], r13
lea rax, [rbp + 0xbc]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r13b
jne 0x180047970
lea rdx, [rbp + 0xbc]
lea rcx, [rsp + 0x30]
call fcn.180008e80
mov r15, qword [rsp + 0x48]
lea rbx, [rsp + 0x30]
mov r14, qword [rsp + 0x30]
cmp r15, 0xf
mov rdi, qword [rsp + 0x40]
cmova rbx, r14
test rdi, rdi
je 0x1800479f8
xor edx, edx
lea rcx, [rbp - 0x70]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
lea rcx, [rdi - 1]
mov byte [rbp - 0x42], 1
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
add rax, rbx
movzx ecx, byte [rax]
cmp byte [rbp + rcx - 0x70], r13b
jne 0x1800479f3
nop
cmp rax, rbx
je 0x1800479f8
movzx ecx, byte [rax - 1]
dec rax
cmp byte [rbp + rcx - 0x70], r13b
je 0x1800479e0
sub rax, rbx
jmp 0x1800479ff
mov rax, 0xffffffffffffffff
lea rcx, [rax + 1]
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], r13
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
cmp rdi, rcx
jb 0x180047bac
sub rdi, rcx
lea rdx, [rsp + 0x30]
mov r8, 0xffffffffffffffff
cmp rdi, r8
cmovb r8, rdi
cmp r15, 0xf
cmova rdx, r14
add rdx, rcx
lea rcx, [rsp + 0x70]
call fcn.180008e80
mov rdx, qword [rbp - 0x78]
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x70]
cmp rdx, 0xf
cmova rax, rcx
cmp qword [rbp - 0x80], 4
jne 0x180047a70
cmp dword [rax], 0x72637369
jne 0x180047a70
mov bl, 1
jmp 0x180047a72
xor bl, bl
cmp rdx, 0xf
jbe 0x180047aa5
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180047aa0
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180047b6c
call fcn.1800e19f8
test bl, bl
je 0x180047ad7
mov rax, qword [rsi + 8]
cmp rax, qword [rsi + 0x10]
je 0x180047ac7
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.1800087e0
add qword [rsi + 8], 0x20
jmp 0x180047ad7
lea r8, [rsp + 0x30]
mov rdx, rax
mov rcx, rsi
call fcn.18009fa10
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x180047b10
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180047b0b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180047b6c
call fcn.1800e19f8
lea rdx, [rbp + 0x90]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x180047950
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x180047b78
mov rcx, qword [rsp + 0x50]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180047b73
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180047b73
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800e19f8
mov r15, qword [rsp + 0x3e0]
mov r14, qword [rsp + 0x3e8]
mov r13, qword [rsp + 0x420]
mov rdi, qword [rsp + 0x418]
mov rbx, qword [rsp + 0x410]
add rsp, 0x3f0
pop r12
pop rsi
pop rbp
ret
call fcn.180008cd0
int3