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

Disassembly:
push ebp
lea ebp, [esp - 0x310]
sub esp, 0x390
mov eax, dword [0x517774]
xor eax, ebp
mov dword [ebp + 0x30c], eax
push esi
mov esi, dword [ebp + 0x318]
push esi
mov dword [ebp - 0x20], esi
call fcn.0040b500
pop ecx
test eax, eax
jne 0x42f23a
push esi
push str.Help_file___s__does_not_exist.
push 8
push 0x519518
call fcn.00402450
add esp, 0x10
xor eax, eax
jmp 0x42f4ad
push ebx
push edi
push dword [ebp + 0x31c]
xor ebx, ebx
push 0xf
push esi
push ebx
mov dword [ebp - 0x14], 1
call fcn.00442f7b
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, ebx
je 0x42f282
push edi
call fcn.00429311
push eax
push edi
push str.HtmlHelp___exited_with__d:___s_
push 0x20
mov esi, 0x519518
push esi
call fcn.00402450
add esp, 0x18
jmp 0x42f287
mov esi, 0x519518
cmp dword [ebp - 0x10], ebx
jne 0x42f29c
push str.Help_window_handle_is_NULL
push 0x20
push esi
call fcn.00402450
add esp, 0xc
cmp edi, ebx
jne 0x42f2a9
cmp dword [ebp - 0x10], ebx
jne 0x42f4a8
call fcn.00427e1f
test eax, eax
jne 0x42f493
push str.HtmlHelp_API_isnt_working._Launching_help_an_alternate_way.
push 0x400
push esi
call fcn.00402450
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push 1
push ebx
push ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
call sub.WTSAPI32.dll_WTSEnumerateSessionsA
mov esi, dword [ebp - 0x24]
xor edi, edi
cmp dword [ebp - 0x1c], ebx
jbe 0x42f314
push 0xa
push 0xa
lea eax, [ebp + 0x300]
push eax
push dword [esi]
call fcn.0049ba5b
add esp, 0x10
cmp dword [esi + 8], ebx
je 0x42f30f
add esi, 0xc
inc edi
cmp edi, dword [ebp - 0x1c]
jb 0x42f2ea
jmp 0x42f314
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
push str.Wtsapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp esi, ebx
je 0x42f349
push str.WTSQueryUserToken
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x28], eax
cmp eax, ebx
jne 0x42f349
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x42f4ab
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
call dword [ebp - 0x28]
test eax, eax
je 0x42f488
push 0x44
pop esi
push esi
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00497680
push 0x10
lea eax, [ebp - 0x3c]
push ebx
push eax
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x78], str.WinSta0Default
call fcn.00497680
mov esi, 0x103
push esi
lea eax, [ebp + 0x1fd]
push ebx
push eax
mov byte [ebp + 0x1fc], bl
call fcn.00497680
push esi
lea eax, [ebp + 0xf9]
push ebx
push eax
mov byte [ebp + 0xf8], bl
call fcn.00497680
add esp, 0x30
push ebx
push 0x24
lea eax, [ebp + 0xf8]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 6
pop ecx
mov esi, str.__shh.exe___mapID__d___s_
lea edi, [ebp - 0xc]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0xe9
lea eax, [ebp + 0xf]
push ebx
push eax
movsb byte es:[edi], byte [esi]
call fcn.00497680
push dword [ebp - 0x20]
lea eax, [ebp + 0xf8]
push dword [ebp + 0x31c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 0x1fc]
push 0x104
push eax
call fcn.00497562
lea eax, [ebp + 0x1fc]
push eax
push str.Launching:__s
push 1
mov esi, 0x519518
push esi
call fcn.00402450
add esp, 0x34
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp + 0x1fc]
push eax
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x42f469
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
call fcn.00429311
push eax
push edi
push str.CreateProcessAsUser_failed_with__d:__s
push 0x400
push esi
call fcn.00402450
add esp, 0x18
mov dword [ebp - 0x14], ebx
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp dword [ebp - 0x3c], ebx
je 0x42f47e
push dword [ebp - 0x3c]
call esi
cmp dword [ebp - 0x38], ebx
je 0x42f488
push dword [ebp - 0x38]
call esi
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x42f4a8
cmp edi, ebx
jne 0x42f49c
cmp dword [ebp - 0x10], ebx
jne 0x42f4a8
call fcn.00427e1f
test eax, eax
je 0x42f4a8
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x14]
pop edi
pop ebx
mov ecx, dword [ebp + 0x30c]
xor ecx, ebp
pop esi
call fcn.004974ba
add ebp, 0x310
leave
ret