Function at 0x410b50
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4213d1
mov eax, dword fs:[0]
push eax
sub esp, 0x1f0
mov eax, dword [0x42c070]
xor eax, esp
mov dword [esp + 0x1e8], eax
push ebx
push esi
push edi
mov eax, dword [0x42c070]
xor eax, esp
push eax
lea eax, [esp + 0x200]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
test eax, eax
je 0x411132
test ecx, ecx
je 0x411132
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.Kernel32.dll
call edi
mov esi, eax
push 0x103
lea eax, [esp + 0xf1]
push 0
push eax
mov dword [esp + 0x24], esi
mov byte [esp + 0xf8], 0
call fcn.00418e90
lea ecx, [esp + 0xf8]
add esp, 0xc
test ecx, ecx
je 0x410cac
mov edx, ecx
push edx
push 0
push 0
push 0x8025
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jge 0x410cb6
push str.Get_path_fail_where_the_service_in_.
call fcn.004129d0
add esp, 4
push str.GetPCFolderPath_fail.
call fcn.004129d0
add esp, 4
lea edx, [esp + 0xec]
push edx
call edi
push 0xc
mov ebx, eax
xor edi, edi
push str.explorer.exe
lea ecx, [esp + 0xbc]
mov dword [esp + 0x18], ebx
mov dword [esp + 0xd4], 0xf
mov dword [esp + 0xd0], edi
mov byte [esp + 0xc0], 0
call fcn.00407f80
mov dword [esp + 0x208], edi
jmp 0x410c70
cmp dword [esp + 0xcc], 0x10
mov edi, dword [esp + 0xb8]
jae 0x410c88
lea edi, [esp + 0xb8]
call fcn.00411170
cmp eax, 1
je 0x410cf0
push str.waiting_for_login_user.
call fcn.00412950
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x410c70
push str.Parameter_is_invalid.
jmp 0x410c0d
push 0xffffffffffffffff
push 0x4251fc
lea eax, [esp + 0xf4]
push 0x104
push eax
call fcn.004137f7
push 0xffffffffffffffff
push str.wtsapi32.dll
lea ecx, [esp + 0x104]
push 0x104
push ecx
call fcn.004137f7
add esp, 0x20
jmp 0x410c22
push str.Exit_login_user.
call fcn.00412950
add esp, 4
test ebx, ebx
je 0x411103
test esi, esi
je 0x41110e
push str.WTSGetActiveConsoleSessionId
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
push str.WTSQueryUserToken
push ebx
mov edi, eax
call esi
mov ebx, eax
mov eax, dword [esp + 0x10]
push str.WTSEnumerateSessionsA
push eax
call esi
mov ecx, dword [esp + 0x10]
push str.WTSFreeMemory
push ecx
mov dword [esp + 0x30], eax
call esi
xor esi, esi
mov dword [esp + 0x30], eax
cmp edi, esi
je 0x4110ee
cmp ebx, esi
je 0x4110ee
cmp dword [esp + 0x28], esi
je 0x4110ee
cmp eax, esi
je 0x4110ee
push str.it_run_only_XP_or_Vista_and_DCSMGR_call_process.
call fcn.00412950
add esp, 4
call edi
push str.pfnWTSQueryUserToken_______1
mov edi, eax
mov dword [esp + 0x28], esi
call fcn.00412950
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.pfnWTSQueryUserToken______0
call fcn.00412950
add esp, 4
push ebx
push str.pfnWTSQueryUserToken_____d
call fcn.00412950
add esp, 8
lea edx, [esp + 0x24]
push edx
push edi
call ebx
push str.pfnWTSQueryUserToken__
mov edi, eax
call fcn.00412950
add esp, 4
cmp edi, esi
jne 0x410e7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WTSQueryUserToken_error_GetLastError___d.
call fcn.004129d0
add esp, 8
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
push ecx
push 1
push esi
push esi
mov dword [esp + 0x30], esi
call dword [esp + 0x3c]
cmp eax, esi
jne 0x410e2e
push str.WTSEnumerateSessions_failed.
call fcn.004129d0
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
add esp, 4
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
lea ecx, [esp + 0xb4]
call fcn.00406fe0
jmp 0x41113f
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esp + 0x1c], esi
jbe 0x410e71
xor edi, edi
lea ecx, [ecx]
mov edx, dword [esp + 0x2c]
mov eax, dword [edi + edx]
lea ecx, [esp + 0x24]
push ecx
push eax
call ebx
test eax, eax
jne 0x410e67
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WTSQueryUserToken_error_GetLastError___d.
call fcn.004129d0
add esp, 8
inc esi
add edi, 0xc
cmp esi, dword [esp + 0x1c]
jb 0x410e40
mov ecx, dword [esp + 0x2c]
push ecx
call dword [esp + 0x34]
xor esi, esi
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x20]
push edx
push 1
push 1
push esi
push 0x2000000
push eax
mov dword [esp + 0x38], esi
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push str.DuplicateTokenEx__
call fcn.00412950
mov ecx, dword [esp + 0x24]
add esp, 4
push esi
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], esi
mov ebx, 0x30
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
cmp eax, 1
jne 0x410ecd
mov ebx, 0x430
jmp 0x410ede
push str.CreateEnvironmentBlock___Fail...
mov dword [esp + 0x18], esi
call fcn.00412950
add esp, 4
push str.CreateEnvironmentBlock__
call fcn.00412950
mov eax, dword [esp + 0x3c]
add esp, 4
push eax
lea ecx, [esp + 0x9c]
call fcn.00406f70
xor eax, eax
push 0x44
mov byte [esp + 0x20c], 1
lea ecx, [esp + 0x50]
push esi
push ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
call fcn.00418e90
add esp, 0xc
push str.Call_CreateProcessAsUser___start...
mov dword [esp + 0x50], 0x44
mov dword [esp + 0x58], str.winsta0default
call fcn.00412950
add esp, 4
push 0x424da5
lea ecx, [esp + 0xd4]
call fcn.00406f70
lea edx, [esp + 0xd0]
push edx
mov edx, dword [esp + 0x38]
mov byte [esp + 0x20c], 2
call fcn.00407030
push esi
lea eax, [esp + 0xd4]
push eax
or eax, 0xffffffff
lea esi, [esp + 0xa0]
call fcn.00407540
mov eax, dword [esp + 0x9c]
mov edi, 0x10
cmp dword [esp + 0xb0], edi
jae 0x410fa1
lea eax, [esp + 0x9c]
push eax
push str.Call_CreateProcessAsUser___and_cmmd_is__s
call fcn.00412950
mov eax, dword [esp + 0xa4]
add esp, 8
cmp dword [esp + 0xb0], edi
jae 0x410fc6
lea eax, [esp + 0x9c]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x50]
push edx
mov edx, dword [esp + 0x28]
push 0
push ecx
push ebx
push 0
push 0
push 0
push eax
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x41104c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERR:_CreateProcessAsUser_error..._d
call fcn.00412a50
mov eax, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
add esp, 8
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
lea ecx, [esp + 0xd0]
call fcn.00406fe0
lea ecx, [esp + 0x98]
call fcn.00406fe0
lea ecx, [esp + 0xb4]
call fcn.00406fe0
jmp 0x41113f
push str.Call_CreateProcessAsUser___sucess_start...
call fcn.00412950
mov eax, dword [esp + 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push eax
call esi
mov ecx, dword [esp + 0x3c]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov eax, dword [esp + 0x9c]
cmp dword [esp + 0xb0], edi
jae 0x41108f
lea eax, [esp + 0x9c]
push 0x42810c
push eax
push str.Run__s_and__s_wait__SUC...
call fcn.00412950
mov eax, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
add esp, 0xc
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
push str.runProcessAsUser_leave
call fcn.00412950
add esp, 4
lea ecx, [esp + 0xd0]
call fcn.00406fe0
lea ecx, [esp + 0x98]
call fcn.00406fe0
lea ecx, [esp + 0xb4]
call fcn.00406fe0
mov eax, 1
jmp 0x411141
push str.GetProcAddress_pointer_is_NULL
call fcn.004129d0
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
add esp, 4
test esi, esi
je 0x41110e
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x411119
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0xcc], 0x10
jb 0x41113f
mov edx, dword [esp + 0xb8]
push edx
call fcn.0041300c
jmp 0x41113c
push str.RunProgramAsUser_parameter_is_invalid
call fcn.004129d0
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x200]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1e8]
xor ecx, esp
call fcn.00413017
mov esp, ebp
pop ebp
ret