Function at 0x18019198
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x24], edx
push edi
lea ecx, [esp + 0xf]
mov byte [esp + 0xf], 0
call fcn.1800c8e7
test eax, eax
js 0x180193b3
cmp byte [esp + 0xf], 0
jne 0x180191d1
mov eax, 0x80004005
jmp 0x180193b3
and dword [esp + 0x1c], 0
lea ecx, [esp + 0x1c]
call fcn.18019587
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x18], eax
test eax, eax
js 0x180193a2
mov ecx, dword [esp + 0x1c]
call fcn.18018e80
mov dword [esp + 0x18], eax
test eax, eax
js 0x180193a2
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
cmp eax, 0xffffffff
jne 0x1801921d
mov esi, 0x80070057
jmp 0x180193ae
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.18009f92
add eax, 0x10
mov dword [esp + 0x40], 0x44
push 0x40
mov dword [esp + 0x14], eax
lea eax, [esp + 0x48]
push 0
push eax
call fcn.181757a0
and dword [esp + 0x30], 0
lea edi, [esp + 0x3c]
xor eax, eax
xor esi, esi
stosd dword es:[edi], eax
add esp, 0xc
mov dword [esp + 0x18], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
mov dword [esp + 0x14], edi
cmp dword [esp + 0x28], esi
je 0x180192dc
lea edx, [esp + 0x14]
lea ecx, [esp + 0x18]
call fcn.180169fc
mov esi, eax
test esi, esi
jns 0x180192a4
cmp dword [esp + 0x14], edi
je 0x18019287
push dword [esp + 0x14]
call ebx
cmp dword [esp + 0x18], edi
je 0x18019293
push dword [esp + 0x18]
call ebx
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.1800694d
jmp 0x180193a6
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff6
mov dword [esp + 0x70], 0x100
call esi
mov edi, dword [esp + 0x14]
push 0xfffffffffffffff4
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], edi
call esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0x80], eax
mov dword [esp + 0x24], 1
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x20]
and dword [esp + 0x14], 0
and dword [esp + 0x20], 0
push 0
push ebx
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x1801930a
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], 0x400
jmp 0x18019310
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
xor edx, edx
mov eax, dword [esp + 0x10]
inc edx
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or edx, ecx
jge 0x1801933d
push 0x104
lea ecx, [esp + 0x14]
call fcn.1800706e
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x44]
push ecx
xor ecx, ecx
push ecx
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x38]
push ecx
push ecx
push eax
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.18009db6
test ebx, ebx
jne 0x180193ba
call fcn.18018dce
push ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x1801938f
push edi
call ebx
test esi, esi
je 0x18019396
push esi
call ebx
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.1800694d
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x180193b1
push eax
call ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esp + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [esp + 0x30]
call ebx
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x180193da
mov eax, esi
xor esi, esi
mov dword [ecx], eax
push 0
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test edi, edi
je 0x180193e9
push edi
call ebx
test esi, esi
je 0x180193f0
push esi
call ebx
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.1800694d
xor esi, esi
jmp 0x180193a6