Function at 0x408d70
Capabilities:
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [sym.imp.cygwin1.dll___stack_chk_guard]
mov dword [esp + 0x3c], eax
xor eax, eax
mov edi, dword [esp + 0x64]
mov esi, dword [esp + 0x60]
mov ebp, dword [esp + 0x68]
mov dword [esp], edi
call sub.cygopenssh.dll_sshkey_type
mov dword [esp], esi
mov ebx, eax
call sub.cygopenssh.dll_sshkey_type
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], str.private_key_type__s_cert_type__s
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 7
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x1b9
mov dword [esp + 4], str.pkcs11_make_cert
mov dword [esp], str.ssh_pkcs11_client.c
call sub.cygopenssh.dll_sshlog
mov dword [ebp], 0
mov dword [esp], edi
call sub.cygopenssh.dll_sshkey_is_cert
test eax, eax
je 0x408fe0
mov dword [esp], esi
call sub.cygopenssh.dll_sshkey_is_cert
test eax, eax
jne 0x408fe0
mov dword [esp + 4], edi
mov dword [esp], esi
call sub.cygopenssh.dll_sshkey_equal_public
test eax, eax
je 0x408fe0
mov dword [ebp], 0
mov eax, dword [esi]
test eax, eax
je 0x408f40
cmp eax, 2
jne 0x4090c1
mov eax, dword [esi + 0x14]
call fcn.00407f30
mov ebx, eax
test eax, eax
je 0x409080
cmp dword [eax + 8], 0xffffffff
je 0x409080
lea eax, [esp + 0x38]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.cygopenssh.dll_sshkey_from_private
test eax, eax
jne 0x409145
mov eax, dword [ebx + 0x10]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
call sub.cygcrypto_1.1.dll_EC_KEY_set_method
mov eax, dword [ebx + 0x20]
lea edx, [eax + 1]
mov dword [ebx + 0x20], edx
cmp eax, 0x7ffffffe
ja 0x409109
mov eax, dword [esp + 0x38]
or dword [eax + 4], 1
mov dword [esp], eax
call sub.cygopenssh.dll_sshkey_to_certified
mov esi, eax
test eax, eax
jne 0x409040
mov eax, dword [esp + 0x38]
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.cygopenssh.dll_sshkey_cert_copy
mov esi, eax
test eax, eax
jne 0x409040
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x20], eax
mov eax, dword [ebx]
mov dword [esp + 0x18], str.provider__s_remaining_keys:__zu_RSA__zu_ECDSA
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 7
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x1dc
mov dword [esp + 4], str.pkcs11_make_cert
mov dword [esp], str.ssh_pkcs11_client.c
call sub.cygopenssh.dll_sshlog
mov eax, dword [esp + 0x38]
mov dword [ebp], eax
mov eax, dword [esp + 0x3c]
sub eax, dword [sym.imp.cygwin1.dll___stack_chk_guard]
jne 0x4090bc
add esp, 0x4c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
xor edx, edx
ret
mov eax, dword [esi + 8]
call fcn.00407d60
mov ebx, eax
test eax, eax
je 0x409185
cmp dword [eax + 8], 0xffffffff
je 0x409185
lea eax, [esp + 0x38]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.cygopenssh.dll_sshkey_from_private
test eax, eax
jne 0x4091c1
mov eax, dword [ebx + 0xc]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.cygcrypto_1.1.dll_RSA_set_method
mov eax, dword [ebx + 0x1c]
lea edx, [eax + 1]
mov dword [ebx + 0x1c], edx
cmp eax, 0x7ffffffe
jbe 0x408e97
mov dword [esp + 0x18], str.RSA_refcount_error
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x1cb
mov dword [esp + 4], str.pkcs11_make_cert
mov dword [esp], str.ssh_pkcs11_client.c
call sub.cygopenssh.dll_sshfatal
lea esi, [esi]
mov dword [esp], edi
call sub.cygopenssh.dll_sshkey_type
mov dword [esp], esi
mov esi, 0xfffffff6
mov ebx, eax
call sub.cygopenssh.dll_sshkey_type
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], str.private_key__s_doesnt_match_cert__s
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x1be
mov dword [esp + 4], str.pkcs11_make_cert
mov dword [esp], str.ssh_pkcs11_client.c
call sub.cygopenssh.dll_sshlog
jmp 0x408f22
mov dword [esp], esi
call sub.cygopenssh.dll_ssh_err
mov dword [esp + 0x18], str.graft_certificate
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x1db
mov dword [esp + 4], str.pkcs11_make_cert
mov dword [esp], str.ssh_pkcs11_client.c
call sub.cygopenssh.dll_sshfatal
mov dword [esp + 0x18], str.no_helper_for_PKCS11_EC_key
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x1cf
mov dword [esp + 4], str.pkcs11_make_cert
mov dword [esp], str.ssh_pkcs11_client.c
call sub.cygopenssh.dll_sshfatal
call sub.cygwin1.dll___stack_chk_fail
mov dword [esp], esi
call sub.cygopenssh.dll_sshkey_type
mov dword [esp + 0x18], str.unknown_key_type__s
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x1d6
mov dword [esp + 4], str.pkcs11_make_cert
mov dword [esp], str.ssh_pkcs11_client.c
call sub.cygopenssh.dll_sshfatal
mov dword [esp + 0x18], str.EC_refcount_error
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x1d4
mov dword [esp + 4], str.pkcs11_make_cert
mov dword [esp], str.ssh_pkcs11_client.c
call sub.cygopenssh.dll_sshfatal
mov dword [esp], eax
call sub.cygopenssh.dll_ssh_err
mov dword [esp + 0x18], str.copy_key
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x1d1
mov dword [esp + 4], str.pkcs11_make_cert
mov dword [esp], str.ssh_pkcs11_client.c
call sub.cygopenssh.dll_sshfatal
mov dword [esp + 0x18], str.no_helper_for_PKCS11_RSA_key
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x1c6
mov dword [esp + 4], str.pkcs11_make_cert
mov dword [esp], str.ssh_pkcs11_client.c
call sub.cygopenssh.dll_sshfatal
mov dword [esp], eax
call sub.cygopenssh.dll_ssh_err
mov dword [esp + 0x18], str.copy_key
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x1c8
mov dword [esp + 4], str.pkcs11_make_cert
mov dword [esp], str.ssh_pkcs11_client.c
call sub.cygopenssh.dll_sshfatal
lea esi, [esi]
lea esi, [esi]
nop