Function at 0x4a82a0
Capabilities:
Create pipe

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
mov edi, dword [esp + 0x84]
mov ebp, dword [esp + 0x80]
call fcn.004a2d30
mov eax, 0x71644b
test edi, edi
jne 0x4a82c8
mov eax, 0x716626
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], str.filedes
mov dword [esp + 8], str._gpgme_io_pipe
mov dword [esp + 4], str._s:_enter:__s_p__inherit_idx_i__GPGME_uses_it_for__s__n
mov dword [esp], 7
call fcn.004a2da0
call fcn.004a7ab0
mov esi, eax
cmp eax, 0xffffffff
je 0x4a8532
call fcn.004a7ab0
mov ebx, eax
cmp eax, 0xffffffff
je 0x4a8570
lea eax, [esp + 0x54]
mov dword [esp + 0x58], 0
mov dword [esp + 8], eax
lea eax, [esp + 0x4c]
mov dword [esp + 4], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x5c], 0
mov dword [esp + 0xc], 0x1000
mov dword [esp], eax
mov dword [esp + 0x54], 0xc
call dword [sym.imp.KERNEL32.dll_CreatePipe]
sub esp, 0x10
test eax, eax
je 0x4a84d9
test edi, edi
je 0x4a83e1
dec edi
je 0x4a8460
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
lea eax, [esi + esi*4]
lea eax, [eax*4 + 0x7b8060]
mov dword [eax + 4], ecx
lea ecx, [ebx + ebx*4]
lea ecx, [ecx*4 + 0x7b8060]
mov dword [ecx + 4], edx
mov dword [ebp + 4], ebx
mov dword [ebp], esi
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x14], edx
mov eax, dword [eax + 4]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
mov dword [esp + 8], str._gpgme_io_pipe
mov dword [esp + 4], str._s:_leave:_read0x_x___p_0x_x___write0x_x___p_0x_x__n
mov dword [esp], 7
call fcn.004a2da0
call fcn.004a2d50
mov ebx, eax
add esp, 0x6c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call edi
mov edx, dword [esp + 0x48]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
call edi
lea edi, [esp + 0x50]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je 0x4a85b9
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x48], ecx
jmp 0x4a8373
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call edi
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
call edi
lea edi, [esp + 0x50]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je 0x4a85b9
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x4c], edx
jmp 0x4a8373
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.filedes
mov dword [esp + 8], str._gpgme_io_pipe
mov dword [esp + 4], str._s:_check:__s_p__CreatePipe_failed:_ec_d_n
mov dword [esp], 7
call fcn.004a2da0
cmp esi, 0x1ff
jbe 0x4a8628
cmp ebx, 0x1ff
ja 0x4a8526
mov eax, ebx
call fcn.004a7080
mov dword [esp], 5
call fcn.004b7200
call dword [sym.imp.msvcrt.dll__errno]
or ebx, 0xffffffff
mov eax, dword [eax]
mov dword [esp], eax
call fcn.006c4b80
mov dword [esp + 8], str._gpgme_io_pipe
mov dword [esp + 0xc], eax
mov dword [esp + 4], str._s:_error:__s_n
mov dword [esp], 7
call fcn.004a2da0
call fcn.004a2d50
jmp 0x4a83d7
cmp esi, 0x1ff
ja 0x4a857f
mov eax, esi
call fcn.004a7080
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.006c4b80
mov dword [esp + 8], str._gpgme_io_pipe
mov dword [esp + 0xc], eax
mov dword [esp + 4], str._s:_error:__s_n
mov dword [esp], 7
call fcn.004a2da0
call fcn.004a2d50
jmp 0x4a83d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.filedes
mov dword [esp + 8], str._gpgme_io_pipe
mov dword [esp + 4], str._s:_check:__s_p__DuplicateHandle_failed:_ec_d_n
mov dword [esp], 7
call fcn.004a2da0
cmp esi, 0x1ff
ja 0x4a85fa
mov eax, esi
call fcn.004a7080
cmp ebx, 0x1ff
ja 0x4a8609
mov eax, ebx
call fcn.004a7080
mov eax, dword [esp + 0x48]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp], eax
call ebx
push edx
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call ebx
push ecx
jmp 0x4a8526
mov eax, esi
call fcn.004a7080
jmp 0x4a8517