Function at 0x140020450
Capabilities:
Create thread
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x9c8]
sub rsp, 0xac8
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov rax, qword [0x140136e20]
xor rax, rsp
mov qword [rbp + 0x9b0], rax
mov qword [rsp + 0x78], r9
mov rbx, r8
mov qword [rbp - 0x80], rbx
mov r14, rdx
mov r15, rcx
xor r13d, r13d
mov qword [rsp + 0x70], r13
mov qword [rbp - 0x78], r13
mov qword [rsp + 0x30], r13
lea rdx, [rbp + 0x590]
mov rcx, r8
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov edi, r13d
test eax, eax
sete dil
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
lea esi, [r13 + 1]
test eax, eax
js 0x140020513
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.140092a30
mov ebx, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
cmovne edi, esi
mov dword [rsp + 0x48], edi
mov rbx, qword [rbp - 0x80]
mov r8d, 0x8000
lea rdx, [rbp + 0x590]
mov rcx, rbx
call fcn.140092ff0
mov r8d, 0x8000
lea rdx, [rbp + 0x7a0]
mov rcx, rbx
call fcn.140092ff0
lea r11, [rbp - 0x78]
mov qword [rsp + 0x20], r11
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x11]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
js 0x140020572
mov rdx, qword [rbp - 0x78]
mov rcx, rbx
call fcn.140092a30
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xb]
mov rcx, qword [r15 + 0x18]
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, 0xa0
mov r8d, 0x20
cmp dword [r15 + 0x244], r13d
cmovne r8d, eax
mov rax, qword [r14]
lea r9, [rsp + 0x70]
xor edx, edx
mov rcx, r14
call qword [rax + 0x20]
mov r12, r13
mov qword [rsp + 0x50], r13
mov rsi, r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
test eax, eax
js 0x1400209fe
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400209fe
mov dword [rsp + 0x38], 1
movsxd rax, edi
mov qword [rbp - 0x68], rax
mov rax, qword [rcx]
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x30]
mov edx, 1
call qword [rax + ILCombine]
test eax, eax
jne 0x140020933
cmp dword [rsp + 0x38], 1
jne 0x14002092f
mov dword [rsp + 0x40], 0x60000000
mov rax, qword [r14]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x30]
mov edx, 1
mov rcx, r14
call qword [rax + 0x48]
test eax, eax
js 0x140020902
test dword [rsp + 0x40], 0x20000000
je 0x140020902
mov rax, qword [r14]
lea r9, [rbp + 0x60]
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
mov rcx, r14
call qword [rax + 0x58]
test eax, eax
js 0x140020902
mov r9d, 0x104
lea r8, [rbp + 0x380]
mov rdx, qword [rsp + 0x30]
lea rcx, [rbp + 0x60]
call qword [sym.imp.SHLWAPI.dll_StrRetToBufW]
mov rdx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.SHELL32.dll_ILCombine]
mov qword [rbp - 0x70], rax
mov rcx, r15
call fcn.140020ab0
movsxd rdi, eax
mov rbx, rdi
add rbx, rbx
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.SHELL32.dll_ILClone]
mov rcx, qword [r15 + 0x280]
mov qword [rcx + rbx*8], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_ILClone]
mov rcx, qword [r15 + 0x280]
mov qword [rcx + rbx*8 + 8], rax
mov dword [rbp + 0x378], edi
mov edx, 0x104
lea rcx, [rbp + 0x170]
lea r8, [rbp + 0x380]
lea rax, [rbp + 0x170]
sub r8, rax
nop
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140020714
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140020714
mov word [rcx], ax
add rcx, 2
dec rdx
jne 0x1400206f0
jmp 0x140020719
test rdx, rdx
jne 0x14002071d
sub rcx, 2
xor eax, eax
mov word [rcx], ax
cmp qword [rbp - 0x68], rax
je 0x1400207e7
lea rax, [rbp + 0x170]
cmp rax, rsi
jae 0x14002079e
lea rax, [rbp + 0x170]
cmp r12, rax
ja 0x14002079e
lea rcx, [rbp + 0x170]
sub rcx, r12
movabs rax, 0x3e88cb3c9484e2b
imul rcx
mov rbx, rdx
sar rbx, 3
mov rax, rbx
shr rax, 0x3f
add rbx, rax
cmp rsi, r13
jne 0x14002078a
lea rcx, [rsp + 0x50]
call fcn.140022a00
mov r13, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
imul rbx, rbx, 0x20c
add rbx, r12
test rsi, rsi
je 0x1400207d6
mov rdx, rbx
jmp 0x1400207c8
cmp rsi, r13
jne 0x1400207bc
lea rcx, [rsp + 0x50]
call fcn.140022a00
mov r13, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
test rsi, rsi
je 0x1400207d6
lea rdx, [rbp + 0x170]
mov rcx, rsi
mov r8d, 0x20c
call fcn.14004b590
add rsi, 0x20c
mov qword [rsp + 0x58], rsi
jmp 0x1400208f4
mov rbx, rsi
mov rcx, rsi
sub rcx, r12
movabs rdi, 0x3e88cb3c9484e2b
mov rax, rdi
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x140020870
lea rbx, [rsi - 0x20c]
mov rdx, rbx
lea rcx, [rbp + 0x380]
call qword [sym.imp.SHLWAPI.dll_StrCmpLogicalW]
test eax, eax
jns 0x140020850
nop dword [rax + rax]
cmp rbx, r12
je 0x140020855
sub rbx, 0x20c
mov rdx, rbx
lea rcx, [rbp + 0x380]
call qword [sym.imp.SHLWAPI.dll_StrCmpLogicalW]
test eax, eax
js 0x140020830
cmp rbx, r12
jne 0x140020869
mov rdx, rbx
lea rcx, [rbp + 0x380]
call qword [sym.imp.SHLWAPI.dll_StrCmpLogicalW]
test eax, eax
jle 0x140020870
add rbx, 0x20c
sub rbx, r12
mov rax, rdi
imul rbx
mov rbx, rdx
sar rbx, 3
mov rax, rbx
shr rax, 0x3f
add rbx, rax
cmp rsi, r13
jne 0x1400208a8
lea rcx, [rsp + 0x50]
call fcn.140022a00
mov r13, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
test rsi, rsi
je 0x1400208c2
mov rcx, rsi
lea rdx, [rbp + 0x170]
mov r8d, 0x20c
call fcn.14004b590
add rsi, 0x20c
mov qword [rsp + 0x58], rsi
lea rdx, [rsi - 0x20c]
imul rbx, rbx, 0x20c
add rbx, r12
cmp rbx, rdx
je 0x1400208f4
cmp rdx, rsi
je 0x1400208f4
mov r8, rsi
mov rcx, rbx
call fcn.140022dc0
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rbx, qword [rbp - 0x80]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x30]
mov edx, 1
call qword [rax + ILCombine]
test eax, eax
je 0x140020603
mov edi, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
call qword [rax + reloc.SHELL32.dll_ILFindLastID]
mov rbx, r12
mov r13, qword [rsp + 0x78]
cmp r12, rsi
je 0x1400209cb
nop
mov dword [rbp - 0x60], 0x67
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x3c], 0xffffffffffffffff
movsxd rax, dword [rbx + 0x208]
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x34], 1
mov qword [rbp + 8], 0xffffffffffff0002
mov qword [rbp], r13
movaps xmm0, xmmword [rbp - 0x60]
movaps xmmword [rbp + 0x10], xmm0
movaps xmm1, xmmword [rbp - 0x50]
movaps xmmword [rbp + 0x20], xmm1
movaps xmm0, xmmword [rbp - 0x40]
movaps xmmword [rbp + 0x30], xmm0
movaps xmm1, xmmword [rbp - 0x30]
movaps xmmword [rbp + 0x40], xmm1
movaps xmm0, xmmword [rbp - 0x20]
movaps xmmword [rbp + 0x50], xmm0
lea r9, [rbp]
xor r8d, r8d
mov edx, 0x1132
mov rcx, qword [r15 + 0x18]
call qword [sym.imp.USER32.dll_SendMessageW]
add rbx, 0x20c
cmp rbx, rsi
jne 0x140020950
test edi, edi
je 0x140020a03
mov qword [rsp + 0x50], r13
lea rax, [0x140020250]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], r15
lea r9, [rsp + 0x50]
xor r8d, r8d
mov edx, 0x1115
mov rcx, qword [r15 + 0x18]
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x140020a03
mov r13, qword [rsp + 0x78]
xor r9d, r9d
lea edx, [r9 + 0xb]
lea r8d, [r9 + 1]
mov rcx, qword [r15 + 0x18]
call qword [sym.imp.USER32.dll_SendMessageW]
mov ecx, 0x28
call fcn.14004af90
mov rbx, rax
test rax, rax
je 0x140020a77
mov rdx, qword [r15 + 0x18]
mov qword [rax], rdx
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.SHELL32.dll_ILClone]
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], r13
mov qword [rbx + 0x18], r15
lea rax, [0x140149610]
mov qword [rsp + 0x28], rax
xor eax, eax
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, [0x140020bc0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test r12, r12
je 0x140020a84
mov rcx, r12
call fcn.14004b088
mov rcx, qword [rbp + 0x9b0]
xor rcx, rsp
call fcn.14004ae00
add rsp, 0xac8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret