Function at 0x4deee0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x100], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4df368
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xb], 0
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xa0]
xor ecx, ecx
mov edx, 0x44
call fcn.00407354
mov dword [ebp - 0xa0], 0x44
mov eax, dword [ebp + 8]
mov dword [ebp - 0x94], eax
xor eax, eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], 1
mov dword [ebp - 0x88], 0x64
mov dword [ebp - 0x84], 0x64
xor eax, eax
mov dword [ebp - 0x74], eax
mov word [ebp - 0x70], 1
call sub.user32.dll_GetProcessWindowStation
mov edi, eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 2
push edi
call sub.user32.dll_GetUserObjectInformationW
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_GetThreadDesktop
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_GetUserObjectInformationW
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x1c]
add eax, 0x20
call fcn.004066cc
mov ebx, eax
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x1c]
add edx, 0x20
mov eax, ebx
xor ecx, ecx
call fcn.00407354
test ebx, ebx
je 0x4df025
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 2
push edi
call sub.user32.dll_GetUserObjectInformationW
test eax, eax
je 0x4df025
cmp dword [ebp - 0x1c], 0
jbe 0x4df004
mov eax, dword [ebp - 0x1c]
shr eax, 1
dec eax
add eax, eax
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov word [eax], 0x5c
add dword [ebp - 0x18], 2
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_GetUserObjectInformationW
test eax, eax
je 0x4df025
mov dword [ebp - 0x98], ebx
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xa0]
push eax
mov eax, dword [0x4f1398]
push eax
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_CreateProcessW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
mov eax, ebx
call fcn.004066e8
cmp byte [ebp - 9], 0
jne 0x4df15d
call sub.kernel32.dll_GetLastError_2
mov edi, eax
mov eax, dword [0x4f1264]
mov dword [eax], edi
mov eax, dword [0x4f0f78]
cmp byte [eax], 0
je 0x4df140
mov eax, dword [0x4f1264]
cmp dword [eax], 0xc1
jne 0x4df140
lea eax, [ebp - 0xec]
xor ecx, ecx
mov edx, 0x3c
call fcn.00407354
mov dword [ebp - 0xec], 0x3c
mov dword [ebp - 0xe8], 0x8140
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0xd8], eax
mov eax, dword [0x4f1398]
mov dword [ebp - 0xd4], eax
movzx eax, word [ebp - 0x70]
mov dword [ebp - 0xd0], eax
lea eax, [ebp - 0xec]
push eax
call sub.shell32.dll_ShellExecuteExW
test eax, eax
jne 0x4df133
mov eax, dword [ebp - 0xcc]
test eax, eax
jne 0x4df117
mov eax, dword [0x4f1264]
mov dword [eax], 8
jmp 0x4df140
cmp eax, 0x20
jne 0x4df129
mov eax, dword [0x4f1264]
mov dword [eax], 2
jmp 0x4df140
mov edx, dword [0x4f1264]
mov dword [edx], eax
jmp 0x4df140
mov eax, dword [ebp - 0xb4]
mov dword [0x50a7e0], eax
jmp 0x4df174
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
call fcn.004d4100
mov eax, dword [ebp - 8]
call fcn.004dfc9c
mov ebx, 1
jmp 0x4df34f
mov eax, dword [ebp - 0xb0]
mov dword [0x50a7e0], eax
mov eax, dword [ebp - 0xac]
push eax
call sub.kernel32.dll_CloseHandle_1
test byte [0x50a7e0], 1
setne byte [ebp - 0xa]
test byte [0x50a7e0], 2
setne bl
mov eax, dword [0x4f0f78]
cmp byte [eax], 0
je 0x4df1d2
mov eax, dword [0x4f0fb4]
cmp dword [eax], 0
jne 0x4df1d2
mov eax, dword [0x4f109c]
cmp byte [eax], 0
jne 0x4df1d2
mov eax, dword [0x4f0e68]
cmp byte [eax], 0
jne 0x4df1d2
test esi, esi
jne 0x4df1d2
test bl, bl
jne 0x4df1c9
mov eax, dword [0x50a7e0]
call fcn.004e11b8
cmp ax, 2
jne 0x4df1d2
mov esi, 4
mov byte [ebp - 0xb], 1
xor edi, edi
mov dword [0x50a7e4], 1
test esi, esi
jne 0x4df290
mov eax, dword [0x50a7e0]
call fcn.004e75c8
mov edx, dword [0x4f122c]
mov dword [edx], eax
mov edi, dword [0x4f122c]
mov edi, dword [edi]
mov dword [ebp - 0xf4], edi
mov byte [ebp - 0xf0], 0
lea eax, [ebp - 0xf4]
push eax
push 0
mov ecx, 0x4df37c
lea eax, [ebp - 0x44]
mov edx, 1
call fcn.004d4168
lea edx, [ebp - 0x44]
mov eax, 0x4df388
call fcn.004d6098
cmp edi, 0x20
jl 0x4df276
cmp edi, 0x7e
jg 0x4df276
mov dword [ebp - 0xf4], edi
mov byte [ebp - 0xf0], 0
lea eax, [ebp - 0xf4]
push eax
push 0
mov ecx, 0x4df39c
lea eax, [ebp - 0x5c]
mov edx, 1
call fcn.004d4168
lea edx, [ebp - 0x5c]
mov eax, 0x4df3a8
call fcn.004d6098
jmp 0x4df285
mov edx, 0x4df3c8
mov eax, 0x4df3a8
call fcn.004d6098
cmp byte [ebp - 0xa], 0
je 0x4df290
call fcn.004dee44
cmp esi, 4
jne 0x4df30b
cmp byte [ebp - 0xb], 0
jne 0x4df2f6
push 0
mov eax, dword [0x50a7e0]
mov dword [ebp - 0xfc], eax
mov byte [ebp - 0xf8], 0
lea edx, [ebp - 0xfc]
mov eax, 0x4df3cc
xor ecx, ecx
call fcn.004e712c
mov dword [ebp - 0xf4], eax
mov byte [ebp - 0xf0], 0xa
lea eax, [ebp - 0xf4]
push eax
lea edx, [ebp - 0x100]
mov eax, dword [0x4f1058]
call fcn.0040d7c0
mov eax, dword [ebp - 0x100]
mov edx, 1
pop ecx
call fcn.004e6fc4
mov eax, dword [ebp - 0xb0]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [0x50a7e0], eax
jmp 0x4df34d
cmp esi, 2
jne 0x4df34d
cmp dword [ebp + 0x14], 0
jne 0x4df339
mov eax, dword [0x50a7e0]
call fcn.004e75c8
mov edx, dword [0x4f122c]
mov dword [edx], eax
mov edi, dword [0x4f122c]
mov edi, dword [edi]
xor eax, eax
mov dword [0x50a7e0], eax
jmp 0x4df34d
mov eax, dword [0x4f0e94]
mov edx, dword [0x50a7e0]
mov dword [eax], edx
xor eax, eax
mov dword [0x50a7e0], eax
mov ebx, edi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4df36f
lea eax, [ebp - 0x100]
call fcn.00409e68
ret