Function at 0x401d10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
xor eax, eax
xor edi, edi
push 0x40
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x68]
push edi
xor esi, esi
push eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x6c], edi
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp + 0xc], edi
je 0x401f36
push edi
push edi
push 0xffffffffffffffff
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
cmp ebx, edi
je 0x401f36
lea esi, [ebx + ebx + 2]
mov dword [ebp - 8], edi
cmp esi, edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
je 0x401d9b
add esi, 0x13
and esi, 0xfffffff0
push esi
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 8], eax
test eax, eax
je 0x401d9b
push esi
mov ecx, eax
push 0
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x401f2a
mov edx, dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push eax
push 0xffffffffffffffff
push edx
push 0
push 0
call esi
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x401ec7
push ebx
push ebx
push 0xffffffffffffffff
push ebx
push ebx
push ebx
call esi
mov dword [ebp + 0xc], eax
test eax, eax
je 0x401ec7
lea esi, [eax + eax + 2]
test esi, esi
je 0x401e08
add esi, 0x13
and esi, 0xfffffff0
push esi
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x401e05
push esi
push 0
push ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], ebx
test ebx, ebx
je 0x401ec4
push eax
mov eax, dword [ebp + 0x10]
push ebx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor esi, esi
cmp dword [ebp + 8], esi
je 0x401e93
push esi
push esi
push 0xffffffffffffffff
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x401e93
lea ecx, [eax + eax + 2]
xor edi, edi
test ecx, ecx
je 0x401e75
lea esi, [ecx + 0x13]
and esi, 0xfffffff0
push esi
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 0x401e72
push esi
push 0
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov esi, edi
test edi, edi
je 0x401e8d
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], esi
test esi, esi
je 0x401ec4
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x6c]
push eax
push 0
push 0
push 0
push esi
push 0
push 1
push ebx
push 0
push ecx
mov dword [ebp - 0x6c], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
push edx
push 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_HeapValidate]
push eax
call esi
test eax, eax
je 0x401eeb
mov eax, dword [ebp - 8]
push eax
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
je 0x401f07
push ebx
push 0
call edi
push eax
call esi
test eax, eax
je 0x401f07
push ebx
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x401f2a
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x401f2a
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, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc