Function at 0x140003b90
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 [0x14012ab74]
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 0x140003c11
call qword [sym.imp.ole32.dll_CoTaskMemFree]
movabs rax, 0x8000000000000000
mov qword [rbp + 0x8e0], rax
jmp 0x140003c51
call qword [sym.imp.kernel32.dll_lstrlenW]
movsxd r8, eax
mov rdx, qword [rbp + 0x3f0]
lea rcx, [rbp + 0x8e0]
call fcn.1400eb2e0
mov rcx, qword [rbp + 0x3f0]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
movabs r15, 0x8000000000000000
cmp qword [rbp + 0x8e0], r15
jne 0x1400040b8
lea rax, [0x140151238]
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.1400f1df0
mov eax, dword [0x140198314]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 0x48]
cmp rax, 1
jne 0x14000438d
mov eax, dword [0x140198314]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rsi, qword [rax + 0x50]
inc qword [rsi]
je 0x140004a15
lea rdi, [rsi + 0x10]
lea rbx, [rsi + 0x120]
mov rax, qword [rsi + 0x110]
jmp 0x140003d12
mov rcx, rbx
mov rdx, rdi
call fcn.1400536b0
xor ecx, ecx
lea rax, [rcx + 1]
test dword [rsi + rcx*4 + 0x10], 0x40000000
mov qword [rsi + 0x110], rax
je 0x140003d4b
mov rcx, rax
cmp rax, 0x40
jb 0x140003cfd
mov rax, qword [rsi + 0x158]
test rax, rax
jle 0x140003cf0
cmp qword [rsi + 0x160], 0
js 0x140003cf0
add rax, 0xffffffffffffff00
mov qword [rsi + 0x158], rax
mov rcx, rbx
mov rdx, rdi
call fcn.140056810
jmp 0x140003cfb
dec qword [rsi]
jne 0x140003d68
dec qword [rsi + 8]
jne 0x140003d68
mov rcx, qword [0x140198260]
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.14004c970
mov rdi, qword [rbp + 0x3f0]
mov rsi, qword [rbp + 0x3f8]
cmp rdi, 3
je 0x1400048fc
lea rdx, [rbp + 0x400]
lea rcx, [rbp + 0x1e0]
mov r8d, 0xb0
call fcn.14011a750
mov qword [rbp + 0x1d0], rdi
mov qword [rbp + 0x1d8], rsi
lea rcx, [rbp - 0x50]
lea rdx, [rbp + 0x1d0]
call fcn.140050c50
mov rbx, qword [rbp - 0x50]
mov rsi, qword [rbp - 0x48]
test rbx, rbx
je 0x1400048fc
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 0x1400048d8
movups xmm0, xmmword [rbp + 0x940]
movaps xmmword [rbp + 0x8c0], xmm0
lea rcx, [rbp + 0x8c0]
call fcn.140047a40
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 0x140003ead
pcmpeqb xmm2, xmm1
pmovmskb r8d, xmm2
test r8d, r8d
jne 0x1400048d8
add rax, rdx
add rax, 0x10
add rdx, 0x10
jmp 0x140003e5e
lea r9d, [r8 - 1]
and r9w, r8w
mov r8d, r9d
je 0x140003e78
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 0x140003ea0
lea r10, [rcx + r9]
mov r10, qword [r10 + 8]
cmp qword [r10], rdi
jne 0x140003ea0
mov rdx, qword [rbx + r9 - 0x10]
mov r8, qword [rbx + r9 - 8]
lea rcx, [rbp + 0x3f0]
call fcn.14000e840
cmp byte [rbp + 0x3f0], 0
jne 0x14000492e
mov ecx, 3
call fcn.1400e9310
lea rdx, str.https:__quan.suning.com_getSysTime.dosysTime1
lea rcx, [rbp + 0x3f0]
mov r8d, 0x25
call fcn.14004c970
mov rbx, qword [rbp + 0x3f0]
mov rsi, qword [rbp + 0x3f8]
cmp rbx, 3
je 0x1400048f0
lea rdx, [rbp + 0x400]
lea rcx, [rbp + 0x650]
mov r8d, 0xb0
call fcn.14011a750
mov qword [rbp + 0x640], rbx
mov qword [rbp + 0x648], rsi
lea rcx, [rbp - 0x50]
lea rdx, [rbp + 0x640]
call fcn.140050c50
mov rbx, qword [rbp - 0x50]
mov rsi, qword [rbp - 0x48]
test rbx, rbx
je 0x1400048f0
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 0x1400048e4
movups xmm0, xmmword [rbp + 0x970]
movaps xmmword [rbp + 0x8d0], xmm0
lea rcx, [rbp + 0x8d0]
call fcn.140047a40
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 0x14000403d
pcmpeqb xmm2, xmm1
pmovmskb r8d, xmm2
test r8d, r8d
jne 0x1400048e4
add rax, rdx
add rax, 0x10
add rdx, 0x10
jmp 0x140003ff1
lea r9d, [r8 - 1]
and r9w, r8w
mov r8d, r9d
je 0x14000400b
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 0x140004030
lea r10, [rcx + r9]
mov r10, qword [r10 + 8]
cmp qword [r10], rdi
jne 0x140004030
mov rdx, qword [rbx + r9 - 0x10]
mov r8, qword [rbx + r9 - 8]
lea rcx, [rbp + 0x3f0]
call fcn.14000e840
cmp byte [rbp + 0x3f0], 0
jne 0x140004941
lea rcx, [rbp + 0x950]
call fcn.140047390
lea rcx, [rbp + 0x920]
call fcn.140047390
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.1400eec40
mov rdx, qword [rbp + 0x908]
mov r8, qword [rbp + 0x910]
lea rcx, [rbp + 0x640]
call fcn.140009b90
cmp qword [rbp + 0x640], 0
jne 0x14000499e
mov rdi, qword [rbp + 0x650]
test rdi, rdi
je 0x140004296
js 0x1400049aa
mov rbx, qword [rbp + 0x648]
movzx eax, byte [0x140198310]
xor ecx, ecx
mov rdx, rdi
call fcn.1400f3050
test rax, rax
je 0x1400049af
mov qword [rbp + 0x9b0], rax
mov rcx, rax
mov rdx, rbx
mov r8, rdi
call fcn.14011a750
movzx eax, byte [0x140198310]
xor ecx, ecx
mov rdx, rdi
call fcn.1400f3050
test rax, rax
je 0x1400049bc
mov r14, rax
mov rcx, rax
mov rdx, rbx
mov r8, rdi
call fcn.14011a750
mov qword [rbp + 0x640], rdi
mov qword [rbp + 0x648], r14
mov qword [rbp + 0x650], rdi
mov byte [rbp + 0x658], 0
lea rdx, [0x14015f540]
lea rcx, [rbp + 0x640]
mov r8d, 1
call fcn.1400eec40
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.1400ed030
mov rax, qword [rbp + 0x950]
mov r12, qword [rbp + 0x958]
cmp rax, r15
je 0x14000425b
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.1400ee640
mov r13, qword [rbp + 0x8a8]
mov r12, qword [rbp + 0x8b0]
cmp r13, r15
jne 0x1400043a0
mov r14, qword [rbp + 0x9b0]
cmp qword [rbp + 0x9a8], 0
je 0x140004282
mov rcx, qword [0x140198260]
xor edx, edx
mov r8, qword [rbp + 0x988]
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x140198260]
xor edx, edx
mov r8, r14
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x1400042a0
movabs r12, 0x300000002
mov qword [rbp + 0x1d0], r12
lea rax, [rbp + 0x1d0]
mov qword [rbp + 0x3f0], rax
lea rax, case.0x140072fa6.1543
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.1400f1df0
mov rsi, qword [rbp + 0x1d0]
mov eax, esi
and eax, 3
cmp eax, 1
jne 0x140004364
mov rdi, qword [rsi - 1]
mov rbx, qword [rsi + 7]
mov rax, qword [rbx]
test rax, rax
je 0x14000432b
mov rcx, rdi
call rax
dec rsi
cmp qword [rbx + 8], 0
je 0x140004352
cmp qword [rbx + 0x10], 0x11
jb 0x140004340
mov rdi, qword [rdi - 8]
mov rcx, qword [0x140198260]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x140198260]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rbp + 0x900], 0
je 0x140003c8d
mov r8, qword [rbp + 0x908]
mov rcx, qword [0x140198260]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x140003c8d
test rax, rax
jne 0x140004973
call fcn.140121290
jmp 0x140003cb1
lea rbx, [rbp + 0x640]
mov r8d, 0x250
mov rcx, rbx
xor edx, edx
call fcn.14011adf0
mov rcx, r12
mov rdx, rbx
call qword [sym.imp.kernel32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
mov r14, qword [rbp + 0x9b0]
je 0x1400044a6
mov r15, rax
movzx eax, byte [0x140198310]
mov edx, 0x30
xor ecx, ecx
call fcn.1400f3050
test rax, rax
je 0x1400049d2
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.14011a750
test r13, r13
je 0x14000449e
mov rcx, qword [0x140198260]
xor edx, edx
mov r8, r12
call qword [sym.imp.kernel32.dll_HeapFree]
mov r13d, 1
jmp 0x14000451a
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
jne 0x1400048a1
movzx eax, byte [0x140198310]
mov edx, 0x30
xor ecx, ecx
call fcn.1400f3050
test rax, rax
je 0x1400049f8
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 0x14000450a
mov rcx, qword [0x140198260]
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 0x14000453a
mov rcx, qword [0x140198260]
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.14011a750
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.14011a750
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 0x140004640
mov rcx, qword [0x140198260]
xor edx, edx
mov r8, r13
call qword [sym.imp.kernel32.dll_HeapFree]
dec r12
mov rcx, qword [0x140198260]
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 0x140004810
cmp r13d, 1
setne al
or al, byte [rbp + 0x9b0]
je 0x1400046e0
mov r8d, 0x250
mov rcx, rdi
xor edx, edx
call fcn.14011adf0
nop dword [rax]
mov rcx, r15
mov rdx, rdi
call r14
test eax, eax
je 0x140004780
cmp word [rbp + 0x41c], 0x2e
jne 0x1400046a7
movzx eax, word [rbp + 0x41e]
test ax, ax
je 0x140004670
cmp ax, 0x2e
jne 0x1400046a7
cmp word [rbp + 0x420], 0
je 0x140004670
lock inc qword [rsi]
jle 0x140004a15
mov r8d, 0x250
lea rcx, [rbp + 0x650]
mov rdx, rdi
call fcn.14011a750
mov ecx, 8
mov rax, rsi
jmp 0x1400047a7
lock inc qword [rsi]
jle 0x140004a15
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.14011a750
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 0x1400047bb
inc rbx
xor r13d, r13d
lock dec qword [rcx]
jne 0x140004640
call fcn.140047340
jmp 0x140004640
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x12
je 0x140004812
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 0x140004766
mov r12, qword [rbp + 0x650]
inc rbx
mov eax, r12d
and eax, 3
xor r13d, r13d
cmp eax, 1
jne 0x140004640
mov rsi, r15
mov r13, qword [r12 - 1]
mov r15, qword [r12 + 7]
mov rax, qword [r15]
test rax, rax
je 0x1400047f1
mov rcx, r13
call rax
cmp qword [r15 + 8], 0
je 0x140004615
cmp qword [r15 + 0x10], 0x11
jb 0x140004603
mov r13, qword [r13 - 8]
jmp 0x140004603
xor ebx, ebx
mov rcx, r15
call qword [sym.imp.kernel32.dll_FindClose]
lock dec qword [rsi]
jne 0x140004829
mov rcx, rsi
call fcn.140047340
mov qword [rbp + 0x1d0], rbx
lea rax, [rbp + 0x1d0]
mov qword [rbp + 0x3f0], rax
lea rax, [fcn.140008650]
mov qword [rbp + 0x3f8], rax
lea rax, [0x140128eb0]
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.1400f1b40
cmp qword [rbp + 0x900], 0
jne 0x140004372
jmp 0x140003c8d
mov ebx, eax
shl rbx, 0x20
test r13, r13
je 0x1400048be
mov rcx, qword [0x140198260]
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 0x14000426c
jmp 0x140004282
lea rcx, [0x140128f68]
call fcn.14011b930
lea rcx, [0x140128f98]
call fcn.14011b930
lea rcx, [rbp + 0x920]
call fcn.140047390
mov qword [rbp + 0x640], rsi
lea rax, [0x140128fc8]
mov qword [rsp + 0x20], rax
lea rcx, str.called__Result::unwrap____on_an__Err__value
lea r9, [0x140128cd0]
lea r8, [rbp + 0x640]
mov edx, 0x2b
call fcn.14011b890
movzx eax, byte [rbp + 0x3f1]
mov byte [rbp - 0x50], al
lea rax, [0x140128f80]
jmp 0x140004952
movzx eax, byte [rbp + 0x3f1]
mov byte [rbp - 0x50], al
lea rax, [0x140128fb0]
mov qword [rsp + 0x20], rax
lea rcx, str.called__Result::unwrap____on_an__Err__value
lea r9, [0x140128cf0]
lea r8, [rbp - 0x50]
mov edx, 0x2b
call fcn.14011b890
lea rax, [0x140163460]
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_ba1d7f4a083e6402679105115ded645512a7aea8library_std_src_threadlocal.rs
lea r9, [0x140163200]
lea r8, [rbp + 0x3f0]
mov edx, 0x46
call fcn.14011b890
lea rcx, [0x140128f20]
call fcn.14011b930
call fcn.1400062d0
mov ecx, 1
mov rdx, rdi
call fcn.14011b260
mov byte [rbp + 0x9bf], 1
mov ecx, 1
mov rdx, rdi
call fcn.14011b260
jmp 0x140004a15
mov qword [rbp + 0x9a0], r13
mov qword [rbp + 0x998], r12
mov qword [rbp + 0x990], r15
mov ecx, 8
mov edx, 0x30
call fcn.14011b280
jmp 0x140004a15
mov qword [rbp + 0x9a0], r13
mov qword [rbp + 0x998], r12
mov ecx, 8
mov edx, 0x30
call fcn.14011b280
ud2