Function at 0x464f20
Capabilities:
Check if file exists
Get file attributes
Resolve function by parsing pe exports
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x27c
mov eax, dword [0x4fc040]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push esi
push edi
push str.USERPROFILE
call fcn.004a70fc
add esp, 4
push eax
push str._s.ssh
call fcn.00490340
add esp, 8
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x464f85
mov ecx, edi
call fcn.00490070
push str.USERPROFILE
call fcn.004a70fc
add esp, 4
push eax
call fcn.004a6c01
add esp, 4
mov edi, eax
xor eax, eax
push 0x103
push eax
mov word [esp + 0x180], ax
lea eax, [esp + 0x182]
push eax
call fcn.00497aa0
add esp, 0xc
lea eax, [esp + 0x20]
push 0x58
push 0
push eax
call fcn.00497aa0
add esp, 0xc
mov dword [esp + 0x20], 0x58
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x178]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x30], str.SSH_Key_Files__id__sk_
mov dword [esp + 0x54], str.Please_Select_SSH_Security_Key_File_To_Import
mov dword [esp + 0x50], edi
mov dword [esp + 0x58], 0x10001000
mov dword [esp + 0x44], 0x105
mov dword [esp + 0x3c], 1
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
mov ecx, edi
mov esi, eax
call fcn.00490070
test esi, esi
je 0x4652c1
lea ecx, [esp + 0x178]
call fcn.00491bf0
mov esi, eax
sub esp, 8
mov ecx, esi
call fcn.0047daf0
mov ebx, eax
mov ecx, esi
mov dword [esp + 0x24], ebx
call fcn.00490070
push 1
push 0x200
call fcn.004a6b97
mov edi, eax
add esp, 0x10
mov dword [esp + 0x18], edi
test edi, edi
je 0x4652c1
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x4652c3
mov eax, dword [ebx]
mov dword [esp + 0x10], eax
push str.sk_ecdsa_
mov eax, dword [eax]
mov esi, dword [eax + 0x60]
mov eax, dword [ebx]
mov eax, dword [eax]
push dword [eax + 0x60]
call fcn.00496f90
add esp, 8
cmp eax, esi
jne 0x46517a
mov esi, dword [esp + 0x10]
push dword [esi + 4]
call fcn.004a6c01
mov ecx, dword [esi + 8]
add esp, 4
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0x10]
shr ecx, 1
mov dword [edi + 4], ecx
mov ecx, dword [ebx]
mov dword [esp + 0xc], eax
mov ecx, dword [ecx]
mov edx, dword [ecx + 0x60]
mov ecx, str.sk_ecdsa_sha2_nistp256_openssh.com
mov eax, edx
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x4650e6
test bl, bl
je 0x4650e2
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x4650e6
add eax, 2
add ecx, 2
test bl, bl
jne 0x4650c6
xor eax, eax
jmp 0x4650eb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4650fd
mov ebx, dword [esp + 0x1c]
mov eax, 0x31534345
jmp 0x4651be
mov ecx, str.sk_ecdsa_sha2_nistp384_openssh.com
mov eax, edx
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x465124
test bl, bl
je 0x465120
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x465124
add eax, 2
add ecx, 2
test bl, bl
jne 0x465104
xor eax, eax
jmp 0x465129
sbb eax, eax
or eax, 1
test eax, eax
jne 0x46513b
mov ebx, dword [esp + 0x1c]
mov eax, 0x33534345
jmp 0x4651be
mov eax, str.sk_ecdsa_sha2_nistp521_openssh.com
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x465160
test cl, cl
je 0x46515c
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x465160
add edx, 2
add eax, 2
test cl, cl
jne 0x465140
xor ecx, ecx
jmp 0x465165
sbb ecx, ecx
or ecx, 1
mov ebx, dword [esp + 0x1c]
test ecx, ecx
mov eax, 0x50444345
mov edx, 0x35534345
cmove eax, edx
jmp 0x4651be
mov eax, dword [ebx]
push str.sk_ssh_ed25519
push esi
mov dword [esp + 0x18], eax
call fcn.00496f90
mov esi, dword [esp + 0x18]
add esp, 8
mov ecx, dword [esi]
cmp eax, dword [ecx + 0x60]
jne 0x465284
push dword [esi + 4]
call fcn.004a6c01
mov dword [esp + 0x10], eax
add esp, 4
mov eax, dword [esi + 8]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 4], eax
mov eax, 0x50444345
cmp dword [esp + 0xc], 0
mov ecx, edi
mov edi, esi
mov dword [ecx], eax
je 0x465284
push dword [esi + 0x10]
mov eax, dword [esp + 0x1c]
push dword [esi + 0xc]
add eax, 8
push eax
call fcn.00497c70
add esp, 0xc
xor eax, eax
mov word [esp + 0x78], ax
push 0xfe
push eax
lea eax, [esp + 0x82]
push eax
call fcn.00497aa0
add esp, 0xc
lea eax, [esp + 0x78]
push 0x80
push eax
push 0xffffffffffffffff
push dword [esp + 0x18]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x4652c1
mov eax, dword [esi + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
add eax, 8
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x80]
push 3
push eax
push str.SoftwareSimonTathamPuTTYFidoPubKeyBlobs
push SysReAllocString
call esi
push dword [edi + 0x18]
lea eax, [esp + 0x7c]
push dword [edi + 0x14]
push 3
push eax
push str.SoftwareSimonTathamPuTTYFidoCredIdBlobs
push SysReAllocString
call esi
push 4
lea eax, [esp + 0x18]
push eax
push 4
lea eax, [esp + 0x84]
push eax
push str.SoftwareSimonTathamPuTTYFidoUserVerification
push SysReAllocString
call esi
mov ecx, dword [ebx]
test ecx, ecx
je 0x465295
mov eax, dword [ecx]
push ecx
mov eax, dword [eax + 0xc]
call eax
add esp, 4
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x4652a1
call fcn.00490070
mov ecx, ebx
call fcn.00490070
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.00495b16
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [esp + 0x284]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00495b16
mov esp, ebp
pop ebp
ret