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

Disassembly:
push 0x7c
mov eax, 0x440c18
call fcn.0042baa9
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x84]
push ebx
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x88], ebx
call fcn.0042bc20
mov dword [ebp - 0x44], ebx
xor eax, eax
lea edi, [ebp - 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], ebx
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea ecx, [ebp - 0x10]
push ecx
push eax
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
je 0x403843
cmp dword [ebp - 0x10], ebx
je 0x403843
lea eax, [ebp - 0x2c]
push eax
push 4
lea eax, [ebp - 0x24]
push eax
push 0x13
push dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jne 0x403697
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push ecx
xor edi, edi
inc edi
push edi
push 2
push ebx
push 0x2000000
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x403835
push str.CreateEnvironmentBlock
push str.Userenv.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
push ecx
mov dword [0x455540], eax
call eax
test eax, eax
je 0x403817
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.004020d8
push dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.004020d8
mov byte [ebp - 4], 1
cmp byte [ebp + 0x10], bl
je 0x4037a5
mov esi, 0x104
push esi
lea ecx, [ebp - 0x14]
call fcn.004017cd
push ebx
push 0x25
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x30], eax
call fcn.004017cd
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x34]
push 0x44489c
push eax
call fcn.00408331
pop ecx
pop ecx
push dword [eax]
push dword [ebp - 0x30]
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
call fcn.004012b7
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00402f96
push ebx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403509
push dword [eax]
lea eax, [ebp - 0x1c]
push str._c__start__s_
push eax
mov byte [ebp - 4], 2
call fcn.004034f6
mov ecx, dword [ebp - 0x34]
add esp, 0xc
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.004012b7
xor eax, eax
mov dword [ebp - 0x88], 0x44
mov dword [ebp - 0x5c], edi
mov word [ebp - 0x58], ax
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x88]
push eax
push ebx
push dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
push 0x400
push ebx
push ebx
push ebx
call fcn.00402dff
push eax
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x4037d9
mov dword [ebp - 0x28], edi
cmp dword [ebp - 0x44], ebx
je 0x4037ed
cmp dword [ebp - 0x44], 0xffffffff
je 0x4037ed
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x40], ebx
je 0x403801
cmp dword [ebp - 0x40], 0xffffffff
je 0x403801
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004012b7
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004012b7
cmp dword [ebp - 0x20], ebx
je 0x403824
push dword [ebp - 0x20]
call sub.USERENV.dll_DestroyEnvironmentBlock
cmp dword [ebp - 0x18], ebx
je 0x403835
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x10], ebx
je 0x403843
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x28]
call fcn.0042bb81
ret