Function at 0x18001e8a0
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 0x18001e8f9
mov rcx, qword [rdx]
call fcn.18001a5c0
mov r14, rax
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x18001ea07
cmp byte [rsi + 0x9f], al
je 0x18001e993
mov rcx, qword [rsi + 0x1c0]
mov rdx, qword [rsi + 0x1c8]
cmp rcx, rdx
je 0x18001e93d
call fcn.180022c70
mov rax, qword [rsi + 0x1c0]
mov qword [rsi + 0x1c8], rax
mov r8d, 2
lea rdx, [0x180055150]
mov rcx, r15
call fcn.1800225d0
lea rcx, [rsi + 0x208]
cmp rcx, rax
je 0x18001e974
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x18001e96c
mov rax, qword [rax]
mov rdx, rax
call fcn.1800225d0
mov rcx, r15
cmp qword [r15 + 0x18], 0x10
jb 0x18001e981
mov rcx, qword [r15]
call fcn.18001a5c0
mov r14, rax
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x18001ea07
lea rcx, [rsi + 0x248]
mov r8d, 6
lea rdx, str.Error_
call fcn.1800225d0
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.1800225d0
nop
mov rdx, qword [r15 + 0x18]
cmp rdx, 0x10
jb 0x18001ea00
inc rdx
mov rcx, qword [r15]
cmp rdx, 0x1000
jb 0x18001e9fb
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18001f3a4
mov rcx, r8
call fcn.18004d9a4
xor al, al
jmp 0x18001f36d
mov rax, qword [rsi + 0x1c8]
cmp qword [rsi + 0x1c0], rax
jne 0x18001ebb6
mov r8, qword [r15 + 0x10]
mov rcx, r15
cmp qword [r15 + 0x18], 0x10
jb 0x18001ea2c
mov rcx, qword [r15]
cmp r8, 2
jne 0x18001ebb6
lea rdx, [0x180055150]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x18001ebb6
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.18004daac
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 0x18001eab0
mov rdx, rdi
lea rcx, [rbp - 0x30]
call fcn.180022d00
mov dword [rsp + 0x38], 2
mov rcx, rdi
call fcn.18004d9a4
nop
lea rax, [rbp - 0x30]
mov r8, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x20]
cmp r9, 0x10
jb 0x18001eaf6
lea rax, [rdx + r8]
mov rcx, r8
jmp 0x18001eafd
add rax, rdx
lea rcx, [rbp - 0x30]
cmp rcx, rax
je 0x18001eb1e
cmp byte [rcx], 0x5c
jne 0x18001eb0a
mov byte [rcx], 0x2f
inc rcx
cmp rcx, rax
jne 0x18001eb02
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 0x18001eb60
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rdx, qword [rbp - 0x30]
mov r8, qword [rbp - 0x20]
mov rcx, rbx
call fcn.1800225d0
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.1800223d0
mov rdx, rax
mov rcx, rsi
call fcn.180021210
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x18001ebb6
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001ebb1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001ebb1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18004d9a4
mov rcx, rsi
call fcn.18001ae70
mov esi, 0x4000
mov rbx, qword [r14 + 0x128]
cmp dword [rbx + 0x478], 0
je 0x18001ebe3
lea rdi, [rbx + 0x228]
mov dword [rbx + 0x478], r12d
jmp 0x18001ec23
mov rcx, qword [rbx + 0x480]
cmp rcx, 0xffffffffffffffff
je 0x18001ecf4
lea rdi, [rbx + 0x228]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18001ec23
mov rcx, qword [rbx + 0x480]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rbx + 0x480], 0xffffffffffffffff
mov rdi, r12
test rdi, rdi
je 0x18001ecf4
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 0x18001ec9e
lea r9, [rdi + 0x234]
cmp word [r9], 0
je 0x18001ec80
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 0x18001ec9e
mov word [r14 + 0x1c], 0x3f
mov qword [r14 + 0x10], 1
mov dword [r14 + 0x18], r12d
movzx r11d, r12w
mov eax, 0xffffffff
jmp 0x18001ecd0
mov rax, qword [rbp - 0x38]
dec rax
mov qword [r14 + 0x10], rax
mov eax, dword [rdi]
test al, 0x40
je 0x18001ecb9
mov dword [r14 + 0x18], 0x2000
jmp 0x18001ecc7
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 0x18001ecf7
mov r13, r12
test r13, r13
je 0x18001f240
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 0x18001ed20
lea rdx, [r13 + 0x1c]
lea rcx, [rbp + 0x10]
call fcn.180022d00
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 0x18001edbf
mov r8, r15
lea rdx, [0x1800553b8]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x18001edbf
cmp rsi, 0x10
mov r14, qword [rsp + 0x30]
mov r15, qword [rsp + 0x40]
mov r12d, eax
jb 0x18001ebbe
lea rdx, [rsi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x18001edad
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001f239
mov rcx, rbx
call fcn.18004d9a4
mov r15, qword [rsp + 0x40]
jmp 0x18001ebbe
lea rcx, [rbp + 0x10]
test r12b, r12b
cmovne rcx, rbx
cmp r15, 2
jne 0x18001ede7
mov r8, r15
lea rdx, [0x1800553cc]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x18001efab
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 0x18001ee00
lea rdx, [r13 + 0x1c]
lea rcx, [rbp - 0x80]
call fcn.180022d00
nop
mov r15, qword [rsp + 0x40]
mov r8, r15
cmp qword [r15 + 0x18], 0x10
jb 0x18001ee2a
mov r8, qword [r15]
mov r9, qword [r15 + 0x10]
lea rcx, [rbp - 0x80]
call fcn.180022f90
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 0x18001eea4
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001ee9f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001f21d
call fcn.18004d9a4
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 0x18001ef50
mov rdx, qword [rbp + 8]
cmp rdx, 0x10
jb 0x18001eefb
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001eef6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001f22b
call fcn.18004d9a4
mov qword [rbp], r12
mov qword [rbp + 8], 0xf
mov byte [rbp - 0x10], 0
cmp rsi, 0x10
mov r14, qword [rsp + 0x30]
jb 0x18001ebbe
lea rdx, [rsi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x18001ef43
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001f224
mov rcx, rbx
call fcn.18004d9a4
jmp 0x18001ebbe
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 0x18001efb3
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001efa4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001f22b
call fcn.18004d9a4
jmp 0x18001efb3
mov r15, qword [rsp + 0x40]
xor r12d, r12d
mov eax, dword [r13 + 0x18]
cmp eax, 0x4000
jne 0x18001f0c9
mov rdi, qword [rsp + 0x50]
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x60]
call fcn.1800223d0
mov rbx, rax
mov qword [rsp + 0x48], rax
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.1800223d0
mov byte [rsp + 0x78], r14b
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x18001f028
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x18001f023
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18001f0c2
mov rcx, r8
call fcn.18004d9a4
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 0x18001f070
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 0x18001f086
lea r8, [rsp + 0x58]
lea rcx, [rdi + 0x1d8]
call fcn.1800236c0
mov rax, qword [rsp + 0x70]
cmp rax, 0x10
jb 0x18001f1d4
lea rdx, [rax + 1]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001f1cf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001f1cf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp eax, 0x8000
jne 0x18001f1dc
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x80], 0
je 0x18001f1dc
lea rdi, [rax + 0x1f0]
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x60]
call fcn.1800223d0
mov rbx, rax
mov qword [rsp + 0x48], rax
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.1800223d0
mov byte [rsp + 0x78], r14b
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x18001f14e
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x18001f149
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18001f232
mov rcx, r8
call fcn.18004d9a4
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 0x18001f18d
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 0x18001f19f
lea r8, [rsp + 0x58]
mov rcx, rdi
call fcn.1800236c0
mov rax, qword [rsp + 0x70]
cmp rax, 0x10
jb 0x18001f1d4
lea rdx, [rax + 1]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001f1cf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001f232
call fcn.18004d9a4
mov rsi, qword [rbp + 0x28]
mov rbx, qword [rbp + 0x10]
cmp rsi, 0x10
mov r14, qword [rsp + 0x30]
jb 0x18001ebbe
lea rdx, [rsi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x18001f210
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001f239
mov rcx, rbx
call fcn.18004d9a4
jmp 0x18001ebbe
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 0x18001f28e
mov rcx, qword [rbx + 0x480]
cmp rcx, 0xffffffffffffffff
je 0x18001f26a
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rbx + 0x480], 0xffffffffffffffff
mov rcx, qword [rbx + 0x488]
test rcx, rcx
je 0x18001f283
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 0x18001f299
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, [0x1800215b0]
mov rdx, rcx
mov rcx, r10
call fcn.180023220
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, [0x1800215b0]
mov rdx, r10
call fcn.180023220
mov rcx, rsi
call fcn.18001f3b0
nop
mov rdx, qword [r15 + 0x18]
cmp rdx, 0x10
jb 0x18001f36b
inc rdx
mov rcx, qword [r15]
cmp rdx, 0x1000
jb 0x18001f366
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18001f3a4
mov rcx, r8
call fcn.18004d9a4
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.18004d5c0
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