Function at 0x4088c0
Capabilities:
Create process on windows
Query environment variable
Resume thread
Set environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4eb713
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebp
push esi
push edi
push str.CSDSystemHelper::OpenFileWithPorcess2_____r_n
push str.SDSystem
mov ebp, ecx
push 1
push 0x52e6a4
mov dword [esp + 0x3c], ebp
call fcn.0042b6d0
mov esi, dword [esp + 0xa4]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
mov dword [esp + 0x40], eax
add esp, 0x10
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], eax
push esi
mov dword [esp + 0x44], 0x44
mov dword [esp + 0x40], eax
xor edi, edi
call fcn.0044fec0
lea ecx, [esp + 0x10]
mov dword [esp + 0x8c], edi
call fcn.00451990
mov ecx, dword [esp + 0x10]
push str.shimgvw.dll
push ecx
call fcn.0043812f
add esp, 8
test eax, eax
jne 0x40896e
mov edx, dword [esp + 0x10]
push str.photoviewer.dll
push edx
call fcn.0043812f
add esp, 8
test eax, eax
je 0x40898b
mov edi, 1
call fcn.004711b0
push eax
lea eax, [esp + 0x14]
push str._s_rundll32.exe
push eax
call fcn.004535e0
add esp, 0xc
push ebx
push 0x52cb30
lea ecx, [esp + 0x14]
call fcn.0044fec0
test edi, edi
mov byte [esp + 0x90], 1
mov dword [esp + 0x24], esi
je 0x4089dc
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.004711b0
mov edx, dword [esp + 0x18]
push eax
push edx
lea eax, [esp + 0x1c]
push str._s__s_shimgvw.dll_imageview_fullscreen__s
push eax
call fcn.004535e0
mov ecx, dword [esp + 0x28]
add esp, 0x14
mov dword [esp + 0x24], ecx
jmp 0x408ba7
push esi
mov ecx, ebp
call fcn.00409040
test eax, eax
je 0x408a24
mov edi, dword [esp + 0x9c]
test edi, edi
je 0x408a19
push edi
call fcn.00437501
add esp, 4
test eax, eax
je 0x408a19
push edi
push esi
push str.__s____s___x
lea edx, [esp + 0x1c]
push edx
call fcn.004535e0
add esp, 0x10
jmp 0x408ba7
push esi
push str.__s___x
jmp 0x408b9a
push esi
mov ecx, ebp
call fcn.00409220
test eax, eax
je 0x408b30
push 0x52cb30
lea ecx, [esp + 0x20]
call fcn.0044fec0
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x20]
mov bl, 2
push ecx
push edx
mov ecx, ebp
mov byte [esp + 0x98], bl
mov dword [esp + 0x34], 0
call fcn.00409280
lea ecx, [esp + 0x20]
call fcn.00450660
cmp dword [esp + 0x2c], 8
jb 0x408ad2
mov eax, dword [esp + 0xa0]
lea ecx, [esp + 0x20]
push eax
call fcn.0044fec0
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x90], 3
mov eax, dword [ecx - 8]
test eax, eax
je 0x408ab4
lea ecx, [esp + 0x20]
call fcn.00451990
push str.nomerge
lea ecx, [esp + 0x24]
call fcn.00451840
cmp eax, 0xffffffff
jne 0x408ac2
push str._nomerge
lea ecx, [esp + 0x20]
call fcn.004508e0
lea ecx, [esp + 0x20]
mov byte [esp + 0x90], bl
call fcn.00450660
mov edi, dword [esp + 0x9c]
test edi, edi
je 0x408b05
push edi
call fcn.00437501
add esp, 4
test eax, eax
je 0x408b05
mov edx, dword [esp + 0x1c]
push edi
push edx
push esi
lea eax, [esp + 0x1c]
push str.__s___s__s
push eax
call fcn.004535e0
add esp, 0x14
jmp 0x408b1d
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push ecx
push esi
push str.__s___s
push edx
call fcn.004535e0
add esp, 0x10
lea ecx, [esp + 0x1c]
mov byte [esp + 0x90], 1
call fcn.00450660
jmp 0x408ba7
push esi
mov ecx, ebp
call fcn.00409100
mov edi, dword [esp + 0x9c]
test eax, eax
je 0x408b77
test edi, edi
je 0x408b6a
push edi
call fcn.00437501
add esp, 4
test eax, eax
je 0x408b6a
push edi
push esi
lea eax, [esp + 0x18]
push str.__s___n___s_
push eax
call fcn.004535e0
add esp, 0x10
jmp 0x408ba7
push esi
lea ecx, [esp + 0x14]
push str.__s___n
push ecx
jmp 0x408b9f
test edi, edi
je 0x408b94
push edi
call fcn.00437501
add esp, 4
test eax, eax
je 0x408b94
push edi
push esi
push str.__s____s_
jmp 0x408a07
push esi
push str.__s_
lea eax, [esp + 0x18]
push eax
call fcn.004535e0
add esp, 0xc
mov esi, dword [esp + 0xa0]
test esi, esi
je 0x408bc9
push esi
call fcn.00437501
add esp, 4
test eax, eax
jbe 0x408bc9
push esi
lea ecx, [esp + 0x14]
call fcn.004512b0
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, ebp
call fcn.00408e20
push 0x52cb30
lea ecx, [esp + 0x2c]
mov byte [esp + 0x94], 4
call fcn.0044fec0
mov eax, dword [esp + 0x18]
mov byte [esp + 0x90], 5
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x408c8a
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0
push 0
push 0x518668
call ebx
test eax, eax
je 0x408c7a
lea ebp, [eax + 1]
lea edi, [ebp + ebp]
push edi
call fcn.004d2462
mov ecx, edi
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
push esi
rep stosb byte es:[edi], al
push 0x518668
call ebx
push 0x518664
lea ecx, [esp + 0x1c]
call fcn.004512b0
push esi
lea ecx, [esp + 0x1c]
call fcn.004512b0
push esi
lea ecx, [esp + 0x2c]
call fcn.004508e0
push esi
call fcn.004d248b
mov ebp, dword [esp + 0x34]
add esp, 4
mov eax, dword [esp + 0x18]
push eax
push 0x518668
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, dword [esp + 0x10]
push ecx
push str.CSDSystemHelper::OpenFileWithPorcess2_CreateProcess___s__._r_n
push str.SDSystem
push 1
push 0x52e6a4
call fcn.0042b6d0
add esp, 0x14
lea edx, [esp + 0x34]
lea eax, [esp + 0x44]
lea ecx, [esp + 0x10]
push edx
push eax
push 0
push 0
push 0x4000414
push 0
push 0
push 0
push 0x104
call fcn.00451330
mov ecx, dword [esp + 0x44]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
pop ebx
test esi, esi
je 0x408d48
mov edx, dword [esp + 0x38]
mov ecx, ebp
push edx
call fcn.00407f30
push eax
mov eax, dword [esp + 0x3c]
push eax
push str.CSDSystemHelper::OpenFileWithPorcess2_AddTargetProcessID__d__Index__d._r_n
push str.SDSystem
push 1
push 0x52e6a4
call fcn.0042b6d0
mov ecx, dword [esp + 0x4c]
add esp, 0x18
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push eax
push str.CSDSystemHelper::OpenFileWithPorcess2_ResumeThread_Result__d__r_n
push str.SDSystem
push 1
push 0x52e6a4
call fcn.0042b6d0
mov edx, dword [esp + 0x44]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x14
push edx
call edi
mov eax, dword [esp + 0x34]
push eax
call edi
jmp 0x408d68
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CSDSystemHelper::OpenFileWithPorcess2_CreateProcess_FAILED._LastError:_d_._r_n
push str.SDSystem
push 4
push 0x52e6a4
call fcn.0042b6d0
add esp, 0x14
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call fcn.00451400
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
test eax, eax
je 0x408d95
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x408d95
push eax
push 0x518668
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov edx, dword [esp + 0x38]
push edx
push esi
push str.CSDSystemHelper::OpenFileWithPorcess2__Ret:_d__PID:_d_._r_n
push str.SDSystem
push 1
push 0x52e6a4
call fcn.0042b6d0
add esp, 0x18
lea ecx, [esp + 0x24]
mov byte [esp + 0x8c], 4
call fcn.00450660
lea ecx, [esp + 0x14]
mov byte [esp + 0x8c], 1
call fcn.00450660
lea ecx, [esp + 0xc]
mov byte [esp + 0x8c], 0
call fcn.00450660
lea ecx, [esp + 0x10]
mov dword [esp + 0x8c], 0xffffffff
call fcn.00450660
mov ecx, dword [esp + 0x84]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x84
ret 0xc