Function at 0x401a10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
xor eax, eax
push edi
push 0x40
xor edi, edi
mov dword [ebp - 0x1c], eax
xor ebx, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x68]
push edi
push eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x6c], edi
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp + 0xc], edi
je 0x401c36
push edi
push edi
push 0xffffffffffffffff
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
cmp esi, edi
je 0x401c36
mov dword [ebp - 8], edi
lea ebx, [esi + esi + 2]
cmp ebx, edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
je 0x401a9b
add ebx, 0x13
and ebx, 0xfffffff0
push ebx
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [ebp - 8], eax
je 0x401a9b
mov ecx, eax
push ebx
push 0
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x401c2a
mov edx, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
push eax
push 0xffffffffffffffff
push edx
push 0
push 0
call ebx
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x401bc7
push esi
push esi
push 0xffffffffffffffff
push esi
push esi
push esi
call ebx
mov dword [ebp + 0xc], eax
test eax, eax
je 0x401bc7
lea ebx, [eax + eax + 2]
test ebx, ebx
je 0x401b08
add ebx, 0x13
and ebx, 0xfffffff0
push ebx
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x401b05
push ebx
push 0
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], esi
test esi, esi
je 0x401bc4
push eax
mov eax, dword [ebp + 0x10]
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x401b93
push ebx
push ebx
push 0xffffffffffffffff
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x401b93
xor edi, edi
lea ecx, [eax + eax + 2]
test ecx, ecx
je 0x401b75
lea ebx, [ecx + 0x13]
and ebx, 0xfffffff0
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x401b72
push ebx
push 0
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov ebx, edi
test edi, edi
je 0x401b8d
mov ecx, dword [ebp + 8]
push eax
push edi
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x401bc4
lea eax, [ebp - 0x6c]
lea edx, [ebp - 0x20]
mov ecx, dword [ebp - 8]
push edx
push eax
push 0
push 0
push 0
push ebx
push 0
push 1
push esi
push 0
push ecx
mov dword [ebp - 0x6c], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
mov dword [ebp - 0xc], eax
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
push edx
push 0
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapValidate]
push eax
call ebx
test eax, eax
je 0x401beb
mov eax, dword [ebp - 8]
push eax
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
je 0x401c07
push esi
push 0
call edi
push eax
call ebx
test eax, eax
je 0x401c07
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x401c2a
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x401c2a
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc