Function at 0x4150e0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Create process suspended
Resume thread

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xbc
mov eax, dword [esp + 0xe4]
mov esi, dword [esp + 0xd0]
lea ecx, [esp + 0x40]
mov dword [esp + 0x5c], 0
mov edx, dword [esp + 0xd4]
mov dword [esp + 0x60], 0
mov dword [eax], 0xffffffff
mov eax, esi
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x44], 0xc
call fcn.00413e80
mov ebx, eax
test eax, eax
je 0x415160
add esp, 0xbc
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea edx, [esp + 0x70]
mov ecx, 0x10
cmp dword [esp + 0xd8], 0xffffffff
mov dword [esp + 0x6c], 0x44
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, 6
mov ecx, 0xffffffff
mov dword [esp + 0x98], 0x101
mov word [esp + 0x9c], ax
je 0x4154a0
cmp dword [esp + 0xdc], 0xffffffff
mov dword [esp + 0x50], ecx
mov ebp, 0xffffffff
je 0x415420
cmp dword [esp + 0xe0], 0xffffffff
mov dword [esp + 0x54], ebp
mov edi, 0xffffffff
je 0x4153a0
cmp dword [esp + 0xd8], 0xffffffff
mov dword [esp + 0x58], edi
je 0x4151ee
mov eax, dword [esp + 0xd8]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__get_osfhandle]
mov ecx, eax
cmp dword [esp + 0xdc], 0xffffffff
mov dword [esp + 0xa4], ecx
je 0x415211
mov eax, dword [esp + 0xdc]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__get_osfhandle]
mov ebp, eax
cmp dword [esp + 0xe0], 0xffffffff
mov dword [esp + 0xa8], ebp
je 0x415234
mov eax, dword [esp + 0xe0]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__get_osfhandle]
mov edi, eax
mov dword [esp], esi
mov dword [esp + 0xac], edi
call fcn.0040ba30
mov esi, eax
test eax, eax
je 0x4152e8
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.0040ba30
mov ebp, eax
test eax, eax
je 0x4152e8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
sub esp, 4
or eax, 0x400000c
mov dword [esp + 0x14], eax
lea edi, [esp + 0x5c]
lea eax, [esp + 0x44]
lea edx, [esp + 0x6c]
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
jne 0x415320
mov dword [esp], 0xffffffff
call fcn.00408f70
mov dword [esp], str.CreateProcess_failed:__s_n
mov dword [esp + 4], eax
call sub.libgpg_error_0.dll_gpgrt_log_error
jmp 0x41530e
call dword [sym.imp.msvcrt.dll__errno]
xor ebp, ebp
lea edi, [esp + 0x5c]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp], str.CreateProcess_failed__utf8_to_wchar_:__s_n
mov dword [esp + 4], eax
call sub.libgpg_error_0.dll_gpgrt_log_error
mov ebx, dword [0x42e1e4]
shl ebx, 0x18
and ebx, 0x7f000000
or ebx, 1
mov dword [esp], esi
call sub.libgcrypt_20.dll_gcry_free
mov dword [esp], ebp
lea ebp, [esp + 0x50]
call sub.libgcrypt_20.dll_gcry_free
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call sub.libgcrypt_20.dll_gcry_free
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp]
cmp eax, 0xffffffff
je 0x415356
mov dword [esp], eax
call esi
sub esp, 4
add ebp, 4
cmp ebp, edi
jne 0x415346
test ebx, ebx
jne 0x41514e
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
sub esp, 4
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0xe4]
mov dword [edx], eax
add esp, 0xbc
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x40000000
mov dword [esp], 0x426edc
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x1c
cmp eax, 0xffffffff
mov edi, eax
mov ecx, dword [esp + 0x3c]
jne 0x4151ce
mov dword [esp], 0xffffffff
call fcn.00408f70
mov dword [esp], str.cant_open_nul:__s_n
mov dword [esp + 4], eax
call sub.libgpg_error_0.dll_gpgrt_log_debug
mov ecx, dword [esp + 0x3c]
jmp 0x4151ce
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x40000000
mov dword [esp], 0x426edc
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x1c
cmp eax, 0xffffffff
mov ebp, eax
mov ecx, dword [esp + 0x3c]
jne 0x4151b7
mov dword [esp], 0xffffffff
call fcn.00408f70
mov dword [esp], str.cant_open_nul:__s_n
mov dword [esp + 4], eax
call sub.libgpg_error_0.dll_gpgrt_log_debug
mov ecx, dword [esp + 0x3c]
jmp 0x4151b7
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x80000000
mov dword [esp], 0x426edc
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x1c
mov ecx, eax
cmp eax, 0xffffffff
jne 0x4151a0
mov dword [esp], 0xffffffff
mov dword [esp + 0x3c], eax
call fcn.00408f70
mov dword [esp], str.cant_open_nul:__s_n
mov dword [esp + 4], eax
call sub.libgpg_error_0.dll_gpgrt_log_debug
mov ecx, dword [esp + 0x3c]
jmp 0x4151a0