Function at 0x4644b0
Capabilities:
Create pipe

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [0x490b20]
mov esi, dword [esp + 0x60]
lea eax, [esp + 0x30]
lea edi, [esp + 0x34]
mov dword [esp + 0x38], 0
shl ebx, 0x18
mov dword [esp + 0x34], 0xc
mov dword [esi + 4], 0xffffffff
and ebx, 0x7f000000
mov dword [esi], 0xffffffff
or ebx, 1
mov dword [esp + 4], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x3c], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
sub esp, 0x10
test eax, eax
je 0x4645d8
mov eax, dword [esp + 0x30]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
sub esp, 0xc
test eax, eax
je 0x4646b5
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov dword [esp + 4], 0
mov ebp, dword [sym.imp.msvcrt.dll__open_osfhandle]
mov dword [esp], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
call ebp
mov ecx, dword [esp + 0x18]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x4645e2
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], 8
mov dword [esp], eax
call ebp
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x464680
mov edx, dword [esp + 0x64]
test edx, edx
je 0x4645d6
mov eax, dword [esp + 0x1c]
mov edx, 0x48a49b
mov dword [esp], edi
mov dword [esp + 0x34], 4
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x68]
test eax, eax
mov eax, str.w_nonblock
cmove eax, edx
mov dword [esp + 4], eax
call sub.libgpg_error_0.dll_gpgrt_sysopen
mov edx, dword [esp + 0x64]
mov dword [edx], eax
test eax, eax
je 0x464610
xor ebx, ebx
add esp, 0x4c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], ecx
mov dword [esp], str.failed_to_translate_osfhandle__p_n
call fcn.0044dbb0
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
sub esp, 4
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.libgpg_error_0.dll_gpg_err_code_from_syserror
mov ebx, eax
mov eax, dword [0x490b20]
test ebx, ebx
je 0x46462d
shl eax, 0x18
movzx ebx, bx
and eax, 0x7f000000
or ebx, eax
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 edi, eax
call sub.libgpg_error_0.dll__gpg_w32_gettext
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.0044dbb0
mov eax, dword [esi]
mov dword [esp], eax
call sub.msvcrt.dll__close
mov eax, dword [esi + 4]
mov dword [esp], eax
call sub.msvcrt.dll__close
mov dword [esi + 4], 0xffffffff
mov dword [esi], 0xffffffff
jmp 0x4645d8
mov edi, dword [esp + 0x1c]
mov dword [esp], str.failed_to_translate_osfhandle__p_n
mov dword [esp + 4], edi
call fcn.0044dbb0
mov eax, dword [esi]
mov dword [esp], eax
call sub.msvcrt.dll__close
mov dword [esi], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x4645d8
mov dword [esp], 0xffffffff
call fcn.004471f0
mov dword [esp], str.SetHandleInformation_failed:__s_n
mov dword [esp + 4], eax
call fcn.0044dbb0
mov eax, dword [esp + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp], eax
call esi
sub esp, 4
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call esi
sub esp, 4
jmp 0x4645d8