Function at 0x40e270
Capabilities:
Create process on windows
Create process suspended
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422890
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x270
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 0x28], eax
mov eax, dword [0x42bba4]
test eax, eax
mov dword [ebp - 0x14], 0
je 0x40e411
push 1
push 0x208
call fcn.0041b002
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40e411
lea eax, [ebx + 1]
push 0x104
push eax
mov byte [ebx], 0x22
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push ebx
call fcn.004020b0
mov eax, dword [ebp + 8]
add esp, 4
test eax, eax
je 0x40e32a
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, dword [0x426ae8]
dec edi
mov dword [edi], ecx
mov edx, dword [0x426aec]
mov dword [edi + 4], edx
mov eax, dword [0x426af0]
mov dword [edi + 8], eax
mov cx, word [0x426af4]
mov word [edi + 0xc], cx
mov dl, byte [0x426af6]
mov byte [edi + 0xe], dl
jmp 0x40e33d
mov eax, 0x426ad4
mov edx, ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40e333
mov edi, dword [0x42b764]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x24]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ax, word [0x426660]
xor ecx, ecx
mov word [edi - 1], ax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
xor eax, eax
mov dword [ebp - 0x1c], ecx
lea edi, [ebp - 0x6c]
mov dword [ebp - 0x18], ecx
mov ecx, 0x11
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0x44
push eax
push 0
push 0
push 0x20
push 1
push 0
push 0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40e3fd
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40e3f6
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
push ecx
push edx
call edi
test eax, eax
je 0x40e3ec
push 0xfa
call esi
cmp dword [ebp - 0x14], 0x103
je 0x40e3ce
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
jmp 0x40e400
mov esi, dword [ebp - 0x14]
push ebx
call fcn.0041b0b3
add esp, 4
test esi, esi
jne 0x40e4db
lea ecx, [ebp - 0x174]
mov byte [ebp - 0x174], 0
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [ebp - 0x174]
push edx
call fcn.004020f0
mov eax, dword [0x42b764]
lea edx, [ebp - 0x27c]
add esp, 4
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40e446
lea eax, [ebp - 0x27c]
push 0x5c
push eax
call fcn.0041ae00
add esp, 8
test eax, eax
je 0x40e475
lea ecx, [ebp - 0x27c]
mov byte [eax], 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edx, dword [0x42b764]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, 0x20
mov dword [ebp - 0x14], esi
jb 0x40e4c4
mov eax, dword [ebp + 8]
test eax, eax
mov eax, str.DllRegisterServer
jne 0x40e49d
mov eax, str.DllUnregisterServer
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40e4bd
mov dword [ebp - 4], 0
call eax
jmp 0x40e4bd
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [ebp - 0x174]
test al, al
je 0x40e4db
lea eax, [ebp - 0x174]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret