Function at 0x140003c30
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, 0xa48
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x9c0], 0xfffffffffffffffe
movdqu xmm0, xmmword [0x140128b74]
movdqa xmmword [rbp + 0x640], xmm0
mov qword [rbp + 0x3f0], 0
lea rcx, [rbp + 0x640]
lea rsi, [rbp + 0x3f0]
xor edx, edx
xor r8d, r8d
mov r9, rsi
call qword [sym.imp.shell32.dll_SHGetKnownFolderPath]
mov rcx, qword [rbp + 0x3f0]
test eax, eax
je 0x140003cb1
call qword [sym.imp.ole32.dll_CoTaskMemFree]
movabs rax, 0x8000000000000000
mov qword [rbp + 0x8e0], rax
jmp 0x140003cf1
call qword [sym.imp.kernel32.dll_lstrlenW]
movsxd r8, eax
mov rdx, qword [rbp + 0x3f0]
lea rcx, [rbp + 0x8e0]
call fcn.1400e8cf0
mov rcx, qword [rbp + 0x3f0]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
movabs r15, 0x8000000000000000
cmp qword [rbp + 0x8e0], r15
jne 0x140004158
lea rax, [0x14014eae0]
mov qword [rbp + 0x640], rax
mov qword [rbp + 0x648], 1
mov qword [rbp + 0x650], 8
pxor xmm0, xmm0
movdqu xmmword [rbp + 0x658], xmm0
lea rcx, [rbp + 0x640]
call fcn.1400efa30
mov eax, dword [0x140196314]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 0x48]
cmp rax, 1
jne 0x14000442d
mov eax, dword [0x140196314]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rsi, qword [rax + 0x50]
inc qword [rsi]
je 0x140004ab5
lea rdi, [rsi + 0x10]
lea rbx, [rsi + 0x120]
mov rax, qword [rsi + 0x110]
jmp 0x140003db2
mov rcx, rbx
mov rdx, rdi
call fcn.14004a830
xor ecx, ecx
lea rax, [rcx + 1]
test dword [rsi + rcx*4 + 0x10], 0x40000000
mov qword [rsi + 0x110], rax
je 0x140003deb
mov rcx, rax
cmp rax, 0x40
jb 0x140003d9d
mov rax, qword [rsi + 0x158]
test rax, rax
jle 0x140003d90
cmp qword [rsi + 0x160], 0
js 0x140003d90
add rax, 0xffffffffffffff00
mov qword [rsi + 0x158], rax
mov rcx, rbx
mov rdx, rdi
call fcn.140055570
jmp 0x140003d9b
dec qword [rsi]
jne 0x140003e08
dec qword [rsi + 8]
jne 0x140003e08
mov rcx, qword [0x140196260]
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 + 0x3f0]
mov r8d, 0x25
call fcn.1400421e0
mov rdi, qword [rbp + 0x3f0]
mov rsi, qword [rbp + 0x3f8]
cmp rdi, 3
je 0x14000499c
lea rdx, [rbp + 0x400]
lea rcx, [rbp + 0x1e0]
mov r8d, 0xb0
call fcn.140118560
mov qword [rbp + 0x1d0], rdi
mov qword [rbp + 0x1d8], rsi
lea rcx, [rbp - 0x50]
lea rdx, [rbp + 0x1d0]
call fcn.1400462f0
mov rbx, qword [rbp - 0x50]
mov rsi, qword [rbp - 0x48]
test rbx, rbx
je 0x14000499c
movdqu xmm0, xmmword [rbp - 0x40]
movdqu xmm1, xmmword [rbp - 0x30]
movdqu xmmword [rbp + 0x940], xmm1
movdqu xmmword [rbp + 0x930], xmm0
mov qword [rbp + 0x920], rbx
mov qword [rbp + 0x928], rsi
cmp qword [rbp + 0x938], 0
je 0x140004978
movups xmm0, xmmword [rbp + 0x940]
movaps xmmword [rbp + 0x8c0], xmm0
lea rcx, [rbp + 0x8c0]
call fcn.140049100
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 0x140003f4d
pcmpeqb xmm2, xmm1
pmovmskb r8d, xmm2
test r8d, r8d
jne 0x140004978
add rax, rdx
add rax, 0x10
add rdx, 0x10
jmp 0x140003efe
lea r9d, [r8 - 1]
and r9w, r8w
mov r8d, r9d
je 0x140003f18
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 0x140003f40
lea r10, [rcx + r9]
mov r10, qword [r10 + 8]
cmp qword [r10], rdi
jne 0x140003f40
mov rdx, qword [rbx + r9 - 0x10]
mov r8, qword [rbx + r9 - 8]
lea rcx, [rbp + 0x3f0]
call fcn.14000e960
cmp byte [rbp + 0x3f0], 0
jne 0x1400049ce
mov ecx, 3
call fcn.1400e6ba0
lea rdx, str.https:__quan.suning.com_getSysTime.dosysTime1
lea rcx, [rbp + 0x3f0]
mov r8d, 0x25
call fcn.1400421e0
mov rbx, qword [rbp + 0x3f0]
mov rsi, qword [rbp + 0x3f8]
cmp rbx, 3
je 0x140004990
lea rdx, [rbp + 0x400]
lea rcx, [rbp + 0x650]
mov r8d, 0xb0
call fcn.140118560
mov qword [rbp + 0x640], rbx
mov qword [rbp + 0x648], rsi
lea rcx, [rbp - 0x50]
lea rdx, [rbp + 0x640]
call fcn.1400462f0
mov rbx, qword [rbp - 0x50]
mov rsi, qword [rbp - 0x48]
test rbx, rbx
je 0x140004990
movdqu xmm0, xmmword [rbp - 0x40]
movdqu xmm1, xmmword [rbp - 0x30]
movdqu xmmword [rbp + 0x970], xmm1
movdqu xmmword [rbp + 0x960], xmm0
mov qword [rbp + 0x950], rbx
mov qword [rbp + 0x958], rsi
cmp qword [rbp + 0x968], 0
je 0x140004984
movups xmm0, xmmword [rbp + 0x970]
movaps xmmword [rbp + 0x8d0], xmm0
lea rcx, [rbp + 0x8d0]
call fcn.140049100
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 0x1400040dd
pcmpeqb xmm2, xmm1
pmovmskb r8d, xmm2
test r8d, r8d
jne 0x140004984
add rax, rdx
add rax, 0x10
add rdx, 0x10
jmp 0x140004091
lea r9d, [r8 - 1]
and r9w, r8w
mov r8d, r9d
je 0x1400040ab
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 0x1400040d0
lea r10, [rcx + r9]
mov r10, qword [r10 + 8]
cmp qword [r10], rdi
jne 0x1400040d0
mov rdx, qword [rbx + r9 - 0x10]
mov r8, qword [rbx + r9 - 8]
lea rcx, [rbp + 0x3f0]
call fcn.14000e960
cmp byte [rbp + 0x3f0], 0
jne 0x1400049e1
lea rcx, [rbp + 0x950]
call fcn.140041a80
lea rcx, [rbp + 0x920]
call fcn.140041a80
nop
add rsp, 0xa48
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movdqu xmm0, xmmword [rbp + 0x8e0]
movdqu xmm1, xmmword [rbp + 0x8f0]
movdqa xmmword [rbp + 0x910], xmm1
movdqa xmmword [rbp + 0x900], xmm0
lea rdx, str.DesktopUsers_desktop_file_count:
lea rcx, [rbp + 0x900]
mov r8d, 7
call fcn.1400ec640
mov rdx, qword [rbp + 0x908]
mov r8, qword [rbp + 0x910]
lea rcx, [rbp + 0x640]
call fcn.140009e90
cmp qword [rbp + 0x640], 0
jne 0x140004a3e
mov rdi, qword [rbp + 0x650]
test rdi, rdi
je 0x140004336
js 0x140004a4a
mov rbx, qword [rbp + 0x648]
movzx eax, byte [0x140196310]
xor ecx, ecx
mov rdx, rdi
call fcn.1400f0c90
test rax, rax
je 0x140004a4f
mov qword [rbp + 0x9b0], rax
mov rcx, rax
mov rdx, rbx
mov r8, rdi
call fcn.140118560
movzx eax, byte [0x140196310]
xor ecx, ecx
mov rdx, rdi
call fcn.1400f0c90
test rax, rax
je 0x140004a5c
mov r14, rax
mov rcx, rax
mov rdx, rbx
mov r8, rdi
call fcn.140118560
mov qword [rbp + 0x640], rdi
mov qword [rbp + 0x648], r14
mov qword [rbp + 0x650], rdi
mov byte [rbp + 0x658], 0
lea rdx, [0x14015d7c8]
lea rcx, [rbp + 0x640]
mov r8d, 1
call fcn.1400ec640
mov rax, qword [rbp + 0x640]
mov qword [rbp + 0x9a8], rax
mov rdx, qword [rbp + 0x648]
mov r8, qword [rbp + 0x650]
mov byte [rbp + 0x9be], 1
lea rcx, [rbp + 0x950]
mov qword [rbp + 0x988], rdx
call fcn.1400eaa40
mov rax, qword [rbp + 0x950]
mov r12, qword [rbp + 0x958]
cmp rax, r15
je 0x1400042fb
mov rcx, qword [rbp + 0x960]
mov qword [rbp + 0x640], rax
mov qword [rbp + 0x648], r12
mov qword [rbp + 0x650], rcx
mov byte [rbp + 0x9be], 1
lea rcx, [rbp + 0x8a8]
lea rdx, [rbp + 0x640]
call fcn.1400ec040
mov r13, qword [rbp + 0x8a8]
mov r12, qword [rbp + 0x8b0]
cmp r13, r15
jne 0x140004440
mov r14, qword [rbp + 0x9b0]
cmp qword [rbp + 0x9a8], 0
je 0x140004322
mov rcx, qword [0x140196260]
xor edx, edx
mov r8, qword [rbp + 0x988]
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x140196260]
xor edx, edx
mov r8, r14
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x140004340
movabs r12, 0x300000002
mov qword [rbp + 0x1d0], r12
lea rax, [rbp + 0x1d0]
mov qword [rbp + 0x3f0], rax
lea rax, [fcn.1400eb420]
mov qword [rbp + 0x3f8], rax
lea rax, str.Unable_to_read_the_users_desktop_file_list:
mov qword [rbp + 0x640], rax
mov qword [rbp + 0x648], 2
mov qword [rbp + 0x660], 0
mov qword [rbp + 0x650], rsi
mov qword [rbp + 0x658], 1
lea rcx, [rbp + 0x640]
call fcn.1400efa30
mov rsi, qword [rbp + 0x1d0]
mov eax, esi
and eax, 3
cmp eax, 1
jne 0x140004404
mov rdi, qword [rsi - 1]
mov rbx, qword [rsi + 7]
mov rax, qword [rbx]
test rax, rax
je 0x1400043cb
mov rcx, rdi
call rax
dec rsi
cmp qword [rbx + 8], 0
je 0x1400043f2
cmp qword [rbx + 0x10], 0x11
jb 0x1400043e0
mov rdi, qword [rdi - 8]
mov rcx, qword [0x140196260]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x140196260]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rbp + 0x900], 0
je 0x140003d2d
mov r8, qword [rbp + 0x908]
mov rcx, qword [0x140196260]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x140003d2d
test rax, rax
jne 0x140004a13
call fcn.14011f0f0
jmp 0x140003d51
lea rbx, [rbp + 0x640]
mov r8d, 0x250
mov rcx, rbx
xor edx, edx
call fcn.140118c00
mov rcx, r12
mov rdx, rbx
call qword [sym.imp.kernel32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
mov r14, qword [rbp + 0x9b0]
je 0x140004546
mov r15, rax
movzx eax, byte [0x140196310]
mov edx, 0x30
xor ecx, ecx
call fcn.1400f0c90
test rax, rax
je 0x140004a72
mov rsi, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r14
mov qword [rax + 0x20], rdi
mov byte [rax + 0x28], 0
movdqu xmm0, xmmword [rbp + 0x640]
movdqu xmm1, xmmword [rbp + 0x650]
movdqu xmm2, xmmword [rbp + 0x65c]
movdqu xmmword [rbp + 0x1ec], xmm2
movdqa xmmword [rbp + 0x1e0], xmm1
movdqa xmmword [rbp + 0x1d0], xmm0
movzx eax, word [rbp + 0x66c]
mov word [rbp + 0x990], ax
movzx eax, word [rbp + 0x66e]
mov dword [rbp + 0x9a0], eax
movzx eax, word [rbp + 0x670]
mov word [rbp + 0x998], ax
lea rdx, [rbp + 0x672]
lea rcx, [rbp + 0x3f0]
mov r8d, 0x21e
call fcn.140118560
test r13, r13
je 0x14000453e
mov rcx, qword [0x140196260]
xor edx, edx
mov r8, r12
call qword [sym.imp.kernel32.dll_HeapFree]
mov r13d, 1
jmp 0x1400045ba
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
jne 0x140004941
movzx eax, byte [0x140196310]
mov edx, 0x30
xor ecx, ecx
call fcn.1400f0c90
test rax, rax
je 0x140004a98
mov rsi, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r14
mov qword [rax + 0x20], rdi
mov byte [rax + 0x28], 0
test r13, r13
je 0x1400045aa
mov rcx, qword [0x140196260]
xor edx, edx
mov r8, r12
call qword [sym.imp.kernel32.dll_HeapFree]
mov r15, 0xffffffffffffffff
xor r13d, r13d
mov dword [rbp + 0x9a0], eax
cmp qword [rbp + 0x9a8], 0
je 0x1400045da
mov rcx, qword [0x140196260]
xor edx, edx
mov r8, qword [rbp + 0x988]
call qword [sym.imp.kernel32.dll_HeapFree]
movups xmm0, xmmword [rbp + 0x1ec]
movups xmmword [rbp + 0x93c], xmm0
movaps xmm0, xmmword [rbp + 0x1d0]
movaps xmm1, xmmword [rbp + 0x1e0]
movaps xmmword [rbp + 0x930], xmm1
movaps xmmword [rbp + 0x920], xmm0
lea r14, [rbp - 0x50]
lea rdi, [rbp + 0x3f0]
mov r8d, 0x21e
mov rcx, r14
mov rdx, rdi
call fcn.140118560
movaps xmm0, xmmword [rbp + 0x920]
movdqa xmm1, xmmword [rbp + 0x930]
movaps xmmword [rbp + 0x950], xmm0
movdqa xmmword [rbp + 0x960], xmm1
movdqu xmm0, xmmword [rbp + 0x93c]
movdqu xmmword [rbp + 0x96c], xmm0
lea rcx, [rbp + 0x1d0]
mov r8d, 0x21e
mov rdx, r14
call fcn.140118560
cmp word [rbp + 0x990], 0x2e
sete al
mov edx, dword [rbp + 0x9a0]
test dx, dx
sete cl
xor edx, 0x2e
or dx, word [rbp + 0x998]
sete dl
or dl, cl
and dl, al
mov byte [rbp + 0x9b0], dl
mov r14, qword [sym.imp.kernel32.dll_FindNextFileW]
xor ebx, ebx
mov qword [rbp + 0x9a8], rsi
jmp 0x1400046e0
mov rcx, qword [0x140196260]
xor edx, edx
mov r8, r13
call qword [sym.imp.kernel32.dll_HeapFree]
dec r12
mov rcx, qword [0x140196260]
xor r13d, r13d
xor edx, edx
mov r8, r12
call qword [sym.imp.kernel32.dll_HeapFree]
mov r15, rsi
mov rsi, qword [rbp + 0x9a8]
nop word [rax + rax]
cmp r15, 0xffffffffffffffff
je 0x1400048b0
cmp r13d, 1
setne al
or al, byte [rbp + 0x9b0]
je 0x140004780
mov r8d, 0x250
mov rcx, rdi
xor edx, edx
call fcn.140118c00
nop dword [rax]
mov rcx, r15
mov rdx, rdi
call r14
test eax, eax
je 0x140004820
cmp word [rbp + 0x41c], 0x2e
jne 0x140004747
movzx eax, word [rbp + 0x41e]
test ax, ax
je 0x140004710
cmp ax, 0x2e
jne 0x140004747
cmp word [rbp + 0x420], 0
je 0x140004710
lock inc qword [rsi]
jle 0x140004ab5
mov r8d, 0x250
lea rcx, [rbp + 0x650]
mov rdx, rdi
call fcn.140118560
mov ecx, 8
mov rax, rsi
jmp 0x140004847
lock inc qword [rsi]
jle 0x140004ab5
movups xmm0, xmmword [rbp + 0x96c]
lea rax, [rbp + 0x650]
movups xmmword [rax + 0x1c], xmm0
movdqa xmm0, xmmword [rbp + 0x950]
movdqa xmm1, xmmword [rbp + 0x960]
movdqu xmmword [rax + 0x10], xmm1
movdqu xmmword [rax], xmm0
mov r8d, 0x21e
lea rcx, [rbp + 0x682]
lea rdx, [rbp + 0x1d0]
call fcn.140118560
mov qword [rbp + 0x648], rsi
movzx eax, word [rbp + 0x990]
mov word [rbp + 0x67c], ax
mov eax, dword [rbp + 0x9a0]
mov word [rbp + 0x67e], ax
movzx eax, word [rbp + 0x998]
mov word [rbp + 0x680], ax
mov rcx, rsi
test rcx, rcx
je 0x14000485b
inc rbx
xor r13d, r13d
lock dec qword [rcx]
jne 0x1400046e0
call fcn.140041030
jmp 0x1400046e0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x12
je 0x1400048b2
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x648], 0
mov ecx, 0x10
mov qword [rbp + rcx + 0x640], rax
mov rcx, qword [rbp + 0x648]
test rcx, rcx
jne 0x140004806
mov r12, qword [rbp + 0x650]
inc rbx
mov eax, r12d
and eax, 3
xor r13d, r13d
cmp eax, 1
jne 0x1400046e0
mov rsi, r15
mov r13, qword [r12 - 1]
mov r15, qword [r12 + 7]
mov rax, qword [r15]
test rax, rax
je 0x140004891
mov rcx, r13
call rax
cmp qword [r15 + 8], 0
je 0x1400046b5
cmp qword [r15 + 0x10], 0x11
jb 0x1400046a3
mov r13, qword [r13 - 8]
jmp 0x1400046a3
xor ebx, ebx
mov rcx, r15
call qword [sym.imp.kernel32.dll_FindClose]
lock dec qword [rsi]
jne 0x1400048c9
mov rcx, rsi
call fcn.140041030
mov qword [rbp + 0x1d0], rbx
lea rax, [rbp + 0x1d0]
mov qword [rbp + 0x3f0], rax
lea rax, [fcn.140008a30]
mov qword [rbp + 0x3f8], rax
lea rax, [0x140126eb0]
mov qword [rbp + 0x640], rax
mov qword [rbp + 0x648], 2
mov qword [rbp + 0x660], 0
mov qword [rbp + 0x650], rdi
mov qword [rbp + 0x658], 1
lea rcx, [rbp + 0x640]
call fcn.1400ef780
cmp qword [rbp + 0x900], 0
jne 0x140004412
jmp 0x140003d2d
mov ebx, eax
shl rbx, 0x20
test r13, r13
je 0x14000495e
mov rcx, qword [0x140196260]
xor edx, edx
mov r8, r12
call qword [sym.imp.kernel32.dll_HeapFree]
or rbx, 2
mov r12, rbx
cmp qword [rbp + 0x9a8], 0
jne 0x14000430c
jmp 0x140004322
lea rcx, [0x140126f68]
call fcn.140119860
lea rcx, [0x140126f98]
call fcn.140119860
lea rcx, [rbp + 0x920]
call fcn.140041a80
mov qword [rbp + 0x640], rsi
lea rax, [0x140126fc8]
mov qword [rsp + 0x20], rax
lea rcx, str.called__Result::unwrap____on_an__Err__value
lea r9, [0x140126cd0]
lea r8, [rbp + 0x640]
mov edx, 0x2b
call fcn.140119760
movzx eax, byte [rbp + 0x3f1]
mov byte [rbp - 0x50], al
lea rax, [0x140126f80]
jmp 0x1400049f2
movzx eax, byte [rbp + 0x3f1]
mov byte [rbp - 0x50], al
lea rax, [0x140126fb0]
mov qword [rsp + 0x20], rax
lea rcx, str.called__Result::unwrap____on_an__Err__value
lea r9, [0x140126cf0]
lea r8, [rbp - 0x50]
mov edx, 0x2b
call fcn.140119760
lea rax, [0x14015fd28]
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_d9284afea99e0969a0e692b9e9fd61ea4ba21366library_std_src_threadlocal.rs
lea r9, [0x14015fc58]
lea r8, [rbp + 0x3f0]
mov edx, 0x46
call fcn.140119760
lea rcx, [0x140126f20]
call fcn.140119860
call fcn.1400066b0
mov ecx, 1
mov rdx, rdi
call fcn.140119070
mov byte [rbp + 0x9bf], 1
mov ecx, 1
mov rdx, rdi
call fcn.140119070
jmp 0x140004ab5
mov qword [rbp + 0x9a0], r13
mov qword [rbp + 0x998], r12
mov qword [rbp + 0x990], r15
mov ecx, 8
mov edx, 0x30
call fcn.140119090
jmp 0x140004ab5
mov qword [rbp + 0x9a0], r13
mov qword [rbp + 0x998], r12
mov ecx, 8
mov edx, 0x30
call fcn.140119090
ud2