Function at 0x140003ea0
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 [0x140130adc]
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 0x140003f15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
movabs rax, 0x8000000000000000
mov qword [rbp - 0x50], rax
jmp 0x140003f47
call qword [sym.imp.kernel32.dll_lstrlenW]
movsxd r8, eax
mov rdx, qword [rbp + 0x2e0]
lea rcx, [rbp - 0x50]
call fcn.1400df560
mov rcx, qword [rbp + 0x2e0]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
cmp rax, qword [rbp - 0x50]
jno 0x1400043a8
lea rax, [0x14018d8e8]
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.1400e6c80
mov eax, dword [0x14019f30c]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 0x48]
cmp rax, 1
jne 0x140004837
mov eax, dword [0x14019f30c]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rsi, qword [rax + 0x50]
inc qword [rsi]
je 0x140004bcf
lea rdi, [rsi + 0x10]
lea rbx, [rsi + 0x120]
mov rax, qword [rsi + 0x110]
jmp 0x140004002
mov rcx, rbx
mov rdx, rdi
call fcn.1401185b0
xor ecx, ecx
lea rax, [rcx + 1]
test dword [rsi + rcx*4 + 0x10], 0x40000000
mov qword [rsi + 0x110], rax
je 0x14000403b
mov rcx, rax
cmp rax, 0x40
jb 0x140003fed
mov rax, qword [rsi + 0x158]
test rax, rax
jle 0x140003fe0
cmp qword [rsi + 0x160], 0
js 0x140003fe0
add rax, 0xffffffffffffff00
mov qword [rsi + 0x158], rax
mov rcx, rbx
mov rdx, rdi
call fcn.1400441f0
jmp 0x140003feb
dec qword [rsi]
jne 0x140004058
dec qword [rsi + 8]
jne 0x140004058
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.1401116d0
mov rdi, qword [rbp + 0x2e0]
mov rsi, qword [rbp + 0x2e8]
cmp rdi, 3
je 0x140004aba
lea rdx, [rbp + 0x2f0]
lea rcx, [rbp - 0x40]
mov r8d, 0xb0
call fcn.140120b90
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rsi
lea rcx, [rbp + 0x420]
lea rdx, [rbp - 0x50]
call fcn.140115450
mov rbx, qword [rbp + 0x420]
mov rsi, qword [rbp + 0x428]
test rbx, rbx
je 0x140004aba
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 0x140004a96
movups xmm0, xmmword [rbp + 0x3c8]
movaps xmmword [rbp + 0x2c0], xmm0
lea rcx, [rbp + 0x2c0]
call fcn.14010f6c0
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 0x14000419d
pcmpeqb xmm2, xmm1
pmovmskb r8d, xmm2
test r8d, r8d
jne 0x140004a96
add rax, rdx
add rax, 0x10
add rdx, 0x10
jmp 0x140004151
lea r9d, [r8 - 1]
and r9w, r8w
mov r8d, r9d
je 0x14000416b
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 0x140004190
lea r10, [rcx + r9]
mov r10, qword [r10 + 8]
cmp qword [r10], rdi
jne 0x140004190
mov rdx, qword [rbx + r9 - 0x10]
mov r8, qword [rbx + r9 - 8]
lea rcx, [rbp + 0x2e0]
call fcn.14000ed80
cmp byte [rbp + 0x2e0], 1
je 0x140004ae6
mov ecx, 3
call fcn.1400dcfa0
lea rdx, str.https:__quan.suning.com_getSysTime.dosysTime1
lea rcx, [rbp + 0x2e0]
mov r8d, 0x25
call fcn.1401116d0
mov rbx, qword [rbp + 0x2e0]
mov rsi, qword [rbp + 0x2e8]
cmp rbx, 3
je 0x140004aae
lea rdx, [rbp + 0x2f0]
lea rcx, [rbp + 0x80]
mov r8d, 0xb0
call fcn.140120b90
mov qword [rbp + 0x70], rbx
mov qword [rbp + 0x78], rsi
lea rcx, [rbp + 0x420]
lea rdx, [rbp + 0x70]
call fcn.140115450
mov rbx, qword [rbp + 0x420]
mov rsi, qword [rbp + 0x428]
test rbx, rbx
je 0x140004aae
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 0x140004aa2
movups xmm0, xmmword [rbp + 0x408]
movaps xmmword [rbp + 0x2d0], xmm0
lea rcx, [rbp + 0x2d0]
call fcn.14010f6c0
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 0x14000432d
pcmpeqb xmm2, xmm1
pmovmskb r8d, xmm2
test r8d, r8d
jne 0x140004aa2
add rax, rdx
add rax, 0x10
add rdx, 0x10
jmp 0x1400042e7
lea r9d, [r8 - 1]
and r9w, r8w
mov r8d, r9d
je 0x140004301
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 0x140004320
lea r10, [rcx + r9]
mov r10, qword [r10 + 8]
cmp qword [r10], rdi
jne 0x140004320
mov rdx, qword [rbx + r9 - 0x10]
mov r8, qword [rbx + r9 - 8]
lea rcx, [rbp + 0x2e0]
call fcn.14000ed80
cmp byte [rbp + 0x2e0], 1
je 0x140004afc
lea rcx, [rbp + 0x3e8]
call fcn.1400b6290
lea rcx, [rbp + 0x3a8]
call fcn.1400b6290
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.1400e3300
mov rdx, qword [rbp + 0x2e8]
mov r8, qword [rbp + 0x2f0]
lea rcx, [rbp + 0x70]
call fcn.14000a480
test byte [rbp + 0x70], 1
jne 0x140004b5f
mov rbx, qword [rbp + 0x80]
test rbx, rbx
je 0x140004758
js 0x140004b6b
mov rsi, qword [rbp + 0x78]
movzx eax, byte [0x14019f308]
xor ecx, ecx
mov rdx, rbx
call fcn.1400e7f40
test rax, rax
je 0x140004b70
mov qword [rbp + 0x460], rax
mov rcx, rax
mov rdx, rsi
mov r8, rbx
call fcn.140120b90
movzx eax, byte [0x14019f308]
xor ecx, ecx
mov rdx, rbx
call fcn.1400e7f40
test rax, rax
je 0x140004b7d
mov rdi, rax
mov rcx, rax
mov rdx, rsi
mov r8, rbx
call fcn.140120b90
mov qword [rbp + 0x70], rbx
mov qword [rbp + 0x78], rdi
mov qword [rbp + 0x80], rbx
mov byte [rbp + 0x88], 0
lea rdx, [0x140164330]
lea rcx, [rbp + 0x70]
mov r8d, 1
call fcn.1400e3300
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.1400e1510
mov rax, qword [rbp + 0x420]
mov rdi, qword [rbp + 0x428]
mov rcx, rax
neg rcx
jo 0x14000452c
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.1400e2ce0
mov r15, qword [rbp + 0x3e8]
mov r12, qword [rbp + 0x3f0]
mov rax, r15
neg rax
jno 0x1400048ed
mov rdi, r12
cmp qword [rbp + 0x458], 0
mov r8, qword [rbp + 0x450]
je 0x14000454c
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 0x140004762
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 0x1400045f0
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 0x14000484a
cmp r15d, 1
setne al
or al, sil
test al, 1
je 0x140004680
mov r8d, 0x250
mov rcx, rbx
xor edx, edx
call fcn.140121230
nop
mov rcx, r14
mov rdx, rbx
call r12
test eax, eax
je 0x1400046d0
cmp word [rbp + 0x9c], 0x2e
jne 0x140004657
movzx eax, word [rbp + 0x9e]
test ax, ax
je 0x140004620
cmp ax, 0x2e
jne 0x140004657
cmp word [rbp + 0xa0], 0
je 0x140004620
lock inc qword [rdi]
jle 0x140004bcf
mov rax, qword [rbp + 0x70]
mov qword [rbp + 0x3e8], rax
lea rcx, [rbp + 0x420]
mov rax, rdi
jmp 0x1400046f9
lock inc qword [rdi]
jle 0x140004bcf
mov rax, qword [rbp + 0x460]
mov qword [rbp + 0x3e8], rax
mov qword [rbp + 0x420], rdi
mov rcx, rdi
test rcx, rcx
je 0x140004708
inc r13
xor r15d, r15d
lock dec qword [rcx]
jne 0x1400045f0
call fcn.14010eba0
jmp 0x1400045f0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x12
je 0x14000484a
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 0x1400046a7
mov r14, qword [rbp + 0x3e8]
inc r13
mov eax, r14d
and eax, 3
xor r15d, r15d
cmp eax, 1
jne 0x1400045f0
mov r15, qword [r14 - 1]
mov rdi, qword [r14 + 7]
mov rax, qword [rdi]
test rax, rax
je 0x140004739
mov rcx, r15
call rax
cmp qword [rdi + 8], 0
je 0x1400045c2
cmp qword [rdi + 0x10], 0x11
jb 0x1400045b0
mov r15, qword [r15 - 8]
jmp 0x1400045b0
movabs rdi, 0x300000002
mov qword [rbp + 0x3e8], rdi
lea rax, [rbp + 0x3e8]
mov qword [rbp + 0x420], rax
lea rax, [fcn.1400e1f10]
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.1400e6c80
mov rsi, qword [rbp + 0x3e8]
mov eax, esi
and eax, 3
cmp eax, 1
jne 0x140004824
mov rdi, qword [rsi - 1]
mov rbx, qword [rsi + 7]
mov rax, qword [rbx]
test rax, rax
je 0x1400047eb
mov rcx, rdi
call rax
dec rsi
cmp qword [rbx + 8], 0
je 0x140004812
cmp qword [rbx + 0x10], 0x11
jb 0x140004800
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 0x1400048d2
jmp 0x140003f7a
test rax, rax
jne 0x140004b34
call fcn.1401264e0
jmp 0x140003f9e
mov rcx, r14
call qword [sym.imp.kernel32.dll_FindClose]
lock dec qword [rdi]
jne 0x140004861
mov rcx, rdi
call fcn.14010eba0
mov qword [rbp + 0x3e8], r13
lea rax, [rbp + 0x3e8]
mov qword [rbp + 0x420], rax
lea rax, [fcn.140008da0]
mov qword [rbp + 0x428], rax
lea rax, [0x14012ee68]
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.1400e69a0
cmp qword [rbp + 0x2e0], 0
je 0x140003f7a
mov r8, qword [rbp + 0x2e8]
mov rcx, qword [0x14019f258]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x140003f7a
lea rdi, [rbp + 0x70]
mov r8d, 0x250
mov rcx, rdi
xor edx, edx
call fcn.140121230
mov rcx, r12
mov rdx, rdi
call qword [sym.imp.kernel32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x1400049b6
mov qword [rbp + 0x418], rax
movzx eax, byte [0x14019f308]
mov edx, 0x30
xor ecx, ecx
call fcn.1400e7f40
test rax, rax
je 0x140004b93
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 0x1400049a8
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 0x140004a42
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
jne 0x140004a55
movzx eax, byte [0x14019f308]
mov edx, 0x30
xor ecx, ecx
call fcn.1400e7f40
test rax, rax
mov r8, qword [rbp + 0x450]
je 0x140004bb2
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 0x140004a2e
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 0x14000455c
jmp 0x14000456b
mov edi, eax
shl rdi, 0x20
test r15, r15
mov r8, qword [rbp + 0x450]
je 0x140004a7f
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 0x14000453d
jmp 0x14000454c
lea rcx, [0x14012ef20]
call fcn.140121f20
lea rcx, [0x14012ef50]
call fcn.140121f20
lea rcx, [rbp + 0x3a8]
call fcn.1400b6290
mov qword [rbp + 0x70], rsi
lea rax, [0x14012ef80]
mov qword [rsp + 0x20], rax
lea rcx, str.called__Result::unwrap____on_an__Err__value
lea r9, [0x14012eca8]
lea r8, [rbp + 0x70]
mov edx, 0x2b
call fcn.140121e20
movzx eax, byte [rbp + 0x2e1]
mov byte [rbp + 0x420], al
lea rax, [0x14012ef38]
jmp 0x140004b10
movzx eax, byte [rbp + 0x2e1]
mov byte [rbp + 0x420], al
lea rax, [0x14012ef68]
mov qword [rsp + 0x20], rax
lea rcx, str.called__Result::unwrap____on_an__Err__value
lea r9, [0x14012ec88]
lea r8, [rbp + 0x420]
mov edx, 0x2b
call fcn.140121e20
lea rax, [0x14018dc10]
mov qword [rsp + 0x20], rax
lea rcx, [0x14018db7b]
lea r9, [0x14018dc28]
lea r8, [rbp + 0x2e0]
mov edx, 0x46
call fcn.140121e20
lea rcx, [0x14012eed8]
call fcn.140121f20
call fcn.140006b00
mov ecx, 1
mov rdx, rbx
call fcn.1401216a0
mov byte [rbp + 0x46f], 1
mov ecx, 1
mov rdx, rbx
call fcn.1401216a0
jmp 0x140004bcf
mov qword [rbp + 0x3d8], r15
mov qword [rbp + 0x3e0], r12
mov ecx, 8
mov edx, 0x30
call fcn.1401216c0
jmp 0x140004bcf
mov qword [rbp + 0x3d8], r15
mov qword [rbp + 0x3e0], r12
mov ecx, 8
mov edx, 0x30
call fcn.1401216c0
ud2