Function at 0x18001e8d0
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x180060010]
xor rax, rsp
mov qword [rbp + 0x38], rax
mov r15, rdx
mov qword [rsp + 0x40], rdx
mov rsi, rcx
mov qword [rsp + 0x50], rcx
mov qword [rbp - 0x40], rdx
xor r12d, r12d
mov eax, r12d
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
mov rcx, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x18001e929
mov rcx, qword [rdx]
call fcn.18001a5f0
mov r14, rax
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x18001ea37
cmp byte [rsi + 0x9f], al
je 0x18001e9c3
mov rcx, qword [rsi + 0x1c0]
mov rdx, qword [rsi + 0x1c8]
cmp rcx, rdx
je 0x18001e96d
call fcn.180022ca0
mov rax, qword [rsi + 0x1c0]
mov qword [rsi + 0x1c8], rax
mov r8d, 2
lea rdx, [0x180055150]
mov rcx, r15
call fcn.180022600
lea rcx, [rsi + 0x208]
cmp rcx, rax
je 0x18001e9a4
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x18001e99c
mov rax, qword [rax]
mov rdx, rax
call fcn.180022600
mov rcx, r15
cmp qword [r15 + 0x18], 0x10
jb 0x18001e9b1
mov rcx, qword [r15]
call fcn.18001a5f0
mov r14, rax
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x18001ea37
lea rcx, [rsi + 0x248]
mov r8d, 6
lea rdx, str.Error_
call fcn.180022600
lea rcx, [rsi + 0x228]
mov r8d, 0x6f
lea rdx, str.Error_opening_directory__Make_sure_the_directory_exists_and_you_have_the_proper_rights_to_access_the_directory.
call fcn.180022600
nop
mov rdx, qword [r15 + 0x18]
cmp rdx, 0x10
jb 0x18001ea30
inc rdx
mov rcx, qword [r15]
cmp rdx, 0x1000
jb 0x18001ea2b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18001f3d4
mov rcx, r8
call fcn.18004d994
xor al, al
jmp 0x18001f39d
mov rax, qword [rsi + 0x1c8]
cmp qword [rsi + 0x1c0], rax
jne 0x18001ebe6
mov r8, qword [r15 + 0x10]
mov rcx, r15
cmp qword [r15 + 0x18], 0x10
jb 0x18001ea5c
mov rcx, qword [r15]
cmp r8, 2
jne 0x18001ebe6
lea rdx, [0x180055150]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x18001ebe6
mov rax, qword [r14 + 0x128]
mov rcx, qword [rax + 0x488]
mov qword [rbp - 0x38], rcx
mov qword [rbp + 0x30], r12
lea r9, [rbp + 0x30]
mov r8d, 0x927c0
lea rdx, [rbp - 0x38]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcsrtombs]
mov rbx, rax
lea rcx, [rax + 1]
call fcn.18004da9c
mov rdi, rax
lea r9, [rbp + 0x30]
lea r8, [rbx + 1]
lea rdx, [rbp - 0x38]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcsrtombs]
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x18], r12
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdi + r8], 0
jne 0x18001eae0
mov rdx, rdi
lea rcx, [rbp - 0x30]
call fcn.180022d30
mov dword [rsp + 0x38], 2
mov rcx, rdi
call fcn.18004d994
nop
lea rax, [rbp - 0x30]
mov r8, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x20]
cmp r9, 0x10
jb 0x18001eb26
lea rax, [rdx + r8]
mov rcx, r8
jmp 0x18001eb2d
add rax, rdx
lea rcx, [rbp - 0x30]
cmp rcx, rax
je 0x18001eb4e
cmp byte [rcx], 0x5c
jne 0x18001eb3a
mov byte [rcx], 0x2f
inc rcx
cmp rcx, rax
jne 0x18001eb32
mov r9, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x30]
lea rcx, [rdx - 1]
lea rax, [rbp - 0x30]
cmp r9, 0x10
cmovae rax, r8
mov qword [rbp - 0x20], rcx
mov byte [rax + rcx], 0
lea rbx, [rsi + 0x208]
lea rax, [rbp - 0x30]
cmp rbx, rax
je 0x18001eb90
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rdx, qword [rbp - 0x30]
mov r8, qword [rbp - 0x20]
mov rcx, rbx
call fcn.180022600
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.180022400
mov rdx, rax
mov rcx, rsi
call fcn.180021240
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x18001ebe6
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001ebe1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001ebe1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18004d994
mov rcx, rsi
call fcn.18001aea0
mov esi, 0x4000
mov rbx, qword [r14 + 0x128]
cmp dword [rbx + 0x478], 0
je 0x18001ec13
lea rdi, [rbx + 0x228]
mov dword [rbx + 0x478], r12d
jmp 0x18001ec53
mov rcx, qword [rbx + 0x480]
cmp rcx, 0xffffffffffffffff
je 0x18001ed24
lea rdi, [rbx + 0x228]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18001ec53
mov rcx, qword [rbx + 0x480]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rbx + 0x480], 0xffffffffffffffff
mov rdi, r12
test rdi, rdi
je 0x18001ed24
lea r9, [rdi + 0x2c]
mov qword [rsp + 0x20], 0x105
mov r8d, 0x105
lea rdx, [r14 + 0x1c]
lea rcx, [rbp - 0x38]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs_s]
test eax, eax
je 0x18001ecce
lea r9, [rdi + 0x234]
cmp word [r9], 0
je 0x18001ecb0
mov qword [rsp + 0x20], 0x105
mov r8d, 0x105
lea rdx, [r14 + 0x1c]
lea rcx, [rbp - 0x38]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs_s]
test eax, eax
je 0x18001ecce
mov word [r14 + 0x1c], 0x3f
mov qword [r14 + 0x10], 1
mov dword [r14 + 0x18], r12d
movzx r11d, r12w
mov eax, 0xffffffff
jmp 0x18001ed00
mov rax, qword [rbp - 0x38]
dec rax
mov qword [r14 + 0x10], rax
mov eax, dword [rdi]
test al, 0x40
je 0x18001ece9
mov dword [r14 + 0x18], 0x2000
jmp 0x18001ecf7
test al, 0x10
mov eax, 0x8000
cmovne eax, esi
mov dword [r14 + 0x18], eax
mov r11d, 0x128
mov eax, r12d
mov r10d, 4
mov r9, r14
lea r8d, [r10 + 4]
mov rdx, r14
mov ecx, r12d
mov dword [r14], ecx
mov dword [r10 + r14], eax
mov word [rdx + r8], r11w
mov r13, r14
jmp 0x18001ed27
mov r13, r12
test r13, r13
je 0x18001f270
xor r14b, r14b
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], r12
mov qword [rbp + 0x28], r12
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [r13 + r8 + 0x1c], r14b
jne 0x18001ed50
lea rdx, [r13 + 0x1c]
lea rcx, [rbp + 0x10]
call fcn.180022d30
nop
lea rcx, [rbp + 0x10]
mov rsi, qword [rbp + 0x28]
cmp rsi, 0x10
setae r12b
mov rbx, qword [rbp + 0x10]
cmovae rcx, rbx
mov r15, qword [rbp + 0x20]
cmp r15, 1
jne 0x18001edef
mov r8, r15
lea rdx, [0x1800553b8]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x18001edef
cmp rsi, 0x10
mov r14, qword [rsp + 0x30]
mov r15, qword [rsp + 0x40]
mov r12d, eax
jb 0x18001ebee
lea rdx, [rsi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x18001eddd
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001f269
mov rcx, rbx
call fcn.18004d994
mov r15, qword [rsp + 0x40]
jmp 0x18001ebee
lea rcx, [rbp + 0x10]
test r12b, r12b
cmovne rcx, rbx
cmp r15, 2
jne 0x18001ee17
mov r8, r15
lea rdx, [0x1800553cc]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x18001efdb
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
xor r12d, r12d
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x68], r12
mov r8, 0xffffffffffffffff
inc r8
cmp byte [r13 + r8 + 0x1c], r12b
jne 0x18001ee30
lea rdx, [r13 + 0x1c]
lea rcx, [rbp - 0x80]
call fcn.180022d30
nop
mov r15, qword [rsp + 0x40]
mov r8, r15
cmp qword [r15 + 0x18], 0x10
jb 0x18001ee5a
mov r8, qword [r15]
mov r9, qword [r15 + 0x10]
lea rcx, [rbp - 0x80]
call fcn.180022fc0
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], r12
mov qword [rbp + 8], r12
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x10], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
or dword [rsp + 0x38], 1
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x18001eed4
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001eecf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001f24d
call fcn.18004d994
lea rcx, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 4
je 0x18001ef80
mov rdx, qword [rbp + 8]
cmp rdx, 0x10
jb 0x18001ef2b
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001ef26
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001f25b
call fcn.18004d994
mov qword [rbp], r12
mov qword [rbp + 8], 0xf
mov byte [rbp - 0x10], 0
cmp rsi, 0x10
mov r14, qword [rsp + 0x30]
jb 0x18001ebee
lea rdx, [rsi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x18001ef73
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001f254
mov rcx, rbx
call fcn.18004d994
jmp 0x18001ebee
lea rcx, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov r14d, eax
shr r14d, 1
and r14b, 1
mov rdx, qword [rbp + 8]
cmp rdx, 0x10
jb 0x18001efe3
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001efd4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001f25b
call fcn.18004d994
jmp 0x18001efe3
mov r15, qword [rsp + 0x40]
xor r12d, r12d
mov eax, dword [r13 + 0x18]
cmp eax, 0x4000
jne 0x18001f0f9
mov rdi, qword [rsp + 0x50]
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x60]
call fcn.180022400
mov rbx, rax
mov qword [rsp + 0x48], rax
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.180022400
mov byte [rsp + 0x78], r14b
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x18001f058
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x18001f053
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18001f0f2
mov rcx, r8
call fcn.18004d994
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rdx, qword [rdi + 0x1e0]
cmp rdx, qword [rdi + 0x1e8]
je 0x18001f0a0
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [rdx + 0x10], xmm1
mov eax, 0xf
mov byte [rsp + 0x58], 0
mov byte [rdx + 0x20], r14b
add qword [rdi + 0x1e0], 0x28
jmp 0x18001f0b6
lea r8, [rsp + 0x58]
lea rcx, [rdi + 0x1d8]
call fcn.1800236f0
mov rax, qword [rsp + 0x70]
cmp rax, 0x10
jb 0x18001f204
lea rdx, [rax + 1]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001f1ff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001f1ff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp eax, 0x8000
jne 0x18001f20c
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x80], 0
je 0x18001f20c
lea rdi, [rax + 0x1f0]
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x60]
call fcn.180022400
mov rbx, rax
mov qword [rsp + 0x48], rax
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.180022400
mov byte [rsp + 0x78], r14b
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x18001f17e
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x18001f179
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18001f262
mov rcx, r8
call fcn.18004d994
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x18001f1bd
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [rdx + 0x10], xmm1
mov eax, 0xf
mov byte [rsp + 0x58], 0
mov byte [rdx + 0x20], r14b
add qword [rdi + 8], 0x28
jmp 0x18001f1cf
lea r8, [rsp + 0x58]
mov rcx, rdi
call fcn.1800236f0
mov rax, qword [rsp + 0x70]
cmp rax, 0x10
jb 0x18001f204
lea rdx, [rax + 1]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001f1ff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001f262
call fcn.18004d994
mov rsi, qword [rbp + 0x28]
mov rbx, qword [rbp + 0x10]
cmp rsi, 0x10
mov r14, qword [rsp + 0x30]
jb 0x18001ebee
lea rdx, [rsi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x18001f240
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001f269
mov rcx, rbx
call fcn.18004d994
jmp 0x18001ebee
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 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]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rbx, qword [r14 + 0x128]
test rbx, rbx
je 0x18001f2be
mov rcx, qword [rbx + 0x480]
cmp rcx, 0xffffffffffffffff
je 0x18001f29a
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rbx + 0x480], 0xffffffffffffffff
mov rcx, qword [rbx + 0x488]
test rcx, rcx
je 0x18001f2b3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x488], r12
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x18001f2c9
mov ecx, 9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__set_errno]
mov qword [r14 + 0x128], r12
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rsi, qword [rsp + 0x50]
mov rcx, qword [rsi + 0x1e0]
mov r10, qword [rsi + 0x1d8]
mov rdx, rcx
sub rdx, r10
movabs rbx, 0x6666666666666667
mov rax, rbx
imul rdx
mov r8, rdx
sar r8, 4
mov rdx, r8
shr rdx, 0x3f
add r8, rdx
lea r9, [0x1800215e0]
mov rdx, rcx
mov rcx, r10
call fcn.180023250
mov r10, qword [rsi + 0x1f8]
mov rcx, qword [rsi + 0x1f0]
mov rdx, r10
sub rdx, rcx
mov rax, rbx
imul rdx
sar rdx, 4
mov r8, rdx
shr r8, 0x3f
add r8, rdx
lea r9, [0x1800215e0]
mov rdx, r10
call fcn.180023250
mov rcx, rsi
call fcn.18001f3e0
nop
mov rdx, qword [r15 + 0x18]
cmp rdx, 0x10
jb 0x18001f39b
inc rdx
mov rcx, qword [r15]
cmp rdx, 0x1000
jb 0x18001f396
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18001f3d4
mov rcx, r8
call fcn.18004d994
mov al, 1
mov byte [r15], 0
mov qword [r15 + 0x18], 0xf
mov qword [r15 + 0x10], r12
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.18004d5b0
mov rbx, qword [rsp + 0x190]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3