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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48733d
mov eax, dword fs:[0]
push eax
sub esp, 0x8c8
mov eax, dword [0x4aeda0]
xor eax, esp
mov dword [esp + 0x8c0], eax
push ebx
push esi
push edi
mov eax, dword [0x4aeda0]
xor eax, esp
push eax
lea eax, [esp + 0x8d8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x18], eax
xor edi, edi
push 0x49bb1c
lea eax, [esp + 0x98]
mov dword [esp + 0x18], edi
call fcn.004017d2
push 0xffffffffffffffff
push edi
mov eax, ebx
lea esi, [esp + 0x9c]
mov dword [esp + 0x8e8], edi
call fcn.00401aee
push 0x49b660
mov eax, esi
push eax
call fcn.00401817
mov eax, dword [esp + 0x1c]
push 0xffffffffffffffff
push edi
call fcn.00401aee
push 0x49c028
mov eax, esi
push eax
call fcn.00401817
mov eax, dword [esp + 0x18]
push 0xffffffffffffffff
push edi
call fcn.00401aee
xor eax, eax
push 0x7fe
mov word [esp + 0xd0], ax
lea eax, [esp + 0xd2]
push edi
push eax
call fcn.004504c0
mov eax, dword [esp + 0xb4]
add esp, 0xc
inc eax
cmp eax, 0x400
jae 0x419571
cmp dword [esp + 0xac], 8
mov eax, dword [esp + 0x98]
jae 0x419414
lea eax, [esp + 0x98]
mov esi, 0x3ff
push esi
lea ecx, [esp + 0xd0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, esi
jae 0x419565
cmp eax, edi
je 0x419565
push 0x44
pop esi
push esi
lea eax, [esp + 0x50]
push edi
push eax
call fcn.004504c0
add esp, 0xc
push 0x10
lea eax, [esp + 0x24]
push edi
push eax
mov dword [esp + 0x58], esi
call fcn.004504c0
add esp, 0xc
cmp dword [ebx + 0x18], 8
jb 0x41946a
mov ebx, dword [ebx + 4]
jmp 0x41946d
add ebx, 4
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
push ebx
push edi
push 0x8000000
push edi
push edi
push edi
lea eax, [esp + 0xec]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, edi
jne 0x41952f
lea eax, [esp + 0xcc]
push eax
lea eax, [esp + 0x34]
call fcn.004017d2
push edi
lea edi, [esp + 0x34]
lea esi, [esp + 0xb4]
mov byte [esp + 0x8e4], 1
call fcn.004265b0
pop ecx
push 0
push 1
mov esi, edi
mov byte [esp + 0x8e8], 3
call fcn.004019bb
cmp dword [esp + 0xc8], 0x10
mov eax, dword [esp + 0xb4]
jae 0x4194ee
lea eax, [esp + 0xb4]
push eax
push str.PluginExecuteFolderCollector_Unable_to_execute:__s
push 0x106
push ecx
call fcn.0041ef10
pop ecx
push eax
mov ebx, 0x800008
mov ecx, str.d:irobot_1.62_src_supportwrapperWrpPluginImpl.h
call fcn.0041f0d0
add esp, 0x10
push 0
push 1
lea ecx, [esp + 0xb8]
mov dword [esp + 0x1c], 0x80030000
call fcn.0040230d
xor edi, edi
jmp 0x41955f
push 0x927c0
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x24]
call esi
mov ebx, dword [esp + 0x14]
jmp 0x41959c
push str.ExpandEnvironmentStringsW_for_execCmd_failed
push 0xea
jmp 0x41957b
push str.sizeCmd_length_exceed_1023
push 0xf0
call fcn.0041ef10
push eax
mov ebx, 0x800002
mov ecx, str.d:irobot_1.62_src_supportwrapperWrpPluginImpl.h
call fcn.0041f0d0
mov ebx, 0x80030000
mov dword [esp + 0x20], ebx
add esp, 0xc
push edi
push 1
lea esi, [esp + 0x9c]
call fcn.004019bb
mov eax, ebx
mov ecx, dword [esp + 0x8d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x8c0]
xor ecx, esp
call fcn.004504a7
mov esp, ebp
pop ebp
ret 0x10