Function at 0x40a890
Capabilities:
Create process on windows
Create process suspended
Get common file path
Get explorer pid
Impersonate user

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eea20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4e0
mov ecx, 0x52429a
call fcn.004c6bbd
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.USER32.dll_GetShellWindow]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 0x24]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x14]
push ecx
push 2
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40a928
xor eax, eax
jmp 0x40ab8a
lea eax, [ebp - 0x10]
push eax
push 1
push 2
push 0
push 0xf01ff
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x40a982
push 0x4059b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_duplicate_token._Error_code:
push 0x5231e8
call fcn.00403820
add esp, 8
mov ecx, eax
call fcn.00408100
mov ecx, eax
call fcn.00408290
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40ab8a
push 0
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
push ecx
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
jne 0x40a9dc
push 0x4059b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_create_environment_block._Error_code:
push 0x5231e8
call fcn.00403820
add esp, 8
mov ecx, eax
call fcn.00408100
mov ecx, eax
call fcn.00408290
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40ab8a
mov dword [ebp - 0x2c], 0x208
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x4ec]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
jne 0x40aa03
xor eax, eax
jmp 0x40ab8a
push 0x44
push 0
lea ecx, [ebp - 0xdc]
push ecx
call fcn.004cb140
add esp, 0xc
mov dword [ebp - 0xdc], 0x44
mov dword [ebp - 0xb0], 1
mov edx, 1
mov word [ebp - 0xac], dx
mov eax, dword [ebp + 0xc]
push eax
push 0x4f6bdc
mov ecx, dword [ebp + 8]
push ecx
push 0x4f6be4
lea edx, [ebp - 0x98]
push edx
call fcn.00403d50
add esp, 0xc
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
push ecx
lea edx, [ebp - 0x80]
push edx
call fcn.00403d10
add esp, 0xc
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x68]
push edx
call fcn.00403cd0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x80]
call fcn.004030c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x98]
call fcn.004030c0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0xdc]
push ecx
lea edx, [ebp - 0x4ec]
push edx
mov eax, dword [ebp - 0x18]
push eax
push 0x400
lea ecx, [ebp - 0x68]
call fcn.00415bd0
push eax
push 0
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40ab18
push 0x4059b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4f6be8
push 0x5231e8
call fcn.00403820
add esp, 8
mov ecx, eax
call fcn.00408100
mov ecx, eax
call fcn.00408290
jmp 0x40ab55
push 0x4059b0
mov edx, dword [ebp - 0x48]
push edx
push str.Process_created_successfully._PID:
push 0x523128
call fcn.00403820
add esp, 8
mov ecx, eax
call fcn.00408100
mov ecx, eax
call fcn.00408290
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push edx
call sub.USERENV.dll_DestroyEnvironmentBlock
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x40], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.004030c0
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret