Function at 0x414650
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Create process suspended
Resolve function by parsing pe exports
Resume thread

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xec
mov eax, dword [0x42e1e4]
mov ebx, dword [esp + 0x10c]
mov dword [esp + 0x8c], 0
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x110]
mov dword [esp + 0x90], 0
and ebx, 0x10
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x58], 0xffffffff
mov dword [esp + 0x5c], 0xffffffff
mov dword [esp + 0x60], 0xffffffff
mov dword [esp + 0x64], 0xffffffff
mov dword [esp + 0x68], 0xffffffff
mov dword [esp + 0x80], 0xffffffff
mov dword [esp + 0x84], 0xffffffff
mov dword [esp + 0x88], 0xffffffff
test eax, eax
je 0x414702
mov eax, dword [esp + 0x110]
mov dword [eax], 0
mov eax, dword [esp + 0x114]
test eax, eax
je 0x41471a
mov eax, dword [esp + 0x114]
mov dword [eax], 0
mov eax, dword [esp + 0x118]
test eax, eax
je 0x414732
mov eax, dword [esp + 0x118]
mov dword [eax], 0
mov eax, dword [esp + 0x11c]
mov ebp, dword [esp + 0x110]
mov dword [eax], 0xffffffff
test ebp, ebp
je 0x414c10
mov edx, 1
lea eax, [esp + 0x54]
call fcn.00413ca0
test eax, eax
jne 0x414ae8
mov eax, dword [esp + 0x58]
test ebx, ebx
mov edx, 0x426ebf
mov dword [esp + 0x6c], 4
mov dword [esp + 0x70], eax
mov eax, str.w_nonblock
cmove eax, edx
mov dword [esp + 4], eax
lea eax, [esp + 0x6c]
mov dword [esp], eax
call sub.libgpg_error_0.dll_gpgrt_sysopen
mov ebp, eax
test eax, eax
je 0x414ee0
mov edi, dword [esp + 0x114]
test edi, edi
je 0x414c21
mov edx, 2
lea eax, [esp + 0x5c]
call fcn.00413ca0
test eax, eax
jne 0x414ae8
mov eax, dword [esp + 0x5c]
test ebx, ebx
mov edx, 0x426e63
mov dword [esp + 0x6c], 4
mov dword [esp + 0x70], eax
mov eax, str.r_nonblock
cmove eax, edx
mov dword [esp + 4], eax
lea eax, [esp + 0x6c]
mov dword [esp], eax
call sub.libgpg_error_0.dll_gpgrt_sysopen
mov dword [esp + 0x40], eax
test eax, eax
je 0x415010
mov esi, dword [esp + 0x118]
test esi, esi
je 0x414c38
mov edx, 2
lea eax, [esp + 0x64]
call fcn.00413ca0
test eax, eax
jne 0x414ae8
mov eax, dword [esp + 0x64]
test ebx, ebx
mov edx, 0x426e63
mov dword [esp + 0x6c], 4
mov dword [esp + 0x70], eax
mov eax, str.r_nonblock
cmove eax, edx
mov dword [esp + 4], eax
lea eax, [esp + 0x6c]
mov dword [esp], eax
call sub.libgpg_error_0.dll_gpgrt_sysopen
mov dword [esp + 0x4c], eax
test eax, eax
je 0x414f48
mov edx, dword [esp + 0x104]
mov eax, dword [esp + 0x100]
lea ecx, [esp + 0x50]
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x74], 0xc
call fcn.00413e80
mov ebx, eax
test eax, eax
jne 0x414b1b
cmp dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x44], 0xffffffff
je 0x414d50
cmp dword [esp + 0x60], 0xffffffff
mov dword [esp + 0x48], 0xffffffff
je 0x414d18
mov edx, dword [esp + 0x68]
mov esi, 0xffffffff
cmp edx, 0xffffffff
je 0x414ce0
xor eax, eax
mov ecx, 0xd
lea edi, [esp + 0xa0]
mov dword [esp + 0x9c], 0x44
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xc8], 0x101
cmp eax, 0xffffffff
cmove eax, dword [esp + 0x44]
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0x60]
cmp eax, 0xffffffff
cmove eax, dword [esp + 0x48]
cmp edx, 0xffffffff
cmove edx, esi
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
sub esp, 4
mov edi, eax
mov eax, dword [esp + 0x100]
mov dword [esp], eax
call fcn.0040ba30
mov esi, eax
test eax, eax
je 0x414b30
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call fcn.0040ba30
mov dword [esp + 0x44], eax
mov ecx, eax
test eax, eax
je 0x414b30
lea eax, [esp + 0x8c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x9c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10c]
mov dword [esp + 0x18], 0
shr eax, 4
mov dword [esp + 0x10], 1
and eax, 8
mov dword [esp + 4], ecx
or edi, eax
lea eax, [esp + 0x74]
mov dword [esp], esi
or edi, 0x4000004
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], edi
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
je 0x414c70
mov dword [esp], esi
lea edi, [esp + 0x80]
call sub.libgcrypt_20.dll_gcry_free
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call sub.libgcrypt_20.dll_gcry_free
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call sub.libgcrypt_20.dll_gcry_free
mov dword [esp + 0x50], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x414a1d
mov dword [esp], eax
call esi
sub esp, 4
add edi, 4
lea eax, [esp + 0x8c]
cmp eax, edi
jne 0x414a0e
mov eax, dword [esp + 0x54]
cmp eax, 0xffffffff
je 0x414a3c
mov dword [esp], eax
call esi
sub esp, 4
mov eax, dword [esp + 0x60]
cmp eax, 0xffffffff
je 0x414a4d
mov dword [esp], eax
call esi
sub esp, 4
mov eax, dword [esp + 0x68]
cmp eax, 0xffffffff
je 0x414a5e
mov dword [esp], eax
call esi
sub esp, 4
test byte [esp + 0x10c], 0x40
jne 0x4150a8
mov eax, dword [esp + 0x90]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
sub esp, 4
mov eax, dword [esp + 0x90]
mov dword [esp], eax
call esi
sub esp, 4
mov ecx, dword [esp + 0x110]
test ecx, ecx
je 0x414aa2
mov eax, dword [esp + 0x110]
mov dword [eax], ebp
mov edx, dword [esp + 0x114]
test edx, edx
je 0x414aba
mov eax, dword [esp + 0x114]
mov ecx, dword [esp + 0x40]
mov dword [eax], ecx
mov eax, dword [esp + 0x118]
test eax, eax
je 0x414ad2
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0x4c]
mov dword [eax], ecx
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x11c]
mov dword [ecx], eax
jmp 0x414b1b
mov eax, dword [esp + 0x3c]
shl eax, 0x18
and eax, 0x7f000000
or eax, 1
mov dword [esp], eax
mov ebx, eax
call sub.libgpg_error_0.dll_gpg_strerror
mov dword [esp], str.error_creating_a_pipe:__s_n
mov esi, eax
call sub.libgpg_error_0.dll__gpg_w32_gettext
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.libgpg_error_0.dll_gpgrt_log_error
add esp, 0xec
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.msvcrt.dll__errno]
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 dword [esp + 0x44], 0
mov dword [esp], esi
call sub.libgcrypt_20.dll_gcry_free
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call sub.libgcrypt_20.dll_gcry_free
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call sub.libgcrypt_20.dll_gcry_free
test ebp, ebp
je 0x414c48
mov dword [esp], ebp
call sub.libgpg_error_0.dll_gpgrt_fclose
mov eax, dword [esp + 0x54]
cmp eax, 0xffffffff
je 0x414b9d
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [esp + 0x40]
test eax, eax
je 0x414cc0
mov dword [esp], eax
call sub.libgpg_error_0.dll_gpgrt_fclose
mov eax, dword [esp + 0x60]
cmp eax, 0xffffffff
je 0x414bc6
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x414c98
mov dword [esp], eax
call sub.libgpg_error_0.dll_gpgrt_fclose
mov eax, dword [esp + 0x68]
cmp eax, 0xffffffff
je 0x414bef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [esp + 0x3c]
add esp, 0xec
shl eax, 0x18
and eax, 0x7f000000
or eax, 1
mov ebx, eax
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [esp + 0x114]
xor ebp, ebp
test edi, edi
jne 0x4147ac
mov esi, dword [esp + 0x118]
mov dword [esp + 0x40], 0
test esi, esi
jne 0x41480c
mov dword [esp + 0x4c], 0
jmp 0x41485d
cmp dword [esp + 0x58], 0xffffffff
je 0x414b88
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x414b88
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 0x414b58
mov eax, dword [esp + 0x64]
cmp eax, 0xffffffff
je 0x414bda
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x414bda
mov eax, dword [esp + 0x5c]
cmp eax, 0xffffffff
je 0x414bb1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x414bb1
test dword [esp + 0x10c], 0x200
je 0x414d88
mov dword [esp], 0xfffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
sub esp, 4
mov esi, eax
mov dword [esp + 0x88], esi
mov edx, dword [esp + 0x68]
jmp 0x4148ce
test dword [esp + 0x10c], 0x200
je 0x414e70
mov dword [esp], 0xfffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
sub esp, 4
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x84], eax
jmp 0x4148bc
test dword [esp + 0x10c], 0x100
je 0x414df8
mov dword [esp], 0xfffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
sub esp, 4
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x80], eax
jmp 0x4148a9
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
mov esi, eax
cmp eax, 0xffffffff
jne 0x414d03
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
jmp 0x414d03
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 dword [esp + 0x44], eax
cmp eax, 0xffffffff
jne 0x414d75
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
jmp 0x414d75
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
mov dword [esp + 0x48], eax
cmp eax, 0xffffffff
jne 0x414d3d
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
jmp 0x414d3d
call sub.libgpg_error_0.dll_gpg_err_code_from_syserror
mov ebx, eax
test eax, eax
je 0x414eff
mov edx, dword [esp + 0x3c]
movzx eax, ax
shl edx, 0x18
and edx, 0x7f000000
or edx, eax
mov ebx, edx
mov dword [esp], ebx
call sub.libgpg_error_0.dll_gpg_strerror
mov dword [esp], str.error_creating_a_stream_for_a_pipe:__s_n
mov esi, eax
call sub.libgpg_error_0.dll__gpg_w32_gettext
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.libgpg_error_0.dll_gpgrt_log_error
mov eax, dword [esp + 0x54]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp], eax
call esi
sub esp, 4
mov eax, dword [esp + 0x58]
mov dword [esp], eax
call esi
sub esp, 4
jmp 0x414b1b
call sub.libgpg_error_0.dll_gpg_err_code_from_syserror
mov ebx, eax
test eax, eax
je 0x414f67
mov edx, dword [esp + 0x3c]
movzx eax, ax
shl edx, 0x18
and edx, 0x7f000000
or edx, eax
mov ebx, edx
mov dword [esp], ebx
call sub.libgpg_error_0.dll_gpg_strerror
mov dword [esp], str.error_creating_a_stream_for_a_pipe:__s_n
mov esi, eax
call sub.libgpg_error_0.dll__gpg_w32_gettext
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.libgpg_error_0.dll_gpgrt_log_error
mov eax, dword [esp + 0x64]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp], eax
call esi
sub esp, 4
mov eax, dword [esp + 0x68]
mov dword [esp], eax
call esi
sub esp, 4
mov eax, dword [esp + 0x40]
mov dword [esp + 0x68], 0xffffffff
mov dword [esp + 0x64], 0xffffffff
test eax, eax
je 0x4150c0
mov dword [esp], eax
call sub.libgpg_error_0.dll_gpgrt_fclose
mov eax, dword [esp + 0x60]
cmp eax, 0xffffffff
je 0x414fdc
mov dword [esp], eax
call esi
sub esp, 4
test ebp, ebp
je 0x415087
mov dword [esp], ebp
call sub.libgpg_error_0.dll_gpgrt_fclose
mov eax, dword [esp + 0x54]
cmp eax, 0xffffffff
je 0x414b1b
mov dword [esp], eax
call esi
sub esp, 4
jmp 0x414b1b
call sub.libgpg_error_0.dll_gpg_err_code_from_syserror
mov ebx, eax
test eax, eax
je 0x41502f
mov edx, dword [esp + 0x3c]
movzx eax, ax
shl edx, 0x18
and edx, 0x7f000000
or edx, eax
mov ebx, edx
mov dword [esp], ebx
call sub.libgpg_error_0.dll_gpg_strerror
mov dword [esp], str.error_creating_a_stream_for_a_pipe:__s_n
mov esi, eax
call sub.libgpg_error_0.dll__gpg_w32_gettext
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.libgpg_error_0.dll_gpgrt_log_error
mov eax, dword [esp + 0x5c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp], eax
call esi
sub esp, 4
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call esi
sub esp, 4
mov dword [esp + 0x60], 0xffffffff
mov dword [esp + 0x5c], 0xffffffff
test ebp, ebp
jne 0x414fe4
mov eax, dword [esp + 0x58]
cmp eax, 0xffffffff
je 0x414fec
mov dword [esp], eax
call esi
sub esp, 4
jmp 0x414fec
mov dword [esp], 0xffffffff
call fcn.0040ccd0
jmp 0x414a6c
mov eax, dword [esp + 0x5c]
cmp eax, 0xffffffff
je 0x414fcb
mov dword [esp], eax
call esi
sub esp, 4
jmp 0x414fcb