Function at 0x406ebd
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x62fec3
call fcn.0060d220
mov eax, 0x1488
call fcn.005bc5e0
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp edi, ebx
je 0x407081
cmp word [edi], bx
je 0x407081
push 0x44
pop esi
push esi
lea eax, [ebp - 0x94]
push ebx
push eax
call fcn.005b79e0
add esp, 0xc
push 0x10
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.005b79e0
add esp, 0xc
push 5
pop eax
mov dword [ebp - 0x94], esi
mov word [ebp - 0x64], ax
xor esi, esi
lea eax, [ebp - 0x48]
push edi
inc esi
push eax
mov dword [ebp - 0x68], esi
call fcn.0040674c
mov dword [ebp - 4], 2
push dword [ebp + 8]
lea eax, [ebp - 0x494]
push edi
push str.__s___s
push 0x200
push eax
call fcn.004211b0
add esp, 0x1c
cmp dword [ebp - 0x34], ebx
jne 0x406f56
xor eax, eax
jmp 0x406f62
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x406f62
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x94]
push ecx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x494]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, ebx
je 0x406fb8
mov eax, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x406f99
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
jmp 0x406f9e
push dword [ebp - 0x2c]
call edi
push dword [ebp - 0x28]
call edi
or dword [ebp - 4], 0xffffffff
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.0040337f
mov eax, esi
jmp 0x4070de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push ebx
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
push 0x400
push esi
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push edi
push dword [ebp - 0x1c]
push esi
push str.ERROR_EXECUTE_PROCESS
call fcn.00402e56
mov esi, eax
call fcn.00405362
push eax
push str._s_code_d__msg_s__runAppPath_s_
lea eax, [ebp - 0x1494]
push 0x800
push eax
call fcn.004211b0
add esp, 0x1c
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push str.NOTICE
push ecx
call fcn.00402e56
pop ecx
mov esi, eax
call fcn.00405362
push eax
lea ecx, [ebp - 0x14]
call fcn.004030fb
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1494]
push eax
lea ecx, [ebp - 0x18]
call fcn.004030fb
mov byte [ebp - 4], 4
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
push 5
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.0053ad70
add esp, 0x18
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.00401017
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00401017
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.0040337f
jmp 0x4070dc
push str.NOTICE
push ecx
call fcn.00402e56
pop ecx
mov esi, eax
call fcn.00405362
push eax
lea ecx, [ebp - 0x14]
call fcn.004030fb
mov dword [ebp - 4], ebx
push str.RUN_PATH_EMPTY
lea ecx, [ebp - 0x18]
call fcn.004030fb
mov byte [ebp - 4], 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
push 5
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.0053ad70
add esp, 0x18
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.00401017
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401017
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret