Function at 0x140051810
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x140082038]
xor rax, rsp
mov qword [rbp + 0x1b8], rax
xor r12d, r12d
mov qword [rsp + 0x50], rdx
mov r15, rcx
test rdx, rdx
jne 0x1400512ec
call fcn.140043268
lea ebx, [r12 + 0x16]
mov dword [rax], ebx
call fcn.14003d4c8
mov eax, ebx
jmp 0x140051644
xorps xmm0, xmm0
mov qword [rdx], r12
mov rax, qword [rcx]
movdqu xmmword [rsp + 0x30], xmm0
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x30]
mov qword [rsp + 0x40], r12
test rax, rax
je 0x14005151c
lea rdx, [rbp + 0x1b0]
mov dword [rbp + 0x1b0], 0x3f002a
mov rcx, rax
mov word [rbp + 0x1b4], r12w
movabs rbx, 0x200000000801
call fcn.14004e414
mov r14, qword [r15]
mov rcx, rax
test rax, rax
jne 0x140051374
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
mov rcx, r14
call fcn.140051684
mov rdi, qword [rsp + 0x30]
mov esi, eax
test eax, eax
jne 0x1400514c5
mov rsi, qword [rsp + 0x38]
jmp 0x1400514b9
cmp rax, r14
je 0x140051398
movzx eax, word [rcx]
sub ax, 0x2f
cmp ax, 0x2d
ja 0x14005138f
movzx eax, ax
bt rbx, rax
jb 0x140051398
sub rcx, 2
cmp rcx, r14
jne 0x140051379
movzx edx, word [rcx]
cmp dx, 0x3a
jne 0x1400513aa
lea rax, [r14 + 2]
cmp rcx, rax
jne 0x1400513f9
sub dx, 0x2f
cmp dx, 0x2d
ja 0x1400513bf
movzx eax, dx
bt rbx, rax
mov al, 1
jb 0x1400513c2
mov al, r12b
sub rcx, r14
mov dword [rsp + 0x28], r12d
sar rcx, 1
lea r8, [rsp + 0x60]
inc rcx
mov qword [rsp + 0x20], r12
neg al
sbb r13, r13
xor r9d, r9d
and r13, rcx
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140051425
lea r9, [rsp + 0x30]
mov r8, r12
mov rdx, r12
mov rcx, r14
call fcn.140051684
mov esi, eax
test eax, eax
jne 0x1400514f4
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x30]
jmp 0x1400514b9
sub rsi, rdi
sar rsi, 3
mov r12, rsi
xor edi, edi
cmp word [rbp - 0x74], 0x2e
jne 0x14005144d
movzx eax, word [rbp - 0x72]
test ax, ax
je 0x14005146b
cmp ax, 0x2e
jne 0x14005144d
cmp word [rbp - 0x70], di
je 0x14005146b
lea r9, [rsp + 0x30]
mov r8, r13
mov rdx, r14
lea rcx, [rbp - 0x74]
call fcn.140051684
mov esi, eax
test eax, eax
jne 0x1400514eb
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140051431
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x30]
mov rdx, rsi
sub rdx, rdi
sar rdx, 3
cmp r12, rdx
je 0x1400514ad
sub rdx, r12
lea rcx, [rdi + r12*8]
lea r9, [0x140051280]
lea r8d, [rax + 8]
call fcn.140058240
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
xor r12d, r12d
add r15, 8
mov rax, qword [r15]
jmp 0x14005130a
mov rbx, rdi
cmp rdi, qword [rsp + 0x38]
je 0x140051597
mov rcx, qword [rbx]
call fcn.14004bf1c
add rbx, 8
cmp rbx, qword [rsp + 0x38]
jne 0x1400514d3
jmp 0x140051597
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rdi, qword [rsp + 0x30]
mov rbx, rdi
cmp rdi, qword [rsp + 0x38]
je 0x140051597
mov rcx, qword [rbx]
call fcn.14004bf1c
add rbx, 8
cmp rbx, qword [rsp + 0x38]
jne 0x140051507
jmp 0x140051597
mov r14, rsi
mov rdx, r12
sub r14, rdi
mov qword [rsp + 0x48], rdx
sar r14, 3
mov rax, rdi
inc r14
cmp rdi, rsi
je 0x14005155e
mov r9, qword [rax]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [r9 + rcx*2], r12w
jne 0x140051540
inc rdx
add rax, 8
add rdx, rcx
cmp rax, rsi
jne 0x140051539
mov qword [rsp + 0x48], rdx
mov r8d, 2
mov rcx, r14
call fcn.140047ce0
mov rbx, rax
test rax, rax
jne 0x1400515a6
xor ecx, ecx
call fcn.14004bf1c
mov rbx, rdi
cmp rdi, rsi
je 0x140051594
mov rcx, qword [rbx]
call fcn.14004bf1c
add rbx, 8
cmp rbx, rsi
jne 0x140051583
or esi, 0xffffffff
mov rcx, rdi
call fcn.14004bf1c
mov eax, esi
jmp 0x140051644
lea rcx, [rax + r14*8]
mov r14, rdi
mov qword [rbp + 0x1b0], rcx
mov r12, rcx
cmp rdi, rsi
je 0x140051612
mov r13, rbx
sub r13, rdi
mov r8, qword [r14]
or r15, 0xffffffffffffffff
xor eax, eax
inc r15
cmp word [r8 + r15*2], ax
jne 0x1400515cb
mov rdx, qword [rsp + 0x48]
mov rax, r12
sub rax, rcx
inc r15
sar rax, 1
mov r9, r15
sub rdx, rax
mov rcx, r12
call fcn.140053168
xor ecx, ecx
test eax, eax
jne 0x14005166e
mov rcx, qword [rbp + 0x1b0]
mov qword [r14 + r13], r12
add r14, 8
lea r12, [r12 + r15*2]
cmp r14, rsi
jne 0x1400515c2
mov rax, qword [rsp + 0x50]
xor ecx, ecx
mov qword [rax], rbx
call fcn.14004bf1c
mov rbx, rdi
cmp rdi, rsi
je 0x14005163a
mov rcx, qword [rbx]
call fcn.14004bf1c
add rbx, 8
cmp rbx, rsi
jne 0x140051629
mov rcx, rdi
call fcn.14004bf1c
xor eax, eax
mov rcx, qword [rbp + 0x1b8]
xor rcx, rsp
call fcn.140034e90
mov rbx, qword [rsp + 0x310]
add rsp, 0x2c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
xor edx, edx
call fcn.14003d518
int3
jmp 0x140051294