Function at 0x461a30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
xor edx, edx
xor eax, eax
push edi
push esi
push ebx
sub esp, 0xdc
mov dword [esp + 0x5c], 0xffffffff
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x78], 0xffffffff
mov dword [esp + 0x7c], 0xffffffff
mov dword [esp + eax + 0xb0], edx
add eax, 4
cmp eax, 0x20
jb 0x461a76
xor edx, edx
xor eax, eax
mov dword [esp + eax + 0x94], edx
add eax, 4
cmp eax, 0x1c
jb 0x461a89
mov dword [esp], 0x1008
call sub.libgcrypt_20.dll_gcry_malloc
mov dword [esp + 0x3c], eax
test eax, eax
je 0x461f36
mov dword [eax + 0x1000], eax
mov dword [eax + 0x1004], 0
mov dword [esp], 0x1008
call sub.libgcrypt_20.dll_gcry_malloc
mov ebx, eax
test eax, eax
je 0x4620a0
mov dword [ebx + 0x1000], eax
mov dword [eax + 0x1004], 0
mov dword [esp], 0x1008
call sub.libgcrypt_20.dll_gcry_malloc
mov ebp, eax
test eax, eax
je 0x462170
mov dword [ebp + 0x1000], eax
mov dword [eax + 0x1004], 0
mov eax, dword [esp + 0xf0]
mov dword [esp], 0x100
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x104]
mov dword [esp + 0xa8], 0x100
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x108]
mov dword [esp + 0x9c], eax
call sub.libgcrypt_20.dll_gcry_malloc
mov dword [esp + 0xac], eax
test eax, eax
je 0x462295
mov esi, dword [esp + 0xfc]
test esi, esi
je 0x461f21
lea eax, [esp + 0x64]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
lea eax, [esp + 0x78]
mov dword [esp], eax
call fcn.004644b0
mov esi, eax
test eax, eax
jne 0x4621c0
mov eax, dword [esp + 0x78]
mov dword [esp + 0x74], 0xffffffff
mov dword [esp + 0x70], eax
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__get_osfhandle]
mov dword [esp + 8], str.__lu
mov dword [esp + 0xc], eax
lea eax, [esp + 0x80]
mov dword [esp + 4], 0x14
mov dword [esp], eax
call sub.libgpg_error_0.dll_gpgrt_snprintf
mov eax, dword [esp + 0xf4]
mov edi, dword [eax]
mov dword [esp + 0x40], edi
test edi, edi
je 0x4622e5
xor ecx, ecx
mov dword [esp + 0x48], ebx
mov edx, str.__INEXTRA_
mov ebx, eax
mov dword [esp + 0x4c], ebp
mov eax, edi
mov ebp, ecx
jmp 0x461c10
add ebx, 4
mov eax, dword [ebx]
add ebp, 1
test eax, eax
je 0x462280
mov ecx, 0xc
mov esi, eax
mov edi, edx
repe cmpsb byte [esi], byte es:[edi]
seta cl
sbb cl, 0
test cl, cl
jne 0x461c00
mov dword [esp + 0x40], eax
lea edi, [esp + 0x80]
mov eax, ebx
mov ebx, dword [esp + 0x48]
mov dword [eax], edi
mov dword [esp + 0x44], ebp
mov ebp, dword [esp + 0x4c]
mov ecx, dword [esp + 0xf8]
mov edx, 0
lea eax, [esp + 0x60]
mov dword [esp + 0x10], 0x10
mov dword [esp + 0xc], 0
test ecx, ecx
cmove eax, edx
lea edx, [esp + 0x5c]
mov dword [esp + 0x20], edx
lea edx, [esp + 0x6c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x70]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xf4]
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x68]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x18], edx
mov dword [esp], eax
call fcn.00464830
mov esi, eax
mov eax, dword [esp + 0x78]
cmp eax, 0xffffffff
je 0x461cb6
mov dword [esp], eax
call sub.msvcrt.dll__close
mov eax, dword [esp + 0x40]
test eax, eax
je 0x461ccc
mov edi, dword [esp + 0xf4]
mov ecx, dword [esp + 0x44]
mov dword [edi + ecx*4], eax
test esi, esi
jne 0x4621e0
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0xf8]
or byte [esp + 0xb4], 2
mov dword [esp + 0xb0], eax
test edx, edx
je 0x4621b0
mov eax, dword [esp + 0x68]
or byte [esp + 0xbc], 1
or byte [esp + 0xc4], 1
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x6c]
or byte [esp + 0xcc], 2
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0xfc]
test eax, eax
je 0x4621a0
mov esi, dword [esp + 0xfc]
cmp byte [esp + 0xbe], 0
jns 0x461d5d
cmp byte [esp + 0xc6], 0
js 0x4620db
lea eax, [esp + 0xb0]
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 4
mov dword [esp], eax
call sub.libgpg_error_0.dll_gpgrt_poll
cmp eax, 0xffffffff
je 0x462210
test eax, eax
je 0x4620c4
test byte [esp + 0xb5], 2
jne 0x461e05
test byte [esp + 0xcd], 2
je 0x461dd1
test esi, esi
je 0x4622f2
mov ecx, dword [esp + 0xc8]
mov edx, esi
mov eax, ebp
call fcn.00461520
test eax, eax
jne 0x462255
mov dword [esp], esi
call sub.libgpg_error_0.dll_gpgrt_feof
test eax, eax
jne 0x461ee0
test byte [esp + 0xbd], 1
jne 0x461e80
test byte [esp + 0xc5], 1
je 0x461d45
lea edx, [esp + 0xc0]
lea eax, [esp + 0x94]
call fcn.00461730
jmp 0x461d45
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xf8]
mov eax, dword [esp + 0x3c]
call fcn.00461520
test eax, eax
jne 0x462255
mov eax, dword [esp + 0xf8]
mov dword [esp], eax
call sub.libgpg_error_0.dll_gpgrt_feof
test eax, eax
je 0x461d97
mov edx, dword [esp + 0xb0]
mov eax, dword [esp + 0x3c]
call fcn.00461400
cmp ax, 0x8006
je 0x461d45
test eax, eax
jne 0x462255
mov eax, dword [esp + 0x60]
or byte [esp + 0xb6], 0x80
mov dword [esp], eax
call sub.libgpg_error_0.dll_gpgrt_fclose
mov dword [esp + 0x60], 0
jmp 0x461d97
mov ecx, dword [esp + 0x100]
mov edx, dword [esp + 0xb8]
mov eax, ebx
call fcn.00461520
test eax, eax
jne 0x4622bb
mov eax, dword [esp + 0xb8]
mov dword [esp], eax
call sub.libgpg_error_0.dll_gpgrt_feof
test eax, eax
je 0x461ddf
mov edx, dword [esp + 0x100]
mov eax, ebx
call fcn.00461400
test eax, eax
jne 0x4622bb
or byte [esp + 0xbe], 0x80
jmp 0x461ddf
mov edx, dword [esp + 0xc8]
mov eax, ebp
call fcn.00461400
cmp ax, 0x8006
je 0x461d45
test eax, eax
jne 0x462255
mov eax, dword [esp + 0x64]
or byte [esp + 0xce], 0x80
mov dword [esp], eax
call sub.libgpg_error_0.dll_gpgrt_fclose
mov dword [esp + 0x64], 0
jmp 0x461dd1
mov dword [esp + 0x70], 0xffffffff
mov dword [esp + 0x40], 0
jmp 0x461c40
call sub.libgpg_error_0.dll_gpg_err_code_from_syserror
test eax, eax
je 0x462091
mov esi, dword [0x490b20]
movzx eax, ax
xor ebp, ebp
xor ebx, ebx
shl esi, 0x18
and esi, 0x7f000000
or esi, eax
lea esi, [esi]
nop
test esi, esi
je 0x461f75
mov eax, dword [esp + 0x5c]
cmp eax, 0xffffffff
je 0x461f75
mov dword [esp], eax
call fcn.00465c60
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call sub.libgpg_error_0.dll_gpgrt_fclose
mov eax, dword [esp + 0x64]
mov dword [esp], eax
call sub.libgpg_error_0.dll_gpgrt_fclose
mov eax, dword [esp + 0x68]
mov dword [esp], eax
call sub.libgpg_error_0.dll_gpgrt_fclose
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call sub.libgpg_error_0.dll_gpgrt_fclose
mov eax, dword [esp + 0x5c]
cmp eax, 0xffffffff
je 0x461fd5
mov dword [esp + 4], eax
mov eax, dword [esp + 0xf0]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp], eax
call fcn.00465560
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call fcn.00465a60
mov edi, dword [esp + 0x3c]
test edi, edi
je 0x462009
mov dword [esp + 4], 0x1000
mov dword [esp], edi
call fcn.0044e280
mov dword [edi + 0x1000], 0
mov dword [edi + 0x1004], 0xffffffff
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call sub.libgcrypt_20.dll_gcry_free
test ebx, ebx
je 0x46203d
mov dword [esp + 4], 0x1000
mov dword [esp], ebx
call fcn.0044e280
mov dword [ebx + 0x1000], 0
mov dword [ebx + 0x1004], 0xffffffff
mov dword [esp], ebx
call sub.libgcrypt_20.dll_gcry_free
test ebp, ebp
je 0x46206d
mov dword [esp + 4], 0x1000
mov dword [esp], ebp
call fcn.0044e280
mov dword [ebp + 0x1000], 0
mov dword [ebp + 0x1004], 0xffffffff
mov dword [esp], ebp
call sub.libgcrypt_20.dll_gcry_free
mov eax, dword [esp + 0xac]
mov dword [esp], eax
call sub.libgcrypt_20.dll_gcry_free
add esp, 0xdc
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
xor ebp, ebp
xor ebx, ebx
xor esi, esi
jmp 0x461f75
call sub.libgpg_error_0.dll_gpg_err_code_from_syserror
test eax, eax
je 0x462091
mov esi, dword [0x490b20]
movzx eax, ax
xor ebp, ebp
shl esi, 0x18
and esi, 0x7f000000
or esi, eax
jmp 0x461f60
mov eax, dword [esp + 0xf0]
mov dword [esp], str.unexpected_timeout_while_polling__s_n
mov dword [esp + 4], eax
call fcn.0044ddd0
xor edx, edx
lea eax, [esp + 0x94]
call fcn.00461730
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call sub.libgpg_error_0.dll_gpgrt_fclose
mov eax, dword [esp + 0x64]
mov dword [esp + 0x60], 0
mov dword [esp], eax
call sub.libgpg_error_0.dll_gpgrt_fclose
mov eax, dword [esp + 0x68]
mov dword [esp + 0x64], 0
mov dword [esp], eax
call sub.libgpg_error_0.dll_gpgrt_fclose
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x68], 0
mov dword [esp], eax
call sub.libgpg_error_0.dll_gpgrt_fclose
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x6c], 0
mov dword [esp], eax
call fcn.00465560
mov dword [esp + 0x5c], 0xffffffff
mov esi, eax
jmp 0x461f60
call sub.libgpg_error_0.dll_gpg_err_code_from_syserror
mov esi, eax
test eax, eax
je 0x461f75
mov edx, dword [0x490b20]
movzx esi, ax
shl edx, 0x18
and edx, 0x7f000000
or esi, edx
jmp 0x461f60
or byte [esp + 0xce], 0x80
jmp 0x461d3e
or byte [esp + 0xb6], 0x80
jmp 0x461cf6
mov dword [esp], eax
call sub.libgpg_error_0.dll_gpg_strerror
mov dword [esp], str.error_running_outbound_pipe_for_extra_fp:__s_n
mov dword [esp + 4], eax
call fcn.0044dbb0
jmp 0x461f64
mov dword [esp], esi
call sub.libgpg_error_0.dll_gpg_strerror
mov dword [esp], str.error_running__s:__s_n
mov dword [esp + 8], eax
mov eax, dword [esp + 0xf0]
mov dword [esp + 4], eax
call fcn.0044dbb0
jmp 0x461f64
call sub.libgpg_error_0.dll_gpg_err_code_from_syserror
mov esi, eax
mov eax, dword [0x490b20]
test esi, esi
je 0x46222d
shl eax, 0x18
movzx esi, si
and eax, 0x7f000000
or esi, eax
mov dword [esp], esi
call sub.libgpg_error_0.dll_gpg_strerror
mov dword [esp], str.error_polling__s:__s_n
mov dword [esp + 8], eax
mov eax, dword [esp + 0xf0]
mov dword [esp + 4], eax
call fcn.0044dbb0
jmp 0x461f60
mov dword [esp], eax
mov esi, eax
call sub.libgpg_error_0.dll_gpg_strerror
mov dword [esp], str.error_feeding_data_to__s:__s_n
mov dword [esp + 8], eax
mov eax, dword [esp + 0xf0]
mov dword [esp + 4], eax
call fcn.0044dbb0
jmp 0x461f64
mov dword [esp + 0x44], ebp
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x40], eax
mov ebp, dword [esp + 0x4c]
jmp 0x461c40
call sub.libgpg_error_0.dll_gpg_err_code_from_syserror
mov esi, eax
test eax, eax
je 0x461f75
mov eax, dword [0x490b20]
movzx esi, si
shl eax, 0x18
and eax, 0x7f000000
or esi, eax
jmp 0x461f60
mov dword [esp], eax
mov esi, eax
call sub.libgpg_error_0.dll_gpg_strerror
mov dword [esp], str.error_reading_data_from__s:__s_n
mov dword [esp + 8], eax
mov eax, dword [esp + 0xf0]
mov dword [esp + 4], eax
call fcn.0044dbb0
jmp 0x461f64
mov dword [esp + 0x44], 0
jmp 0x461c40
mov dword [esp + 0xc], str.gnupg_exec_tool_stream
mov dword [esp + 8], 0x1de
mov dword [esp + 4], str._home_wk_b_gnupg_2.2_dist_PLAY_release_gnupg_w32_2.2.19_common_exectool.c
mov dword [esp], str.inextra
call fcn.0044e240
lea esi, [esi]
lea esi, [esi]
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov edi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov ebx, dword [esp + 0x68]
mov dword [edi], 0
test ecx, ecx
je 0x462347
mov eax, dword [esp + 0x70]
mov dword [eax], 0
test ebx, ebx
je 0x46238d
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov dword [esp], ebx
mov dword [esp + 0x18], 0x48a192
mov dword [esp + 0x14], 0x4613f0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], eax
call sub.libgpg_error_0.dll_gpgrt_mopen
mov ebx, eax
test eax, eax
je 0x462500
mov dword [esp + 4], 0x48a195
mov dword [esp], 0
call sub.libgpg_error_0.dll_gpgrt_fopenmem
mov esi, eax
test eax, eax
je 0x462490
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x18], 0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp], eax
call fcn.00461a30
mov ebp, eax
test eax, eax
je 0x462410
mov dword [esp], ebx
call sub.libgpg_error_0.dll_gpgrt_fclose
mov dword [esp], esi
call sub.libgpg_error_0.dll_gpgrt_fclose
mov eax, dword [edi]
mov dword [esp], eax
call sub.libgcrypt_20.dll_gcry_free
mov dword [edi], 0
add esp, 0x4c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
call sub.libgpg_error_0.dll_gpgrt_ftello
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
mov dword [esp + 0x2c], eax
call sub.libgpg_error_0.dll_gpgrt_fseek
mov ebp, eax
test eax, eax
jne 0x4623e5
mov eax, dword [esp + 0x2c]
add eax, 1
mov dword [esp], eax
call sub.libgcrypt_20.dll_gcry_malloc
mov dword [edi], eax
test eax, eax
je 0x4624b4
mov edx, dword [esp + 0x2c]
test edx, edx
jne 0x462524
mov ecx, dword [esp + 0x2c]
mov byte [eax + ecx], 0
mov eax, dword [esp + 0x70]
test eax, eax
je 0x462471
mov eax, dword [esp + 0x70]
mov dword [eax], ecx
mov dword [esp], ebx
call sub.libgpg_error_0.dll_gpgrt_fclose
mov dword [esp], esi
call sub.libgpg_error_0.dll_gpgrt_fclose
add esp, 0x4c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.libgpg_error_0.dll_gpg_err_code_from_syserror
mov ebp, eax
test eax, eax
jne 0x4624c0
mov dword [esp], ebx
call sub.libgpg_error_0.dll_gpgrt_fclose
mov dword [esp], 0
call sub.libgpg_error_0.dll_gpgrt_fclose
jmp 0x462405
call sub.libgpg_error_0.dll_gpg_err_code_from_syserror
mov ebp, eax
test eax, eax
je 0x462471
nop
mov ecx, dword [0x490b20]
movzx edx, bp
shl ecx, 0x18
and ecx, 0x7f000000
or ecx, edx
mov ebp, ecx
mov dword [esp], ebx
call sub.libgpg_error_0.dll_gpgrt_fclose
mov dword [esp], esi
call sub.libgpg_error_0.dll_gpgrt_fclose
test ebp, ebp
jne 0x4623f5
add esp, 0x4c
xor ebp, ebp
pop ebx
mov eax, ebp
pop esi
pop edi
pop ebp
ret
call sub.libgpg_error_0.dll_gpg_err_code_from_syserror
test eax, eax
je 0x4624ee
mov edx, dword [0x490b20]
movzx eax, ax
shl edx, 0x18
and edx, 0x7f000000
or edx, eax
mov ebp, edx
jmp 0x462405
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x3c]
mov dword [esp + 4], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp], esi
call sub.libgpg_error_0.dll_gpgrt_read
test eax, eax
jne 0x462555
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x3c], eax
jne 0x46257d
mov eax, dword [edi]
jmp 0x46245b
call sub.libgpg_error_0.dll_gpg_err_code_from_syserror
mov ebp, eax
test eax, eax
je 0x462471
mov eax, dword [0x490b20]
movzx edx, bp
shl eax, 0x18
and eax, 0x7f000000
or eax, edx
mov ebp, eax
jmp 0x4624d6
mov dword [esp + 4], str.gnupg_exec_tool
mov dword [esp], str._s:_short_read_from_memstream_n
call fcn.0044dd20
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop