Function at 0x140005180
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x290], rbx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x130], rax
mov rsi, rdx
mov r12, rcx
mov qword [rsp + 0x20], 0
vxorps xmm0, xmm0, xmm0
vmovdqu xmmword [rsp + 0x28], xmm0
xor edi, edi
mov qword [rsp + 0x38], rdi
xor ebx, ebx
mov r14, qword [rsp + 0x30]
mov r9d, 1
mov r8, rbx
mov rcx, r12
call fcn.14000dbd0
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x140005203
mov r13, qword [r12 + 0x10]
mov r9, r13
sub r9, rbx
mov r8, rbx
lea rdx, [rsp + 0x58]
mov rcx, r12
call fcn.14000cb00
nop
mov r15, qword [rsp + 0x68]
cmp r15, 1
jb 0x140005297
lea rcx, [r15 - 1]
cmp rcx, 0xffffffffffffffff
mov rax, 0xffffffffffffffff
cmova rcx, rax
lea rbx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae rbx, qword [rsp + 0x58]
add rbx, rcx
nop dword [rax]
cmp byte [rbx], 0x5c
jne 0x14000526d
movzx eax, byte [rbx]
cmp al, byte [0x14001b8ec]
jne 0x140005264
xor eax, eax
jmp 0x140005269
sbb eax, eax
or eax, 1
test eax, eax
je 0x140005281
lea rcx, [rsp + 0x58]
call fcn.14000caf0
cmp rbx, rax
je 0x140005297
dec rbx
jmp 0x140005250
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae rax, qword [rsp + 0x58]
sub rbx, rax
jmp 0x14000529b
or rbx, 0xffffffffffffffff
lea rax, [r15 - 1]
cmp rbx, rax
jae 0x140005350
lea r8, [0x14001b93c]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x30]
call fcn.14000fe70
mov rbx, rax
lea rax, [rsp + 0x58]
cmp rax, rbx
je 0x14000533f
cmp qword [rsp + 0x70], 0x10
jb 0x1400052dd
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x70], recv
xor r15d, r15d
mov qword [rsp + 0x68], r15
mov byte [rsp + 0x58], r15b
cmp qword [rbx + 0x18], 0x10
jae 0x140005313
mov r8, qword [rbx + 0x10]
inc r8
je 0x14000531e
mov rdx, rbx
lea rcx, [rsp + 0x58]
call qword [sym.imp.MSVCR120.dll_memmove]
jmp 0x14000531e
mov rax, qword [rbx]
mov qword [rsp + 0x58], rax
mov qword [rbx], r15
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x68], rax
mov rax, qword [rbx + 0x18]
mov qword [rsp + 0x70], rax
mov qword [rbx + 0x18], recv
mov qword [rbx + 0x10], r15
mov byte [rbx], r15b
cmp qword [rbp - 0x18], 0x10
jb 0x140005350
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
lea rax, [rsp + 0x58]
mov r15, qword [rsp + 0x28]
cmp rax, r14
jae 0x140005436
lea rax, [rsp + 0x58]
cmp r15, rax
ja 0x140005436
lea rbx, [rsp + 0x58]
sub rbx, r15
cmp r14, rdi
jne 0x1400053f4
mov rax, rdi
sub rax, r14
sar rax, 5
cmp rax, 1
jae 0x1400053f4
sub r14, r15
sar r14, 5
movabs rdx, 0x7ffffffffffffff
mov rax, rdx
sub rax, r14
cmp rax, 1
jb 0x14000551a
inc r14
sub rdi, r15
sar rdi, 5
mov rcx, rdi
shr rcx, 1
mov rax, rdx
sub rax, rcx
cmp rax, rdi
jae 0x1400053ce
xor edi, edi
jmp 0x1400053d1
add rdi, rcx
cmp rdi, r14
cmovb rdi, r14
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.14000ed90
mov rdi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x30]
mov r15, qword [rsp + 0x28]
and rbx, 0xffffffffffffffe0
add rbx, r15
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
test r14, r14
je 0x140005431
mov qword [r14 + 0x18], recv
mov qword [r14 + 0x10], 0
mov byte [r14], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
call fcn.14000daa0
nop
jmp 0x1400054e9
cmp r14, rdi
jne 0x1400054ac
mov rax, rdi
sub rax, r14
sar rax, 5
cmp rax, 1
jae 0x1400054ac
sub r14, r15
sar r14, 5
movabs rdx, 0x7ffffffffffffff
mov rax, rdx
sub rax, r14
cmp rax, 1
jb 0x140005528
inc r14
sub rdi, r15
sar rdi, 5
mov rcx, rdi
shr rcx, 1
mov rax, rdx
sub rax, rcx
cmp rax, rdi
jae 0x14000548b
xor edi, edi
jmp 0x14000548e
add rdi, rcx
cmp rdi, r14
cmovb rdi, r14
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.14000ed90
mov rdi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x30]
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
test r14, r14
je 0x1400054e4
mov qword [r14 + 0x18], recv
mov qword [r14 + 0x10], 0
mov byte [r14], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x58]
mov rcx, r14
call fcn.14000daa0
nop
mov r15, qword [rsp + 0x28]
add r14, 0x20
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x40], r14
lea rbx, [r13 + 1]
cmp qword [rsp + 0x70], 0x10
jb 0x14000550e
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
cmp r13, qword [r12 + 0x10]
je 0x140005536
jmp 0x1400051e4
lea rcx, str.vector_T__too_long
call qword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rcx, str.vector_T__too_long
call qword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
nop
mov rbx, r15
xor r12d, r12d
cmp r15, r14
je 0x1400057dc
movabs rdi, 0x6666666666666667
nop
lea r8, [0x14001b94c]
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.14000fe70
cmp qword [rax + 0x18], 0x10
jb 0x14000556e
mov rax, qword [rax]
lea rdx, [rbp - 0x10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r15, rax
cmp qword [rsp + 0x70], 0x10
jb 0x140005591
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x70], recv
mov qword [rsp + 0x68], r12
mov byte [rsp + 0x58], 0
cmp r15, 0xffffffffffffffff
je 0x1400057ca
mov r14, qword [rsp + 0x20]
test byte [rbp - 0x10], 0x10
jne 0x1400057a2
lea rdx, [0x14001b95c]
lea rcx, [rbp + 0x1c]
call qword [sym.imp.MSVCR120.dll_strstr]
test rax, rax
je 0x1400057a2
lea rcx, [rax + 1]
lea rdx, [0x14001b9d4]
call qword [sym.imp.MSVCR120.dll_strstr]
test rax, rax
je 0x1400057a2
lea rcx, [rax + 1]
lea rdx, [0x14001b9e4]
call qword [sym.imp.MSVCR120.dll_strstr]
test rax, rax
je 0x1400057a2
mov qword [rbp - 0x68], recv
mov qword [rbp - 0x70], r12
mov byte [rbp - 0x80], 0
or r13, 0xffffffffffffffff
mov r9, r13
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.14000daa0
nop
mov qword [rbp - 0x48], recv
mov qword [rbp - 0x50], r12
mov byte [rbp - 0x60], 0
cmp byte [rbp + 0x1c], 0
jne 0x14000564d
mov r8, r12
jmp 0x14000565e
lea rax, [rbp + 0x1c]
mov r8, r13
inc r8
cmp byte [rax + r8], 0
jne 0x140005654
lea rdx, [rbp + 0x1c]
lea rcx, [rbp - 0x60]
call fcn.14000e930
mov ecx, dword [rbp + 0xc]
shl rcx, 0x20
mov eax, dword [rbp + 0x10]
or rcx, rax
mov qword [rbp - 0x40], rcx
mov dword [rbp - 0x38], r12d
mov r8, qword [rsi + 8]
lea rax, [rbp - 0x80]
cmp rax, r8
jae 0x1400056eb
mov rax, qword [rsi]
lea rcx, [rbp - 0x80]
cmp rax, rcx
ja 0x1400056eb
lea rcx, [rbp - 0x80]
sub rcx, rax
mov rax, rdi
imul rcx
mov rdi, rdx
sar rdi, 5
mov rax, rdi
shr rax, 0x3f
add rdi, rax
cmp r8, qword [rsi + 0x10]
jne 0x1400056c5
mov rcx, rsi
call fcn.14000e810
lea rdx, [rdi + rdi*4]
shl rdx, 4
add rdx, qword [rsi]
mov rcx, qword [rsi + 8]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x20], rcx
test rcx, rcx
je 0x1400056e9
call fcn.140010c70
nop
jmp 0x14000575e
cmp r8, qword [rsi + 0x10]
jne 0x1400056f9
mov rcx, rsi
call fcn.14000e810
mov rdi, qword [rsi + 8]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x20], rdi
test rdi, rdi
je 0x14000575e
mov qword [rdi + 0x18], recv
mov qword [rdi + 0x10], r12
mov byte [rdi], 0
mov r9, r13
xor r8d, r8d
lea rdx, [rbp - 0x80]
mov rcx, rdi
call fcn.14000daa0
nop
lea rcx, [rdi + 0x20]
mov qword [rcx + 0x18], recv
mov qword [rcx + 0x10], r12
mov byte [rcx], 0
mov r9, r13
xor r8d, r8d
lea rdx, [rbp - 0x60]
call fcn.14000daa0
mov rax, qword [rbp - 0x40]
mov qword [rdi + 0x40], rax
mov eax, dword [rbp - 0x38]
mov dword [rdi + 0x48], eax
add qword [rsi + 8], 0x50
cmp qword [rbp - 0x48], 0x10
jb 0x140005774
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x48], recv
mov qword [rbp - 0x50], r12
mov byte [rbp - 0x60], 0
cmp qword [rbp - 0x68], 0x10
jb 0x140005795
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
inc r14
movabs rdi, 0x6666666666666667
lea rdx, [rbp - 0x10]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1400055b3
mov qword [rsp + 0x20], r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r14, qword [rsp + 0x40]
add rbx, 0x20
cmp rbx, r14
jne 0x140005550
mov r15, qword [rsp + 0x28]
test r15, r15
je 0x140005821
mov rbx, r15
cmp r15, r14
je 0x140005818
nop dword [rax]
cmp qword [rbx + 0x18], 0x10
jb 0x140005800
mov rcx, qword [rbx]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbx + 0x18], recv
mov qword [rbx + 0x10], r12
mov byte [rbx], 0
add rbx, 0x20
cmp rbx, r14
jne 0x1400057f0
mov rcx, r15
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov rax, qword [rsp + 0x20]
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.140018be0
mov rbx, qword [rsp + 0x290]
add rsp, 0x240
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret