Function at 0x401110
Capabilities:
Create process on windows

Disassembly:
push ebp
xor eax, eax
mov ecx, 0x10
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x24c]
push ebx
sub esp, 0x2a8
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x250], 0x44
rep stosd dword es:[edi], eax
mov eax, section..data
cmp word [ebx], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x10], 0
cmove ebx, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea eax, [ebp - 0x274]
mov dword [esp + 4], ebx
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x250]
mov dword [esp + 0x20], eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
jne 0x4013c8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x27c], eax
test byte [0x403008], 4
jne 0x4011f0
call dword [sym.imp.kernel32.dll_FreeConsole]
call dword [sym.imp.kernel32.dll_AllocConsole]
test eax, eax
jne 0x401220
test byte [0x403008], 2
jne 0x401430
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.CreateProcess__ls_failed:__lu_n
mov dword [esp + 8], str.wWinMain
mov dword [esp + 4], 0x403008
mov dword [esp], 2
call fcn.004010b0
jmp 0x4011bc
mov esi, dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [esp + 0x18], 0
lea edi, [ebp - 0x20c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0000000
mov dword [esp], str.CONIN_
call esi
sub esp, 0x1c
mov dword [ebp - 0x280], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0000000
mov dword [esp], str.CONOUT_
call esi
sub esp, 0x1c
mov dword [ebp - 0x288], eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], edi
mov dword [esp + 4], 0x304
mov dword [esp], eax
call dword [0x4071c0]
mov edx, dword [sym.imp.ucrtbase.dll_wcslen]
sub esp, 0x10
mov dword [esp], edi
mov dword [ebp - 0x284], edx
call edx
mov dword [esp], ebx
mov edx, dword [ebp - 0x284]
mov esi, eax
call edx
lea edx, [esi + eax]
lea eax, [edx + edx]
mov dword [ebp - 0x278], edx
mov dword [ebp - 0x28c], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov esi, eax
test eax, eax
je 0x4013b4
mov dword [esp + 0xc], ebx
lea ebx, [ebp - 0x278]
mov dword [esp + 8], edi
mov edx, dword [ebp - 0x28c]
lea edi, [ebp - 0x264]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00401000
mov dword [esp], esi
mov edx, dword [ebp - 0x284]
call edx
mov dword [esp + 4], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x288]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteConsoleW]
mov esi, dword [sym.imp.kernel32.dll_ReadConsoleInputW]
sub esp, 0x14
jmp 0x401392
cmp word [ebp - 0x264], 2
jne 0x4013b4
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x280]
mov dword [esp], eax
call esi
sub esp, 0x10
test eax, eax
jne 0x401388
mov eax, dword [ebp - 0x27c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov eax, dword [ebp - 0x270]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x274]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
lea eax, [ebp - 0x27c]
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x274]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
sub esp, 8
test eax, eax
jne 0x4013b4
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_allocate_console:__lu_n
mov dword [esp + 8], str.wWinMain
mov dword [esp + 4], 0x403008
mov dword [esp], 1
mov dword [esp + 0x10], eax
call fcn.004010b0
jmp 0x4011d9