Function at 0x401af0
Capabilities:
Enumerate files on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x1c8
xor r9d, r9d
mov rdx, qword [rcx]
mov r8, qword [rcx + 8]
lea r12, [rsp + 0x60]
mov r13, rcx
lea rax, [r12 + 0x10]
add r8, rdx
mov rcx, r12
mov qword [rsp + 0x60], rax
call fcn.0048ee80
movabs rax, 0x7fffffffffffffff
sub rax, qword [rsp + 0x68]
cmp rax, 1
jbe 0x401e5e
lea rdx, [0x004a7164]
mov r8d, 2
mov rcx, r12
call fcn.004904d0
lea rdi, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rcx, qword [rsp + 0x60]
mov rbp, rax
lea rax, [r12 + 0x10]
cmp rcx, rax
je 0x401b85
call fcn.004a1d60
lea rbx, [rsp + 0x20]
cmp rbp, 0xffffffffffffffff
je 0x401da0
lea r14, [rsp + 0x40]
lea rsi, [rdi + 0x2c]
lea r15, [r14 + 0x10]
jmp 0x401bca
mov rcx, qword [rsp + 0x20]
lea rax, [rbx + 0x10]
cmp rcx, rax
je 0x401bb6
call fcn.004a1d60
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x401d80
lea rax, [rbx + 0x10]
mov r8, rsi
mov qword [rsp + 0x20], rax
mov edx, dword [r8]
add r8, 4
lea eax, [rdx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x401bd6
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea rdx, [r8 + 2]
mov ecx, eax
cmove r8, rdx
add cl, al
mov rdx, rsi
mov rcx, rbx
sbb r8, 3
xor r9d, r9d
call fcn.0048edc0
test byte [rsp + 0x80], 0x10
je 0x401ba3
lea rdx, [0x004a7181]
mov rcx, rbx
call fcn.0042b100
test eax, eax
je 0x401ba3
lea rdx, [0x004a7183]
mov rcx, rbx
call fcn.0042b100
test eax, eax
je 0x401ba3
mov rdx, qword [r13]
lea rax, [r12 + 0x10]
xor r9d, r9d
mov rcx, r12
mov r8, qword [r13 + 8]
mov qword [rsp + 0x60], rax
add r8, rdx
call fcn.0048ee80
movabs rax, 0x7fffffffffffffff
cmp qword [rsp + 0x68], rax
je 0x401e52
lea rdx, [0x004a7186]
mov r8d, 1
mov rcx, r12
call fcn.004904d0
mov r8, qword [rsp + 0x28]
mov rcx, r12
mov rdx, qword [rsp + 0x20]
call fcn.004904d0
mov qword [rsp + 0x40], r15
mov rcx, qword [rax]
lea rdx, [rax + 0x10]
cmp rcx, rdx
je 0x401e14
mov qword [rsp + 0x40], rcx
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x50], rcx
mov rcx, qword [rax + 8]
mov byte [rax + 0x10], 0
mov qword [rsp + 0x48], rcx
mov qword [rax], rdx
mov qword [rax + 8], 0
mov rcx, qword [rsp + 0x60]
lea rax, [r12 + 0x10]
cmp rcx, rax
je 0x401cfc
call fcn.004a1d60
lea rcx, [0x004d10c0]
call fcn.00419370
test eax, eax
jne 0x401e6a
mov rax, qword [0x004d10a0]
mov rcx, qword [0x004d1090]
sub rax, 0x20
cmp rcx, rax
je 0x401e00
lea rax, [rcx + 0x10]
xor r9d, r9d
mov qword [rcx], rax
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x48]
add r8, rdx
call fcn.0048ee80
add qword [0x004d1090], 0x20
lea rcx, [0x004d10b0]
call fcn.00489dd0
lea rcx, [0x004d10c0]
call fcn.00419610
mov rcx, qword [rsp + 0x40]
cmp rcx, r15
je 0x401ba3
call fcn.004a1d60
jmp 0x401ba3
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
add rsp, 0x1c8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [0x004ac0f0]
mov r8d, 0x19
lea rdx, str.Error_opening_directory:
call fcn.0049c0f0
mov r8, qword [r13 + 8]
mov rdx, qword [r13]
mov rcx, qword [0x004ac0f0]
call fcn.0049c0f0
mov rsi, rax
mov rax, qword [rax]
mov rax, qword [rax - 0x18]
mov rbx, qword [rsi + rax + 0xf0]
test rbx, rbx
je 0x401e4d
cmp byte [rbx + 0x38], 0
je 0x401e23
movsx edx, byte [rbx + 0x43]
mov rcx, rsi
call fcn.004664c0
mov rcx, rax
call fcn.004666b0
jmp 0x401d8a
lea rcx, [0x004d1060]
mov rdx, r14
call fcn.0048a920
jmp 0x401d4f
movdqu xmm0, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x50], xmm0
jmp 0x401cd0
mov rcx, rbx
call fcn.00427660
mov rax, qword [rbx]
mov edx, 0xa
lea rcx, [0x004278a0]
mov rax, qword [rax + 0x30]
cmp rax, rcx
je 0x401dee
mov rcx, rbx
call rax
movsx edx, al
jmp 0x401dee
call fcn.0049c8a0
lea rcx, [0x004a714f]
call fcn.0049cd90
lea rcx, [0x004a714f]
call fcn.0049cd90
mov ecx, eax
call fcn.0049ce30
mov rsi, rax
mov rcx, qword [rsp + 0x20]
add rbx, 0x10
cmp rcx, rbx
je 0x401e87
call fcn.004a1d60
mov rcx, rsi
call fcn.0040d780
mov rcx, qword [rsp + 0x60]
add r12, 0x10
mov rbx, rax
cmp rcx, r12
je 0x401ea5
call fcn.004a1d60
mov rcx, rbx
call fcn.0040d780
jmp 0x401e8f