Function at 0x140003d60
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 [0x140131adc]
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 0x140003dd5
call qword [sym.imp.ole32.dll_CoTaskMemFree]
movabs rax, 0x8000000000000000
mov qword [rbp - 0x50], rax
jmp 0x140003e07
call qword [sym.imp.kernel32.dll_lstrlenW]
movsxd r8, eax
mov rdx, qword [rbp + 0x2e0]
lea rcx, [rbp - 0x50]
call fcn.1400f0250
mov rcx, qword [rbp + 0x2e0]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
cmp rax, qword [rbp - 0x50]
jno 0x140004268
lea rax, [0x140163210]
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.1400f7840
mov eax, dword [0x14019f30c]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 0x48]
cmp rax, 1
jne 0x1400046f7
mov eax, dword [0x14019f30c]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rsi, qword [rax + 0x50]
inc qword [rsi]
je 0x140004a8f
lea rdi, [rsi + 0x10]
lea rbx, [rsi + 0x120]
mov rax, qword [rsi + 0x110]
jmp 0x140003ec2
mov rcx, rbx
mov rdx, rdi
call fcn.1400e70e0
xor ecx, ecx
lea rax, [rcx + 1]
test dword [rsi + rcx*4 + 0x10], 0x40000000
mov qword [rsi + 0x110], rax
je 0x140003efb
mov rcx, rax
cmp rax, 0x40
jb 0x140003ead
mov rax, qword [rsi + 0x158]
test rax, rax
jle 0x140003ea0
cmp qword [rsi + 0x160], 0
js 0x140003ea0
add rax, 0xffffffffffffff00
mov qword [rsi + 0x158], rax
mov rcx, rbx
mov rdx, rdi
call fcn.140043fc0
jmp 0x140003eab
dec qword [rsi]
jne 0x140003f18
dec qword [rsi + 8]
jne 0x140003f18
mov rcx, qword [0x14019f258]
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.1400d9f00
mov rdi, qword [rbp + 0x2e0]
mov rsi, qword [rbp + 0x2e8]
cmp rdi, 3
je 0x14000497a
lea rdx, [rbp + 0x2f0]
lea rcx, [rbp - 0x40]
mov r8d, 0xb0
call fcn.140121660
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rsi
lea rcx, [rbp + 0x420]
lea rdx, [rbp - 0x50]
call fcn.1400dddc0
mov rbx, qword [rbp + 0x420]
mov rsi, qword [rbp + 0x428]
test rbx, rbx
je 0x14000497a
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 0x140004956
movups xmm0, xmmword [rbp + 0x3c8]
movaps xmmword [rbp + 0x2c0], xmm0
lea rcx, [rbp + 0x2c0]
call fcn.1400e0ac0
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 0x14000405d
pcmpeqb xmm2, xmm1
pmovmskb r8d, xmm2
test r8d, r8d
jne 0x140004956
add rax, rdx
add rax, 0x10
add rdx, 0x10
jmp 0x140004011
lea r9d, [r8 - 1]
and r9w, r8w
mov r8d, r9d
je 0x14000402b
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 0x140004050
lea r10, [rcx + r9]
mov r10, qword [r10 + 8]
cmp qword [r10], rdi
jne 0x140004050
mov rdx, qword [rbx + r9 - 0x10]
mov r8, qword [rbx + r9 - 8]
lea rcx, [rbp + 0x2e0]
call fcn.14000ea70
cmp byte [rbp + 0x2e0], 1
je 0x1400049a6
mov ecx, 3
call fcn.1400edc80
lea rdx, str.https:__quan.suning.com_getSysTime.dosysTime1
lea rcx, [rbp + 0x2e0]
mov r8d, 0x25
call fcn.1400d9f00
mov rbx, qword [rbp + 0x2e0]
mov rsi, qword [rbp + 0x2e8]
cmp rbx, 3
je 0x14000496e
lea rdx, [rbp + 0x2f0]
lea rcx, [rbp + 0x80]
mov r8d, 0xb0
call fcn.140121660
mov qword [rbp + 0x70], rbx
mov qword [rbp + 0x78], rsi
lea rcx, [rbp + 0x420]
lea rdx, [rbp + 0x70]
call fcn.1400dddc0
mov rbx, qword [rbp + 0x420]
mov rsi, qword [rbp + 0x428]
test rbx, rbx
je 0x14000496e
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 0x140004962
movups xmm0, xmmword [rbp + 0x408]
movaps xmmword [rbp + 0x2d0], xmm0
lea rcx, [rbp + 0x2d0]
call fcn.1400e0ac0
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 0x1400041ed
pcmpeqb xmm2, xmm1
pmovmskb r8d, xmm2
test r8d, r8d
jne 0x140004962
add rax, rdx
add rax, 0x10
add rdx, 0x10
jmp 0x1400041a7
lea r9d, [r8 - 1]
and r9w, r8w
mov r8d, r9d
je 0x1400041c1
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 0x1400041e0
lea r10, [rcx + r9]
mov r10, qword [r10 + 8]
cmp qword [r10], rdi
jne 0x1400041e0
mov rdx, qword [rbx + r9 - 0x10]
mov r8, qword [rbx + r9 - 8]
lea rcx, [rbp + 0x2e0]
call fcn.14000ea70
cmp byte [rbp + 0x2e0], 1
je 0x1400049bc
lea rcx, [rbp + 0x3e8]
call fcn.1400ce9d0
lea rcx, [rbp + 0x3a8]
call fcn.1400ce9d0
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.1400f3f00
mov rdx, qword [rbp + 0x2e8]
mov r8, qword [rbp + 0x2f0]
lea rcx, [rbp + 0x70]
call fcn.14000a170
test byte [rbp + 0x70], 1
jne 0x140004a1f
mov rbx, qword [rbp + 0x80]
test rbx, rbx
je 0x140004618
js 0x140004a2b
mov rsi, qword [rbp + 0x78]
movzx eax, byte [0x14019f308]
xor ecx, ecx
mov rdx, rbx
call fcn.1400f8ae0
test rax, rax
je 0x140004a30
mov qword [rbp + 0x460], rax
mov rcx, rax
mov rdx, rsi
mov r8, rbx
call fcn.140121660
movzx eax, byte [0x14019f308]
xor ecx, ecx
mov rdx, rbx
call fcn.1400f8ae0
test rax, rax
je 0x140004a3d
mov rdi, rax
mov rcx, rax
mov rdx, rsi
mov r8, rbx
call fcn.140121660
mov qword [rbp + 0x70], rbx
mov qword [rbp + 0x78], rdi
mov qword [rbp + 0x80], rbx
mov byte [rbp + 0x88], 0
lea rdx, [0x140166500]
lea rcx, [rbp + 0x70]
mov r8d, 1
call fcn.1400f3f00
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.1400f2190
mov rax, qword [rbp + 0x420]
mov rdi, qword [rbp + 0x428]
mov rcx, rax
neg rcx
jo 0x1400043ec
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 case.0x1400f40ab.446
mov r15, qword [rbp + 0x3e8]
mov r12, qword [rbp + 0x3f0]
mov rax, r15
neg rax
jno 0x1400047ad
mov rdi, r12
cmp qword [rbp + 0x458], 0
mov r8, qword [rbp + 0x450]
je 0x14000440c
mov rcx, qword [0x14019f258]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov r15d, 2
mov r12b, 1
mov r8, qword [rbp + 0x460]
mov rcx, qword [0x14019f258]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
cmp r15d, 2
sete al
or al, r12b
jne 0x140004622
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 0x1400044b0
mov rcx, qword [0x14019f258]
xor edx, edx
mov r8, r15
call qword [sym.imp.kernel32.dll_HeapFree]
dec r14
mov rcx, qword [0x14019f258]
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 0x14000470a
cmp r15d, 1
setne al
or al, sil
test al, 1
je 0x140004540
mov r8d, 0x250
mov rcx, rbx
xor edx, edx
call fcn.140121d00
nop
mov rcx, r14
mov rdx, rbx
call r12
test eax, eax
je 0x140004590
cmp word [rbp + 0x9c], 0x2e
jne 0x140004517
movzx eax, word [rbp + 0x9e]
test ax, ax
je 0x1400044e0
cmp ax, 0x2e
jne 0x140004517
cmp word [rbp + 0xa0], 0
je 0x1400044e0
lock inc qword [rdi]
jle 0x140004a8f
mov rax, qword [rbp + 0x70]
mov qword [rbp + 0x3e8], rax
lea rcx, [rbp + 0x420]
mov rax, rdi
jmp 0x1400045b9
lock inc qword [rdi]
jle 0x140004a8f
mov rax, qword [rbp + 0x460]
mov qword [rbp + 0x3e8], rax
mov qword [rbp + 0x420], rdi
mov rcx, rdi
test rcx, rcx
je 0x1400045c8
inc r13
xor r15d, r15d
lock dec qword [rcx]
jne 0x1400044b0
call fcn.1400d75b0
jmp 0x1400044b0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x12
je 0x14000470a
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 0x140004567
mov r14, qword [rbp + 0x3e8]
inc r13
mov eax, r14d
and eax, 3
xor r15d, r15d
cmp eax, 1
jne 0x1400044b0
mov r15, qword [r14 - 1]
mov rdi, qword [r14 + 7]
mov rax, qword [rdi]
test rax, rax
je 0x1400045f9
mov rcx, r15
call rax
cmp qword [rdi + 8], 0
je 0x140004482
cmp qword [rdi + 0x10], 0x11
jb 0x140004470
mov r15, qword [r15 - 8]
jmp 0x140004470
movabs rdi, 0x300000002
mov qword [rbp + 0x3e8], rdi
lea rax, [rbp + 0x3e8]
mov qword [rbp + 0x420], rax
lea rax, [fcn.1400f2b70]
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.1400f7840
mov rsi, qword [rbp + 0x3e8]
mov eax, esi
and eax, 3
cmp eax, 1
jne 0x1400046e4
mov rdi, qword [rsi - 1]
mov rbx, qword [rsi + 7]
mov rax, qword [rbx]
test rax, rax
je 0x1400046ab
mov rcx, rdi
call rax
dec rsi
cmp qword [rbx + 8], 0
je 0x1400046d2
cmp qword [rbx + 0x10], 0x11
jb 0x1400046c0
mov rdi, qword [rdi - 8]
mov rcx, qword [0x14019f258]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x14019f258]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rbp + 0x2e0], 0
jne 0x140004792
jmp 0x140003e3a
test rax, rax
jne 0x1400049f4
call fcn.140127240
jmp 0x140003e5e
mov rcx, r14
call qword [sym.imp.kernel32.dll_FindClose]
lock dec qword [rdi]
jne 0x140004721
mov rcx, rdi
call fcn.1400d75b0
mov qword [rbp + 0x3e8], r13
lea rax, [rbp + 0x3e8]
mov qword [rbp + 0x420], rax
lea rax, [fcn.140008ab0]
mov qword [rbp + 0x428], rax
lea rax, [0x14012fe70]
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.1400f7560
cmp qword [rbp + 0x2e0], 0
je 0x140003e3a
mov r8, qword [rbp + 0x2e8]
mov rcx, qword [0x14019f258]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x140003e3a
lea rdi, [rbp + 0x70]
mov r8d, 0x250
mov rcx, rdi
xor edx, edx
call fcn.140121d00
mov rcx, r12
mov rdx, rdi
call qword [sym.imp.kernel32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x140004876
mov qword [rbp + 0x418], rax
movzx eax, byte [0x14019f308]
mov edx, 0x30
xor ecx, ecx
call fcn.1400f8ae0
test rax, rax
je 0x140004a53
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 0x140004868
mov rcx, qword [0x14019f258]
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 0x140004902
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
jne 0x140004915
movzx eax, byte [0x14019f308]
mov edx, 0x30
xor ecx, ecx
call fcn.1400f8ae0
test rax, rax
mov r8, qword [rbp + 0x450]
je 0x140004a72
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 0x1400048ee
mov rcx, qword [0x14019f258]
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 0x14000441c
jmp 0x14000442b
mov edi, eax
shl rdi, 0x20
test r15, r15
mov r8, qword [rbp + 0x450]
je 0x14000493f
mov rcx, qword [0x14019f258]
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 0x1400043fd
jmp 0x14000440c
lea rcx, [0x14012ff28]
call fcn.140122a00
lea rcx, [0x14012ff58]
call fcn.140122a00
lea rcx, [rbp + 0x3a8]
call fcn.1400ce9d0
mov qword [rbp + 0x70], rsi
lea rax, [0x14012ff88]
mov qword [rsp + 0x20], rax
lea rcx, str.called__Result::unwrap____on_an__Err__value
lea r9, [0x14012fc90]
lea r8, [rbp + 0x70]
mov edx, 0x2b
call fcn.140122900
movzx eax, byte [rbp + 0x2e1]
mov byte [rbp + 0x420], al
lea rax, [0x14012ff40]
jmp 0x1400049d0
movzx eax, byte [rbp + 0x2e1]
mov byte [rbp + 0x420], al
lea rax, [0x14012ff70]
mov qword [rsp + 0x20], rax
lea rcx, str.called__Result::unwrap____on_an__Err__value
lea r9, [0x14012fcb0]
lea r8, [rbp + 0x420]
mov edx, 0x2b
call fcn.140122900
lea rax, [0x1401687f8]
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_41dd149fd6a6a06795fc6b9f54cb49af2f61775flibrary_std_src_threadlocal.rs
lea r9, [0x140168660]
lea r8, [rbp + 0x2e0]
mov edx, 0x46
call fcn.140122900
lea rcx, [0x14012fee0]
call fcn.140122a00
call fcn.1400067e0
mov ecx, 1
mov rdx, rbx
call fcn.140122170
mov byte [rbp + 0x46f], 1
mov ecx, 1
mov rdx, rbx
call fcn.140122170
jmp 0x140004a8f
mov qword [rbp + 0x3d8], r15
mov qword [rbp + 0x3e0], r12
mov ecx, 8
mov edx, 0x30
call fcn.140122190
jmp 0x140004a8f
mov qword [rbp + 0x3d8], r15
mov qword [rbp + 0x3e0], r12
mov ecx, 8
mov edx, 0x30
call fcn.140122190
ud2