Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 3
and esp, 0xfffffff8
add esp, 4
sub esp, 0x474
call fcn.00404d64
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov eax, 0x406100
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x74], edx
mov edx, dword [eax + 8]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x6c], edx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x68], edx
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x64], edx
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x60], edx
mov edx, dword [eax + 0x18]
mov dword [ebp - 0x5c], edx
mov edx, dword [eax + 0x1c]
mov dword [ebp - 0x58], edx
mov edx, dword [eax + 0x20]
mov dword [ebp - 0x54], edx
mov edx, dword [eax + 0x24]
mov dword [ebp - 0x50], edx
mov edx, dword [eax + 0x28]
mov dword [ebp - 0x4c], edx
mov edx, dword [eax + 0x2c]
mov dword [ebp - 0x48], edx
mov edx, dword [eax + 0x30]
mov dword [ebp - 0x44], edx
mov edx, dword [eax + 0x34]
mov dword [ebp - 0x40], edx
mov edx, dword [eax + 0x38]
mov dword [ebp - 0x3c], edx
mov edx, dword [eax + 0x3c]
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], eax
xor edi, edi
cmp esi, 3
jge 0x4010a9
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov eax, 0xb
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x20], 0xc
lea eax, [ebp - 0x20]
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], 1
push edx
push edx
push 3
push eax
push edx
push 2
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x4011fc
mov edx, 2
cmp esi, 2
jle 0x40111f
mov eax, dword [ebx + edx*4]
movzx eax, byte [eax]
mov ecx, 1
test eax, eax
je 0x40110d
mov byte [ebp + edi - 0x474], al
mov eax, dword [ebx + edx*4]
movzx eax, byte [ecx + eax]
add edi, 1
add ecx, 1
test eax, eax
jne 0x4010f5
mov byte [ebp + edi - 0x474], 0x20
add edx, 1
add edi, 1
cmp edx, esi
jl 0x4010e6
mov edx, dword [ebp - 4]
mov dword [ebp - 0x48], 0x100
xor eax, eax
mov byte [ebp + edi - 0x475], al
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
lea esi, [ebp - 0x474]
lea ebx, [ebp - 0x74]
lea ecx, [ebp - 0x30]
push ecx
push ebx
push eax
push eax
push 0x8000000
push 1
push eax
push eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4011e9
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x4011a3
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x4011d0
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret