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

Disassembly:
mov eax, 0x10135b50
call fcn.1007db34
sub esp, 0x5c
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov dword [ebp - 0x1c], ecx
je 0x1002d470
cmp dword [ebp + 0xc], ebx
je 0x1002d470
cmp dword [ebp + 0x14], ebx
je 0x1002d470
push esi
push edi
push 0x44
lea eax, [ebp - 0x68]
pop esi
push esi
push ebx
push eax
call fcn.1007e1e0
push dword [ebp + 8]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x68], esi
push eax
call fcn.10074d7b
add esp, 0x14
push 0x1019f4bc
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.10094520
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp dword [eax - 8], ebx
je 0x1002d2b9
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ebx
push ebx
push 0x1017a354
call edi
cmp eax, ebx
je 0x1002d2ab
lea esi, [eax + 1]
lea eax, [esi + esi]
push eax
call fcn.1007e238
mov dword [ebp - 0x18], eax
lea eax, [esi + esi]
push eax
push ebx
push dword [ebp - 0x18]
call fcn.1007e1e0
add esp, 0x10
push esi
mov esi, dword [ebp - 0x18]
push esi
push 0x1017a354
call edi
push 0x1017a350
lea ecx, [ebp - 0x10]
call fcn.10095910
push esi
lea ecx, [ebp - 0x10]
call fcn.10095910
push esi
lea ecx, [ebp - 0x14]
call fcn.10094f40
push esi
call fcn.1007de95
pop ecx
push dword [ebp - 0x10]
push 0x1017a354
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp + 0x14]
lea eax, [ebp - 0x68]
push eax
push ebx
push ebx
push 0x4000414
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x1002d428
cmp dword [ebp + 0x10], ebx
mov edi, 0x101ad1f8
je 0x1002d3e0
push ebx
mov ecx, edi
call fcn.1004bccb
test eax, eax
je 0x1002d380
push dword [ebp + 8]
mov ecx, edi
call fcn.10050190
test eax, eax
jne 0x1002d380
push 0x1019f4bc
lea ecx, [ebp + 0xc]
call fcn.10094520
mov esi, 0x104
lea ecx, [ebp + 0xc]
push esi
mov byte [ebp - 4], 2
call fcn.10095990
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0xffffffffffffffff
lea ecx, [ebp + 0xc]
call fcn.10095a60
mov eax, dword [ebp + 0x14]
push dword [ebp + 0xc]
lea esi, [eax + 8]
push 1
push dword [esi]
call fcn.10052dd3
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.1007c2fd
push 1
push esi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.1007d10b
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.1007c326
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.10094cc0
mov eax, dword [ebp + 0x14]
mov ecx, edi
push dword [eax + 8]
lea esi, [eax + 8]
push dword [ebp + 8]
call fcn.1004cf1a
test eax, eax
je 0x1002d3e0
lea ecx, [ebp - 0x24]
call fcn.1007c2fd
push 1
push esi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.1007d10b
cmp dword [0x101b04b8], ebx
je 0x1002d3d4
push dword [esi]
push dword [ebp + 8]
push 0x124a
push str._CSafeInject::CreateProcessWithCommandline__Line:_d_FileDevice_Allow_it...Proc__s__PID__d_
push str.SafeInject
push 4
call fcn.1007bb15
add esp, 0x18
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.1007c326
push 2
mov ecx, edi
pop esi
push ebx
push dword [ebp + 8]
call fcn.1004ee2f
test eax, eax
je 0x1002d3f4
xor esi, esi
mov ecx, dword [ebp - 0x1c]
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 - 0x10]
cmp dword [eax - 8], ebx
je 0x1002d452
mov eax, dword [ebp - 0x14]
cmp dword [eax - 8], ebx
je 0x1002d452
push eax
push 0x1017a354
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
jmp 0x1002d452
cmp dword [0x101b04b8], ebx
je 0x1002d452
push dword [ebp + 0xc]
mov ecx, 0x101ad158
call fcn.100aa1c0
push eax
push 0x1017a1fc
push str.SafeInject
push 4
call fcn.1007bb15
add esp, 0x14
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 - 0x18]
pop edi
pop esi
jmp 0x1002d472
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10