Function at 0x1002d4c5
Capabilities:
Create process on windows
Get common file path
Query environment variable
Resume thread
Set environment variable

Disassembly:
mov eax, 0x10135b8c
call fcn.1007db34
sub esp, 0x60
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push edi
mov dword [ebp - 0x20], ecx
je 0x1002d7e7
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x1002d7e7
cmp dword [ebp + 0x14], ebx
je 0x1002d7e7
push esi
mov esi, 0x1019f4bc
push esi
lea ecx, [ebp - 0x10]
call fcn.10094520
mov dword [ebp - 4], ebx
call fcn.100bc8e0
test eax, eax
jne 0x1002d52d
push str.shimgvw.dll
push edi
call fcn.1007edba
pop ecx
test eax, eax
pop ecx
je 0x1002d52d
push dword [ebp + 8]
push edi
push str._rundll32.exe___s_ImageView_Fullscreen__s
jmp 0x1002d55b
call fcn.100bc8e0
test eax, eax
je 0x1002d552
push str.PhotoViewer.dll
push edi
call fcn.1007edba
pop ecx
test eax, eax
pop ecx
je 0x1002d552
push dword [ebp + 8]
push edi
push str._rundll32.exe____s__ImageView_Fullscreen__s
jmp 0x1002d55b
push dword [ebp + 8]
push edi
push str.__s____s_
lea eax, [ebp - 0x10]
push eax
call fcn.10097c40
add esp, 0x10
lea eax, [ebp - 0x6c]
push 0x44
pop edi
push edi
push ebx
push eax
call fcn.1007e1e0
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x6c], edi
push eax
call fcn.10074d7b
add esp, 0x14
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.10094520
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 2
cmp dword [eax - 8], ebx
je 0x1002d617
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ebx
push ebx
push 0x1017a354
call edi
cmp eax, ebx
je 0x1002d609
lea esi, [eax + 1]
lea eax, [esi + esi]
push eax
call fcn.1007e238
mov dword [ebp + 8], eax
lea eax, [esi + esi]
push eax
push ebx
push dword [ebp + 8]
call fcn.1007e1e0
add esp, 0x10
push esi
mov esi, dword [ebp + 8]
push esi
push 0x1017a354
call edi
push 0x1017a350
lea ecx, [ebp - 0x14]
call fcn.10095910
push esi
lea ecx, [ebp - 0x14]
call fcn.10095910
push esi
lea ecx, [ebp - 0x18]
call fcn.10094f40
push esi
call fcn.1007de95
pop ecx
mov esi, 0x1019f4bc
push dword [ebp - 0x14]
push 0x1017a354
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp + 0x14]
lea eax, [ebp - 0x6c]
lea ecx, [ebp - 0x10]
push eax
push ebx
push ebx
push 0x4000414
push ebx
push ebx
push ebx
push 0x400
call fcn.10095990
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x1c], eax
call fcn.10095a60
cmp dword [ebp - 0x1c], ebx
je 0x1002d794
cmp dword [ebp + 0x10], ebx
mov edi, 0x101ad1f8
je 0x1002d74c
push ebx
mov ecx, edi
call fcn.1004bccb
test eax, eax
je 0x1002d6ec
push dword [ebp + 0xc]
mov ecx, edi
call fcn.10050190
test eax, eax
jne 0x1002d6ec
push esi
lea ecx, [ebp + 8]
call fcn.10094520
mov esi, 0x104
lea ecx, [ebp + 8]
push esi
mov byte [ebp - 4], 3
call fcn.10095990
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0xffffffffffffffff
lea ecx, [ebp + 8]
call fcn.10095a60
mov eax, dword [ebp + 0x14]
push dword [ebp + 8]
lea esi, [eax + 8]
push 1
push dword [esi]
call fcn.10052dd3
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.1007c2fd
push 1
push esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.1007d10b
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.1007c326
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.10094cc0
mov eax, dword [ebp + 0x14]
mov ecx, edi
push dword [eax + 8]
lea esi, [eax + 8]
push dword [ebp + 0xc]
call fcn.1004cf1a
test eax, eax
je 0x1002d74c
lea ecx, [ebp - 0x28]
call fcn.1007c2fd
push 1
push esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.1007d10b
cmp dword [0x101b04b8], ebx
je 0x1002d740
push dword [esi]
push dword [ebp + 0xc]
push 0x12d0
push str._CSafeInject::OpenFileWithProcessEx__Line:_d_FileDevice_Allow_it...Proc__s__PID__d_
push str.SafeInject
push 4
call fcn.1007bb15
add esp, 0x18
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.1007c326
push 2
mov ecx, edi
pop esi
push ebx
push dword [ebp + 0xc]
call fcn.1004ee2f
test eax, eax
je 0x1002d760
xor esi, esi
mov ecx, dword [ebp - 0x20]
push esi
mov esi, dword [ebp + 0x14]
push esi
call fcn.1002d7f9
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 0x14]
cmp dword [eax - 8], ebx
je 0x1002d7be
mov eax, dword [ebp - 0x18]
cmp dword [eax - 8], ebx
je 0x1002d7be
push eax
push 0x1017a354
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
jmp 0x1002d7be
cmp dword [0x101b04b8], ebx
je 0x1002d7be
push dword [ebp - 0x10]
mov ecx, 0x101ad158
call fcn.100aa1c0
push eax
push 0x1017a1fc
push str.SafeInject
push 4
call fcn.1007bb15
add esp, 0x14
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.10094cc0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.10094cc0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10094cc0
mov eax, dword [ebp - 0x1c]
pop esi
jmp 0x1002d7e9
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10