Function at 0x49d420
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
xor ebx, ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp + 8]
call fcn.004a7108
xor eax, eax
push ebp
push 0x49d62b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 8]
call fcn.004a7f30
lea eax, [ebp - 0x18]
call fcn.004a758c
mov eax, dword [ebp - 4]
xor ecx, ecx
mov edx, 0x10
call fcn.004a4a64
lea eax, [ebp - 0x60]
push eax
call sub.KERNEL32.DLL_GetStartupInfoW
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
xor edx, edx
call fcn.004a7d44
jne 0x49d49d
lea eax, [ebp - 0x64]
call sym.a1runscanner.exe__Processutils_GetCurrentDir_qqrv
mov edx, dword [ebp - 0x64]
lea eax, [ebp + 8]
call fcn.004a7f44
cmp dword [ebp - 0xc], 0
jne 0x49d4b4
lea eax, [ebp - 0xc]
push eax
push 0xb
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.ADVAPI32.DLL_OpenProcessToken
cmp dword [ebp - 0xc], 0
je 0x49d535
call fcn.0049cd0c
test al, al
je 0x49d535
lea edx, [ebp - 0x60]
lea eax, [ebp - 0x14]
call fcn.0049d244
test al, al
je 0x49d535
mov dword [ebp - 0x60], 0x48
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x60]
push eax
mov eax, dword [ebp + 8]
call fcn.004a7c30
push eax
push 0
push 0x80003
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004a7c30
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_CreateProcessAsUserW
test eax, eax
je 0x49d516
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x49d51e
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.KERNEL32.DLL_DeleteProcThreadAttributeList
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_CloseHandle
jmp 0x49d5c4
mov dword [ebp - 0x60], 0x44
cmp dword [ebp - 0xc], 0
je 0x49d586
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x60]
push eax
mov eax, dword [ebp + 8]
call fcn.004a7c30
push eax
push 0
push 3
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004a7c30
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_CreateProcessAsUserW
test eax, eax
je 0x49d57c
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x49d5c4
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 0x10], eax
jmp 0x49d5c4
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x60]
push eax
mov eax, dword [ebp + 8]
call fcn.004a7c30
push eax
push 0
push 3
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004a7c30
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessW
test eax, eax
je 0x49d5bc
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x49d5c4
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
je 0x49d5d3
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_CloseHandle
cmp dword [ebp - 0x10], 0
jne 0x49d5f8
push 0
call sub.KERNEL32.DLL_DebugSetProcessKillOnExit
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call fcn.0078e47c
cmp eax, dword [0x7a3c8c]
jb 0x49d5f8
call fcn.0049ce40
mov edx, 0x49d648
mov eax, dword [ebp - 0x10]
call sym.a1runscanner.exe__Processutils_LogError_qqrui20System_UnicodeString
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49d632
lea eax, [ebp - 0x64]
call fcn.004a7004
lea eax, [ebp - 0x18]
call fcn.004a7004
lea eax, [ebp + 8]
call fcn.004a704c
ret