Function at 0x140104cc0
Capabilities:
Check if file exists
Enumerate files on windows
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4f8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x470], 0xfffffffffffffffe
movdqu xmm0, xmmword [0x1401345ec]
movdqa xmmword [rbp + 0x70], xmm0
mov qword [rbp + 0x2e0], 0
lea rcx, [rbp + 0x70]
lea r9, [rbp + 0x2e0]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.shell32.dll_SHGetKnownFolderPath]
mov rcx, qword [rbp + 0x2e0]
test eax, eax
je 0x140104d35
call qword [sym.imp.ole32.dll_CoTaskMemFree]
movabs rax, 0x8000000000000000
mov qword [rbp - 0x50], rax
jmp 0x140104d67
call qword [sym.imp.kernel32.dll_lstrlenW]
movsxd r8, eax
mov rdx, qword [rbp + 0x2e0]
lea rcx, [rbp - 0x50]
call fcn.1400e1970
mov rcx, qword [rbp + 0x2e0]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
cmp rax, qword [rbp - 0x50]
jno 0x1401051c8
lea rax, [0x140190b60]
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x78], 1
mov qword [rbp + 0x80], 8
pxor xmm0, xmm0
movdqu xmmword [rbp + 0x88], xmm0
lea rcx, [rbp + 0x70]
call fcn.1400e9090
mov eax, dword [0x1401a230c]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 0x48]
cmp rax, 1
jne 0x140105657
mov eax, dword [0x1401a230c]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rsi, qword [rax + 0x50]
inc qword [rsi]
je 0x1401059ef
lea rdi, [rsi + 0x10]
lea rbx, [rsi + 0x120]
mov rax, qword [rsi + 0x110]
jmp 0x140104e22
mov rcx, rbx
mov rdx, rdi
call fcn.14010af10
xor ecx, ecx
lea rax, [rcx + 1]
test dword [rsi + rcx*4 + 0x10], 0x40000000
mov qword [rsi + 0x110], rax
je 0x140104e5b
mov rcx, rax
cmp rax, 0x40
jb 0x140104e0d
mov rax, qword [rsi + 0x158]
test rax, rax
jle 0x140104e00
cmp qword [rsi + 0x160], 0
js 0x140104e00
add rax, 0xffffffffffffff00
mov qword [rsi + 0x158], rax
mov rcx, rbx
mov rdx, rdi
call fcn.140042b40
jmp 0x140104e0b
dec qword [rsi]
jne 0x140104e78
dec qword [rsi + 8]
jne 0x140104e78
mov rcx, qword [0x1401a2270]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
lea rdx, str.https:__quan.suning.com_getSysTime.dosysTime1
lea rcx, [rbp + 0x2e0]
mov r8d, 0x25
call fcn.14010e840
mov rdi, qword [rbp + 0x2e0]
mov rsi, qword [rbp + 0x2e8]
cmp rdi, 3
je 0x1401058da
lea rdx, [rbp + 0x2f0]
lea rcx, [rbp - 0x40]
mov r8d, 0xb0
call fcn.1401253f0
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rsi
lea rcx, [rbp + 0x420]
lea rdx, [rbp - 0x50]
call fcn.1401126e0
mov rbx, qword [rbp + 0x420]
mov rsi, qword [rbp + 0x428]
test rbx, rbx
je 0x1401058da
movdqu xmm0, xmmword [rbp + 0x430]
movdqu xmm1, xmmword [rbp + 0x440]
movdqu xmmword [rbp + 0x3c8], xmm1
movdqu xmmword [rbp + 0x3b8], xmm0
mov qword [rbp + 0x3a8], rbx
mov qword [rbp + 0x3b0], rsi
cmp qword [rbp + 0x3c0], 0
je 0x1401058b6
movups xmm0, xmmword [rbp + 0x3c8]
movaps xmmword [rbp + 0x2c0], xmm0
lea rcx, [rbp + 0x2c0]
call fcn.140108420
mov rcx, rax
shr rcx, 0x39
movd xmm0, ecx
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0
pshufd xmm0, xmm0, 0
lea rcx, [rbx - 0x30]
xor edx, edx
pcmpeqd xmm1, xmm1
movabs rdi, 0x31656d6954737973
and rax, rsi
movdqu xmm2, xmmword [rbx + rax]
movdqa xmm3, xmm2
pcmpeqb xmm3, xmm0
pmovmskb r8d, xmm3
test r8d, r8d
jne 0x140104fbd
pcmpeqb xmm2, xmm1
pmovmskb r8d, xmm2
test r8d, r8d
jne 0x1401058b6
add rax, rdx
add rax, 0x10
add rdx, 0x10
jmp 0x140104f71
lea r9d, [r8 - 1]
and r9w, r8w
mov r8d, r9d
je 0x140104f8b
tzcnt r9d, r8d
add r9, rax
and r9, rsi
neg r9
lea r9, [r9 + r9*2]
shl r9, 4
cmp qword [rcx + r9 + 0x10], 8
jne 0x140104fb0
lea r10, [rcx + r9]
mov r10, qword [r10 + 8]
cmp qword [r10], rdi
jne 0x140104fb0
mov rdx, qword [rbx + r9 - 0x10]
mov r8, qword [rbx + r9 - 8]
lea rcx, [rbp + 0x2e0]
call fcn.14000cca0
cmp byte [rbp + 0x2e0], 1
je 0x140105906
mov ecx, 3
call fcn.1400df3d0
lea rdx, str.https:__quan.suning.com_getSysTime.dosysTime1
lea rcx, [rbp + 0x2e0]
mov r8d, 0x25
call fcn.14010e840
mov rbx, qword [rbp + 0x2e0]
mov rsi, qword [rbp + 0x2e8]
cmp rbx, 3
je 0x1401058ce
lea rdx, [rbp + 0x2f0]
lea rcx, [rbp + 0x80]
mov r8d, 0xb0
call fcn.1401253f0
mov qword [rbp + 0x70], rbx
mov qword [rbp + 0x78], rsi
lea rcx, [rbp + 0x420]
lea rdx, [rbp + 0x70]
call fcn.1401126e0
mov rbx, qword [rbp + 0x420]
mov rsi, qword [rbp + 0x428]
test rbx, rbx
je 0x1401058ce
movdqu xmm0, xmmword [rbp + 0x430]
movdqu xmm1, xmmword [rbp + 0x440]
movdqu xmmword [rbp + 0x408], xmm1
movdqu xmmword [rbp + 0x3f8], xmm0
mov qword [rbp + 0x3e8], rbx
mov qword [rbp + 0x3f0], rsi
cmp qword [rbp + 0x400], 0
je 0x1401058c2
movups xmm0, xmmword [rbp + 0x408]
movaps xmmword [rbp + 0x2d0], xmm0
lea rcx, [rbp + 0x2d0]
call fcn.140108420
mov rcx, rax
shr rcx, 0x39
movd xmm0, ecx
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0
pshufd xmm0, xmm0, 0
lea rcx, [rbx - 0x30]
xor edx, edx
pcmpeqd xmm1, xmm1
and rax, rsi
movdqu xmm2, xmmword [rbx + rax]
movdqa xmm3, xmm2
pcmpeqb xmm3, xmm0
pmovmskb r8d, xmm3
test r8d, r8d
jne 0x14010514d
pcmpeqb xmm2, xmm1
pmovmskb r8d, xmm2
test r8d, r8d
jne 0x1401058c2
add rax, rdx
add rax, 0x10
add rdx, 0x10
jmp 0x140105107
lea r9d, [r8 - 1]
and r9w, r8w
mov r8d, r9d
je 0x140105121
tzcnt r9d, r8d
add r9, rax
and r9, rsi
neg r9
lea r9, [r9 + r9*2]
shl r9, 4
cmp qword [rcx + r9 + 0x10], 8
jne 0x140105140
lea r10, [rcx + r9]
mov r10, qword [r10 + 8]
cmp qword [r10], rdi
jne 0x140105140
mov rdx, qword [rbx + r9 - 0x10]
mov r8, qword [rbx + r9 - 8]
lea rcx, [rbp + 0x2e0]
call fcn.14000cca0
cmp byte [rbp + 0x2e0], 1
je 0x14010591c
lea rcx, [rbp + 0x3e8]
call fcn.1400d1020
lea rcx, [rbp + 0x3a8]
call fcn.1400d1020
nop
add rsp, 0x4f8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movdqu xmm0, xmmword [rbp - 0x50]
movdqu xmm1, xmmword [rbp - 0x40]
movdqa xmmword [rbp + 0x2f0], xmm1
movdqa xmmword [rbp + 0x2e0], xmm0
lea rdx, str.DesktopUsers_desktop_file_count:
lea rcx, [rbp + 0x2e0]
mov r8d, 7
call fcn.1400e5710
mov rdx, qword [rbp + 0x2e8]
mov r8, qword [rbp + 0x2f0]
lea rcx, [rbp + 0x70]
call fcn.1400083e0
test byte [rbp + 0x70], 1
jne 0x14010597f
mov rbx, qword [rbp + 0x80]
test rbx, rbx
je 0x140105578
js 0x14010598b
mov rsi, qword [rbp + 0x78]
movzx eax, byte [0x1401a2308]
xor ecx, ecx
mov rdx, rbx
call fcn.1400ea350
test rax, rax
je 0x140105990
mov qword [rbp + 0x460], rax
mov rcx, rax
mov rdx, rsi
mov r8, rbx
call fcn.1401253f0
movzx eax, byte [0x1401a2308]
xor ecx, ecx
mov rdx, rbx
call fcn.1400ea350
test rax, rax
je 0x14010599d
mov rdi, rax
mov rcx, rax
mov rdx, rsi
mov r8, rbx
call fcn.1401253f0
mov qword [rbp + 0x70], rbx
mov qword [rbp + 0x78], rdi
mov qword [rbp + 0x80], rbx
mov byte [rbp + 0x88], 0
lea rdx, [0x140167ad8]
lea rcx, [rbp + 0x70]
mov r8d, 1
call fcn.1400e5710
mov rax, qword [rbp + 0x70]
mov qword [rbp + 0x458], rax
mov rdx, qword [rbp + 0x78]
mov r8, qword [rbp + 0x80]
mov byte [rbp + 0x46e], 1
lea rcx, [rbp + 0x420]
mov qword [rbp + 0x450], rdx
call fcn.1400e3920
mov rax, qword [rbp + 0x420]
mov rdi, qword [rbp + 0x428]
mov rcx, rax
neg rcx
jo 0x14010534c
mov rcx, qword [rbp + 0x430]
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x78], rdi
mov qword [rbp + 0x80], rcx
mov byte [rbp + 0x46e], 1
lea rcx, [rbp + 0x3e8]
lea rdx, [rbp + 0x70]
call fcn.1400e50f0
mov r15, qword [rbp + 0x3e8]
mov r12, qword [rbp + 0x3f0]
mov rax, r15
neg rax
jno 0x14010570d
mov rdi, r12
cmp qword [rbp + 0x458], 0
mov r8, qword [rbp + 0x450]
je 0x14010536c
mov rcx, qword [0x1401a2270]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov r15d, 2
mov r12b, 1
mov r8, qword [rbp + 0x460]
mov rcx, qword [0x1401a2270]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
cmp r15d, 2
sete al
or al, r12b
jne 0x140105582
cmp r14w, 0x2e
sete al
test bx, bx
sete cl
xor ebx, 0x2e
or bx, si
sete sil
or sil, cl
and sil, al
lea rbx, [rbp + 0x70]
mov r12, qword [sym.imp.kernel32.dll_FindNextFileW]
xor r13d, r13d
mov qword [rbp + 0x458], rdi
jmp 0x140105410
mov rcx, qword [0x1401a2270]
xor edx, edx
mov r8, r15
call qword [sym.imp.kernel32.dll_HeapFree]
dec r14
mov rcx, qword [0x1401a2270]
xor r15d, r15d
xor edx, edx
mov r8, r14
call qword [sym.imp.kernel32.dll_HeapFree]
mov rdi, qword [rbp + 0x458]
nop word cs:[rax + rax]
mov r14, qword [rbp + 0x418]
cmp r14, 0xffffffffffffffff
je 0x14010566a
cmp r15d, 1
setne al
or al, sil
test al, 1
je 0x1401054a0
mov r8d, 0x250
mov rcx, rbx
xor edx, edx
call fcn.140125a90
nop
mov rcx, r14
mov rdx, rbx
call r12
test eax, eax
je 0x1401054f0
cmp word [rbp + 0x9c], 0x2e
jne 0x140105477
movzx eax, word [rbp + 0x9e]
test ax, ax
je 0x140105440
cmp ax, 0x2e
jne 0x140105477
cmp word [rbp + 0xa0], 0
je 0x140105440
lock inc qword [rdi]
jle 0x1401059ef
mov rax, qword [rbp + 0x70]
mov qword [rbp + 0x3e8], rax
lea rcx, [rbp + 0x420]
mov rax, rdi
jmp 0x140105519
lock inc qword [rdi]
jle 0x1401059ef
mov rax, qword [rbp + 0x460]
mov qword [rbp + 0x3e8], rax
mov qword [rbp + 0x420], rdi
mov rcx, rdi
test rcx, rcx
je 0x140105528
inc r13
xor r15d, r15d
lock dec qword [rcx]
jne 0x140105410
call fcn.140004710
jmp 0x140105410
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x12
je 0x14010566a
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x420], 0
lea rcx, [rbp + 0x3e8]
mov qword [rcx], rax
mov rcx, qword [rbp + 0x420]
test rcx, rcx
jne 0x1401054c7
mov r14, qword [rbp + 0x3e8]
inc r13
mov eax, r14d
and eax, 3
xor r15d, r15d
cmp eax, 1
jne 0x140105410
mov r15, qword [r14 - 1]
mov rdi, qword [r14 + 7]
mov rax, qword [rdi]
test rax, rax
je 0x140105559
mov rcx, r15
call rax
cmp qword [rdi + 8], 0
je 0x1401053e2
cmp qword [rdi + 0x10], 0x11
jb 0x1401053d0
mov r15, qword [r15 - 8]
jmp 0x1401053d0
movabs rdi, 0x300000002
mov qword [rbp + 0x3e8], rdi
lea rax, [rbp + 0x3e8]
mov qword [rbp + 0x420], rax
lea rax, [fcn.1400e4320]
mov qword [rbp + 0x428], rax
lea rax, str.Unable_to_read_the_users_desktop_file_list:
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x78], 2
mov qword [rbp + 0x90], 0
lea rax, [rbp + 0x420]
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], 1
lea rcx, [rbp + 0x70]
call fcn.1400e9090
mov rsi, qword [rbp + 0x3e8]
mov eax, esi
and eax, 3
cmp eax, 1
jne 0x140105644
mov rdi, qword [rsi - 1]
mov rbx, qword [rsi + 7]
mov rax, qword [rbx]
test rax, rax
je 0x14010560b
mov rcx, rdi
call rax
dec rsi
cmp qword [rbx + 8], 0
je 0x140105632
cmp qword [rbx + 0x10], 0x11
jb 0x140105620
mov rdi, qword [rdi - 8]
mov rcx, qword [0x1401a2270]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x1401a2270]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rbp + 0x2e0], 0
jne 0x1401056f2
jmp 0x140104d9a
test rax, rax
jne 0x140105954
call fcn.14012ac90
jmp 0x140104dbe
mov rcx, r14
call qword [sym.imp.kernel32.dll_FindClose]
lock dec qword [rdi]
jne 0x140105681
mov rcx, rdi
call fcn.140004710
mov qword [rbp + 0x3e8], r13
lea rax, [rbp + 0x3e8]
mov qword [rbp + 0x420], rax
lea rax, [fcn.140006d00]
mov qword [rbp + 0x428], rax
lea rax, [0x14018ee18]
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x78], 2
mov qword [rbp + 0x90], 0
lea rax, [rbp + 0x420]
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], 1
lea rcx, [rbp + 0x70]
call fcn.1400e8db0
cmp qword [rbp + 0x2e0], 0
je 0x140104d9a
mov r8, qword [rbp + 0x2e8]
mov rcx, qword [0x1401a2270]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x140104d9a
lea rdi, [rbp + 0x70]
mov r8d, 0x250
mov rcx, rdi
xor edx, edx
call fcn.140125a90
mov rcx, r12
mov rdx, rdi
call qword [sym.imp.kernel32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x1401057d6
mov qword [rbp + 0x418], rax
movzx eax, byte [0x1401a2308]
mov edx, 0x30
xor ecx, ecx
call fcn.1400ea350
test rax, rax
je 0x1401059b3
mov rdi, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x10], rbx
mov rax, qword [rbp + 0x460]
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x20], rbx
mov byte [rdi + 0x28], 0
mov rax, qword [rbp + 0x70]
mov qword [rbp + 0x460], rax
movzx r14d, word [rbp + 0x9c]
movzx ebx, word [rbp + 0x9e]
movzx esi, word [rbp + 0xa0]
test r15, r15
mov r8, qword [rbp + 0x450]
je 0x1401057c8
mov rcx, qword [0x1401a2270]
xor edx, edx
mov r15, r8
mov r8, r12
call qword [sym.imp.kernel32.dll_HeapFree]
mov r8, r15
mov r15d, 1
xor r12d, r12d
jmp 0x140105862
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
jne 0x140105875
movzx eax, byte [0x1401a2308]
mov edx, 0x30
xor ecx, ecx
call fcn.1400ea350
test rax, rax
mov r8, qword [rbp + 0x450]
je 0x1401059d2
mov rdi, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x10], rbx
mov rax, qword [rbp + 0x460]
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x20], rbx
mov byte [rdi + 0x28], 0
test r15, r15
je 0x14010584e
mov rcx, qword [0x1401a2270]
xor edx, edx
mov rsi, r8
mov r8, r12
call qword [sym.imp.kernel32.dll_HeapFree]
mov r8, rsi
mov qword [rbp + 0x418], 0xffffffffffffffff
xor r12d, r12d
mov r15d, 0
cmp qword [rbp + 0x458], 0
jne 0x14010537c
jmp 0x14010538b
mov edi, eax
shl rdi, 0x20
test r15, r15
mov r8, qword [rbp + 0x450]
je 0x14010589f
mov rcx, qword [0x1401a2270]
xor edx, edx
mov rsi, r8
mov r8, r12
call qword [sym.imp.kernel32.dll_HeapFree]
mov r8, rsi
or rdi, 2
cmp qword [rbp + 0x458], 0
jne 0x14010535d
jmp 0x14010536c
lea rcx, [0x14018eed0]
call fcn.1401266e0
lea rcx, [0x14018ef00]
call fcn.1401266e0
lea rcx, [rbp + 0x3a8]
call fcn.1400d1020
mov qword [rbp + 0x70], rsi
lea rax, [0x14018ef30]
mov qword [rsp + 0x20], rax
lea rcx, str.called__Result::unwrap____on_an__Err__value
lea r9, [0x14018ec40]
lea r8, [rbp + 0x70]
mov edx, 0x2b
call fcn.1401265e0
movzx eax, byte [rbp + 0x2e1]
mov byte [rbp + 0x420], al
lea rax, [0x14018eee8]
jmp 0x140105930
movzx eax, byte [rbp + 0x2e1]
mov byte [rbp + 0x420], al
lea rax, [0x14018ef18]
mov qword [rsp + 0x20], rax
lea rcx, str.called__Result::unwrap____on_an__Err__value
lea r9, [0x14018ec20]
lea r8, [rbp + 0x420]
mov edx, 0x2b
call fcn.1401265e0
lea rax, [0x1401907b8]
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_0d634185dfddefe09047881175f35c65d68dcff1library_std_src_threadlocal.rs
lea r9, [0x1401907d0]
lea r8, [rbp + 0x2e0]
mov edx, 0x46
call fcn.1401265e0
lea rcx, [0x14018ee88]
call fcn.1401266e0
call fcn.1400049d0
mov ecx, 1
mov rdx, rbx
call fcn.140125f00
mov byte [rbp + 0x46f], 1
mov ecx, 1
mov rdx, rbx
call fcn.140125f00
jmp 0x1401059ef
mov qword [rbp + 0x3d8], r15
mov qword [rbp + 0x3e0], r12
mov ecx, 8
mov edx, 0x30
call fcn.140125f20
jmp 0x1401059ef
mov qword [rbp + 0x3d8], r15
mov qword [rbp + 0x3e0], r12
mov ecx, 8
mov edx, 0x30
call fcn.140125f20
ud2