Function at 0x1000c39c
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d54ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push esi
push edi
lea edi, [ebp - 0x90]
mov ecx, 0x21
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
push 0x3c
push 0
lea eax, [ebp - 0x54]
push eax
call fcn.10021ab0
add esp, 0xc
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0x100f4ed0
mov dword [ebp - 0x38], 5
mov dword [ebp - 0x50], 0x40
lea ecx, [ebp - 0x14]
call fcn.100acad7
mov dword [ebp - 4], 0
push 0x10107d0c
lea ecx, [ebp - 0x10]
call fcn.1006a161
mov byte [ebp - 4], 1
mov esi, esp
push 0x400
push 0x400
lea ecx, [ebp - 0x14]
call fcn.1006a88b
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp esi, esp
call fcn.10021b10
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.1006a9c7
push 0
push 0x100f4edc
lea ecx, [ebp - 0x14]
call fcn.1004fb95
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x1000c4fa
lea ecx, [ebp - 0x14]
call fcn.100acbca
sub eax, dword [ebp - 0x18]
sub eax, 2
push eax
lea edx, [ebp - 0x74]
push edx
lea ecx, [ebp - 0x14]
call fcn.1004f8e7
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x88], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x10]
call fcn.1006a2d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x74]
call fcn.1006a0d0
mov edx, dword [ebp - 0x18]
push edx
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x14]
call fcn.1004f9a6
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x90], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x90]
push edx
lea ecx, [ebp - 0x14]
call fcn.1006a2d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x78]
call fcn.1006a0d0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
push 0
lea ecx, [ebp - 0x14]
call fcn.1006a88b
mov dword [ebp - 0x44], eax
push 0
lea ecx, [ebp - 0x10]
call fcn.1006a88b
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp + 8]
push eax
push str.RunAndWait___Directory:___s___File_:___s___Parameters_:___s_
call fcn.10003f70
add esp, 0x10
mov esi, esp
lea ecx, [ebp - 0x54]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp esi, esp
call fcn.10021b10
test eax, eax
je 0x1000c60c
cmp dword [ebp - 0x1c], 0
je 0x1000c5d1
mov esi, esp
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x70]
push edx
call dword [sym.imp.USER32.dll_PeekMessageW]
cmp esi, esp
call fcn.10021b10
test eax, eax
je 0x1000c59b
mov esi, esp
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
cmp esi, esp
call fcn.10021b10
mov esi, esp
lea ecx, [ebp - 0x70]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp esi, esp
call fcn.10021b10
jmp 0x1000c554
mov esi, esp
push 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp esi, esp
call fcn.10021b10
cmp eax, 0x102
je 0x1000c554
mov esi, esp
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.10021b10
mov dword [ebp - 0x1c], 0
mov esi, esp
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, esp
call fcn.10021b10
mov dword [ebp - 0x7c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.1006a0d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.1006a0d0
mov eax, dword [ebp - 0x7c]
jmp 0x1000c63e
push str.RunAndWait___ShellExecuteEx_function_fail
call fcn.10003f70
add esp, 4
mov dword [ebp - 0x80], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.1006a0d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.1006a0d0
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x90
cmp ebp, esp
call fcn.10021b10
mov esp, ebp
pop ebp
ret