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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x609c
call fcn.00417db0
push ebx
push esi
push edi
push 1
mov esi, ecx
xor ebx, ebx
mov ecx, dword [ebp + 0xc]
pop edi
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x2c], edi
mov word [ebp - 0x26], bx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x28], di
call fcn.00402301
mov ecx, eax
call fcn.004018ad
push eax
lea eax, [ebp - 0x209c]
push eax
call fcn.00417750
cmp dword [ebp + 0x10], 2
pop ecx
pop ecx
jb 0x40e235
mov ecx, dword [ebp + 0xc]
push edi
call fcn.00402301
mov ecx, eax
call fcn.004018ad
push eax
lea eax, [ebp - 0x109c]
push eax
call fcn.00417750
pop ecx
pop ecx
jmp 0x40e23b
mov byte [ebp - 0x109c], bl
cmp byte [ebp - 0x109c], bl
jne 0x40e255
lea eax, [ebp - 0x109c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
cmp dword [ebp + 0x10], 3
jne 0x40e270
mov ecx, dword [ebp + 0xc]
push 2
call fcn.00402301
mov ecx, eax
call fcn.004018d3
mov word [ebp - 0x28], ax
cmp byte [esi + 0x1820], bl
je 0x40e38a
push str.advapi32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40e37a
push str.CreateProcessWithLogonW
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x40e371
mov ax, word [ebp - 0x28]
push 0x1000
mov word [ebp - 0x6c], ax
lea eax, [ebp - 0x209c]
push eax
lea eax, [ebp - 0x609c]
push eax
mov dword [ebp - 0x9c], 0x44
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x70], edi
mov word [ebp - 0x6a], bx
mov dword [ebp - 0x68], ebx
call fcn.00418587
lea eax, [ebp - 0x109c]
push 0x1000
push eax
lea eax, [ebp - 0x409c]
push eax
call fcn.00418587
add esp, 0x18
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x409c]
push eax
push ebx
lea eax, [ebp - 0x609c]
push ebx
push eax
push ebx
lea eax, [esi + 0x1c26]
push edi
push eax
lea eax, [esi + 0x1a24]
push eax
lea eax, [esi + 0x1822]
push eax
call dword [ebp + 0xc]
cmp eax, ebx
jne 0x40e3b8
cmp dword [ebp - 4], ebx
je 0x40e351
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
cmp byte [esi + 0x5d], 1
jne 0x40e3ae
push 0xffffffffffffffff
mov ecx, esi
call fcn.00402a7f
push eax
push 0x87
mov ecx, esi
call fcn.00402959
mov eax, edi
jmp 0x40e3e9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push 0xffffffffffffffff
push 0x9a
mov ecx, esi
call fcn.004027ec
jmp 0x40e36d
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x109c]
push eax
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x209c]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
jmp 0x40e33f
push edi
mov ecx, esi
call fcn.00402b3b
jmp 0x40e3e7
cmp dword [ebp - 4], ebx
je 0x40e3c6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call edi
cmp dword [ebp + 8], 0x12
jne 0x40e3e2
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x181c], eax
jmp 0x40e3e7
push dword [ebp - 0x14]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc