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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xec
mov eax, dword [esp + 0x108]
lea edx, [esp + 0x4c]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [eax], 0
mov eax, dword [esp + 0x104]
mov dword [esp + 0x7c], 0
call fcn.004144e0
mov ebx, eax
test eax, eax
jne 0x416543
lea esi, [esp + 0x80]
mov ecx, 0xa
lea ebp, [esp + 0x5c]
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x54]
lea edi, [esp + 0x60]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], eax
lea eax, [esp + 0x58]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x50]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], 0xa
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00422100
mov ebx, eax
test eax, eax
jne 0x416550
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x452b1a
mov dword [esp], eax
mov dword [esp + 0x64], 0
mov dword [esp + 0x6c], 0
call sub.libgcrypt_20.dll_gcry_sexp_find_token
mov ecx, eax
mov dword [esp + 0x38], eax
test eax, eax
je 0x416295
lea eax, [esp + 0x6c]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov dword [esp], ecx
call sub.libgcrypt_20.dll_gcry_sexp_nth_data
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], 0
mov dword [esp + 4], str.comment
mov dword [esp], eax
mov dword [esp + 0x68], 0
mov dword [esp + 0x70], 0
call sub.libgcrypt_20.dll_gcry_sexp_find_token
mov ecx, eax
mov dword [esp + 0x3c], eax
test eax, eax
je 0x4162e7
lea eax, [esp + 0x70]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov dword [esp], ecx
call sub.libgcrypt_20.dll_gcry_sexp_nth_data
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call sub.libgcrypt_20.dll_gcry_sexp_release
mov edx, dword [esp + 0x58]
mov dword [esp + 0x4c], 0
lea eax, [edx*8]
sub eax, edx
add eax, 0x2e
mov dword [esp], eax
call sub.libgcrypt_20.dll_gcry_malloc
mov dword [esp + 0x34], eax
test eax, eax
je 0x416640
mov ecx, eax
mov dword [eax], 0x62757028
mov dword [eax + 4], 0x2d63696c
mov dword [eax + 8], 0x2879656b
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
lea eax, [ecx + 0xc]
mov dword [esp], eax
call fcn.00427450
mov ecx, dword [esp + 0x58]
mov dword [esp + 0xac], edi
mov dword [eax], 0x53255325
mov edi, dword [esp + 0x54]
mov byte [eax + 4], 0
mov dword [esp + 0xa8], ebp
test ecx, ecx
jle 0x416709
mov byte [eax + 4], 0x28
movzx edx, byte [edi]
lea ebp, [esp + 0xa8]
lea ebx, [eax + 0xa]
mov dword [esp + 0xb0], esi
lea esi, [esp + 0x84]
mov byte [eax + 5], dl
mov edx, 3
mov dword [eax + 6], 0x296d2520
mov byte [eax + 0xa], 0
mov dword [esp + 0x30], ebp
cmp ecx, 1
je 0x41674c
nop
mov byte [ebx], 0x28
movzx eax, byte [edi + edx - 2]
add ebx, 6
mov dword [ebx - 4], 0x296d2520
mov byte [ebx - 5], al
mov byte [ebx], 0
cmp edx, 0xe
je 0x416570
mov eax, dword [esp + 0x30]
lea ebp, [edx + 1]
mov dword [eax + ebp*4 - 4], esi
lea eax, [edx - 1]
add esi, 4
cmp ecx, eax
jle 0x4163f0
mov edx, ebp
jmp 0x4163b0
mov eax, dword [esp + 0x64]
lea edi, [ebx + 1]
mov byte [ebx], 0x29
mov esi, ebp
test eax, eax
je 0x416442
mov dword [ebx + 1], 0x69727528
lea esi, [edx + 3]
mov dword [edi + 4], 0x29622520
mov byte [edi + 8], 0
lea edi, [ebx + 9]
lea ebx, [edx + 2]
cmp ebx, 0xd
jg 0x416617
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x74], eax
lea eax, [esp + 0x74]
mov dword [esp + ebp*4 + 0xa8], eax
lea eax, [esp + 0x64]
mov dword [esp + ebx*4 + 0xa8], eax
mov eax, dword [esp + 0x68]
test eax, eax
je 0x416491
lea ebx, [esi + 1]
mov dword [edi], 0x6d6f6328
add edi, 0xc
mov dword [edi - 8], 0x746e656d
mov dword [edi - 4], 0x29622520
mov byte [edi], 0
cmp ebx, 0xd
jg 0x4166e8
mov eax, dword [esp + 0x70]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x78]
mov dword [esp + esi*4 + 0xa8], eax
lea eax, [esp + 0x68]
add esi, 2
mov dword [esp + ebx*4 + 0xa8], eax
mov ebp, 0x29
mov word [edi], bp
cmp esi, 0xd
jg 0x4165c0
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov dword [esp + esi*4 + 0xa8], 0
lea esi, [esp + 0x84]
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
lea eax, [esp + 0x7c]
mov dword [esp + 8], edi
mov dword [esp], eax
call sub.libgcrypt_20.dll_gcry_sexp_build_array
mov dword [esp], edi
mov ebx, eax
call sub.libgcrypt_20.dll_gcry_free
mov eax, dword [esp + 0x80]
test eax, eax
je 0x416502
lea esi, [esi]
mov dword [esp], eax
add esi, 4
call sub.libgcrypt_20.dll_gcry_mpi_release
mov eax, dword [esi - 4]
test eax, eax
jne 0x4164f0
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call sub.libgcrypt_20.dll_gcry_sexp_release
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call sub.libgcrypt_20.dll_gcry_sexp_release
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call sub.libgcrypt_20.dll_gcry_sexp_release
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call sub.libgcrypt_20.dll_gcry_sexp_release
test ebx, ebx
jne 0x416543
mov eax, dword [esp + 0x7c]
mov edi, dword [esp + 0x108]
mov dword [edi], eax
add esp, 0xec
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call sub.libgcrypt_20.dll_gcry_sexp_release
add esp, 0xec
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0x51b
mov dword [esp + 4], str._home_wk_b_gnupg_2.2_dist_PLAY_release_gnupg_w32_2.2.19_agent_findkey.c
mov dword [esp], str.argidx___DIM__args_
call fcn.004474c0
mov ecx, dword [esp + 0x58]
mov dword [esp + 0xe0], esi
add esi, 4
cmp ecx, 0xd
jle 0x4165e1
mov ebp, 0xf
mov edx, ebp
jmp 0x4163b0
mov esi, 0x29
mov word [ebx + 1], si
mov esi, 0xf
lea esi, [esi]
mov dword [esp + 8], 0x531
mov dword [esp + 4], str._home_wk_b_gnupg_2.2_dist_PLAY_release_gnupg_w32_2.2.19_agent_findkey.c
mov dword [esp], str.argidx___DIM__args_
call fcn.004474c0
jmp 0x4164a2
mov ebp, dword [esp + 0x64]
lea eax, [ebx + 1]
mov byte [ebx], 0x29
test ebp, ebp
je 0x4166b7
mov dword [ebx + 1], 0x69727528
lea edi, [ebx + 9]
mov esi, 0x11
mov ebp, 0xf
mov dword [eax + 4], 0x29622520
mov ebx, 0x10
mov byte [eax + 8], 0
mov dword [esp + 8], 0x522
mov dword [esp + 4], str._home_wk_b_gnupg_2.2_dist_PLAY_release_gnupg_w32_2.2.19_agent_findkey.c
mov dword [esp], str.argidx1___DIM__args_
call fcn.004474c0
jmp 0x416424
call sub.libgpg_error_0.dll_gpg_err_code_from_syserror
lea esi, [esp + 0x84]
mov ebx, eax
movzx eax, ax
or eax, 0x4000000
test ebx, ebx
cmovne ebx, eax
mov eax, dword [esp + 0x80]
test eax, eax
je 0x416682
lea esi, [esi]
lea esi, [esi]
mov dword [esp], eax
add esi, 4
call sub.libgcrypt_20.dll_gcry_mpi_release
mov eax, dword [esi - 4]
test eax, eax
jne 0x416670
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call sub.libgcrypt_20.dll_gcry_sexp_release
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call sub.libgcrypt_20.dll_gcry_sexp_release
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call sub.libgcrypt_20.dll_gcry_sexp_release
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call sub.libgcrypt_20.dll_gcry_sexp_release
jmp 0x416543
mov edi, dword [esp + 0x68]
test edi, edi
je 0x4165ab
mov dword [eax], 0x6d6f6328
lea edi, [ebx + 0xd]
mov esi, 0xf
mov ebx, 0x10
mov dword [eax + 4], 0x746e656d
mov dword [eax + 8], 0x29622520
mov byte [eax + 0xc], 0
mov dword [esp + 8], 0x52a
mov dword [esp + 4], str._home_wk_b_gnupg_2.2_dist_PLAY_release_gnupg_w32_2.2.19_agent_findkey.c
mov dword [esp], str.argidx1___DIM__args_
call fcn.004474c0
jmp 0x416470
mov ebx, dword [esp + 0x64]
lea edx, [eax + 5]
mov byte [eax + 4], 0x29
test ebx, ebx
je 0x416784
mov dword [eax + 5], 0x69727528
lea edi, [eax + 0xd]
mov esi, 4
lea eax, [esp + 0xa8]
mov byte [edx + 8], 0
mov ebp, 2
mov ebx, 3
mov dword [edx + 4], 0x29622520
mov dword [esp + 0x30], eax
jmp 0x416424
mov ebx, dword [esp + 0x64]
lea edx, [eax + 0xb]
mov byte [eax + 0xa], 0x29
test ebx, ebx
je 0x4167c2
mov dword [eax + 0xb], 0x69727528
lea edi, [eax + 0x13]
mov esi, 5
mov ebp, 3
mov dword [edx + 4], 0x29622520
mov ebx, 4
mov byte [edx + 8], 0
jmp 0x416424
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x4167f5
mov dword [eax + 5], 0x6d6f6328
lea edi, [eax + 0x11]
mov esi, 2
lea eax, [esp + 0xa8]
mov dword [edx + 4], 0x746e656d
mov ebx, 3
mov dword [edx + 8], 0x29622520
mov byte [edx + 0xc], 0
mov dword [esp + 0x30], eax
jmp 0x416470
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x416813
mov dword [eax + 0xb], 0x6d6f6328
lea edi, [eax + 0x17]
mov esi, 3
mov ebx, 4
mov dword [edx + 4], 0x746e656d
mov dword [edx + 8], 0x29622520
mov byte [edx + 0xc], 0
jmp 0x416470
mov edx, 0x29
mov esi, 2
mov word [eax + 5], dx
lea eax, [esp + 0xa8]
mov dword [esp + 0x30], eax
jmp 0x4164a2
mov edx, 0x29
mov esi, 3
mov word [eax + 0xb], dx
jmp 0x4164a2