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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526e2b
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x571ce0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004058e0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4010d6
push 0x80004005
call fcn.00401870
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x214], eax
lea ecx, [ebp - 0x228]
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
push 0xff
lea edx, [ebp - 0x110]
push edx
cmp eax, 1
jne 0x401268
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401120
sub eax, edx
push eax
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x214]
call fcn.00401790
push 0x28
push str.System32SystemPropertiesProtection.exe
lea ecx, [ebp - 0x214]
call fcn.00401490
push 0x44
lea ecx, [ebp - 0x270]
push 0
push ecx
call fcn.00505950
mov esi, dword [ebp - 0x214]
xor eax, eax
mov edx, 1
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x270], 0x44
mov dword [ebp - 0x244], 1
mov word [ebp - 0x240], dx
mov ecx, dword [esi - 0xc]
add esp, 0xc
test ecx, ecx
jns 0x4011b2
push 0x80070057
call fcn.00401870
mov eax, dword [esi - 8]
sub edx, dword [esi - 4]
sub eax, ecx
or eax, edx
jge 0x4011d0
push ecx
lea ecx, [ebp - 0x214]
call fcn.004016c0
mov esi, dword [ebp - 0x214]
lea edx, [ebp - 0x210]
mov eax, esi
sub edx, esi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4011e0
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x270]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x210]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x401245
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
jmp 0x401397
push 0
push 0
push str.Create_process_fail_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
jmp 0x401397
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401277
sub eax, edx
push eax
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x214]
call fcn.00401790
push 0x28
push str.System32SystemPropertiesProtection.exe
lea ecx, [ebp - 0x214]
call fcn.00401490
push 0x44
lea ecx, [ebp - 0x270]
push 0
push ecx
call fcn.00505950
mov esi, dword [ebp - 0x214]
xor eax, eax
mov edx, 1
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x270], 0x44
mov dword [ebp - 0x244], 1
mov word [ebp - 0x240], dx
mov ecx, dword [esi - 0xc]
add esp, 0xc
test ecx, ecx
jns 0x401309
push 0x80070057
call fcn.00401870
mov eax, dword [esi - 8]
sub edx, dword [esi - 4]
sub eax, ecx
or eax, edx
jge 0x401327
push ecx
lea ecx, [ebp - 0x214]
call fcn.004016c0
mov esi, dword [ebp - 0x214]
lea edx, [ebp - 0x210]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401331
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x270]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x210]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x401386
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401397
push 0
push 0
push str.Create_process_fail_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4013ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504242
mov esp, ebp
pop ebp
ret