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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x104
mov ebp, dword [esp + 0x120]
mov esi, dword [esp + 0x118]
mov eax, dword [0x464010]
xor eax, esp
mov dword [esp + 0x100], eax
call fcn.0040e910
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], eax
mov ecx, dword [esi + 0x10]
xor edi, edi
xor ebx, ebx
mov esi, str.no_header_line_found_in_key_file
nop
push ecx
call fcn.0040e160
add esp, 4
cmp al, 0xa
je 0x405289
cmp al, 0xd
je 0x405289
mov ecx, dword [esp + 0x118]
mov ecx, dword [ecx + 0x10]
cmp dword [ecx + 0xc], 0
jne 0x405289
cmp al, 0x3a
je 0x404f46
cmp ebx, 0x27
je 0x405289
mov byte [esp + ebx + 0xd8], al
add ebx, 1
jmp 0x404f00
push ecx
call fcn.0040e160
add esp, 4
cmp al, 0x20
jne 0x405289
mov byte [esp + ebx + 0xd8], 0
lea esi, [esp + 0xd8]
push 0x16
push str.PuTTY_User_Key_File_3
push esi
call fcn.004330ad
add esp, 0xc
xor edi, edi
test eax, eax
je 0x404fca
push 0x16
push str.PuTTY_User_Key_File_2
push esi
call fcn.004330ad
add esp, 0xc
test eax, eax
je 0x404fe3
push 0x16
push str.PuTTY_User_Key_File_1
push esi
call fcn.004330ad
add esp, 0xc
test eax, eax
je 0x404ffe
push 0x14
push str.PuTTY_User_Key_File_
push esi
call fcn.004330ad
add esp, 0xc
test eax, eax
mov eax, str.PuTTY_key_format_too_new
mov esi, str.not_a_PuTTY_SSH_2_private_key
cmove esi, eax
xor edi, edi
jmp 0x405289
mov dword [esp + 4], 3
mov dword [esp + 0x10], 0x45256c
mov al, 1
mov dword [esp], eax
xor ebx, ebx
jmp 0x40501c
mov dword [esp + 0x10], 0x4525e4
mov dword [esp + 4], 2
mov dword [esp], 0
xor ebx, ebx
jmp 0x40501c
mov dword [esp + 0x10], 0x4525e4
call fcn.00401040
mov dword [esp + 4], 1
mov bl, 1
mov dword [esp], 0
mov ecx, dword [esp + 0x118]
call fcn.004059b0
mov esi, str.file_format_error
test eax, eax
je 0x405282
mov ebp, eax
mov dword [esp + 0x1c], ebx
push eax
call fcn.0043df00
add esp, 4
push eax
push ebp
call fcn.00404c10
add esp, 8
mov ebx, eax
push ebp
call fcn.0040e4c0
add esp, 4
mov dword [esp + 0x24], ebx
test ebx, ebx
je 0x405282
mov eax, dword [esp + 0x118]
mov ecx, dword [eax + 0x10]
xor edi, edi
xor ebx, ebx
mov ebp, dword [esp + 0x120]
push ecx
call fcn.0040e160
add esp, 4
cmp al, 0xa
je 0x405289
cmp al, 0xd
je 0x405289
mov ecx, dword [esp + 0x118]
mov ecx, dword [ecx + 0x10]
cmp dword [ecx + 0xc], 0
jne 0x405289
cmp al, 0x3a
je 0x4050c0
cmp ebx, 0x27
je 0x405289
mov byte [esp + ebx + 0xd8], al
add ebx, 1
jmp 0x40507a
push ecx
call fcn.0040e160
add esp, 4
cmp al, 0x20
jne 0x405289
mov byte [esp + ebx + 0xd8], 0
push 0xb
push str.Encryption
lea eax, [esp + 0xe0]
push eax
call fcn.004330ad
add esp, 0xc
test eax, eax
jne 0x405289
mov ecx, dword [esp + 0x118]
call fcn.004059b0
test eax, eax
je 0x405289
mov ebx, eax
push str.aes256_cbc
push eax
call fcn.0043daf0
add esp, 8
mov dword [esp + 0x38], eax
test eax, eax
je 0x405140
push str.none
push ebx
call fcn.0043daf0
add esp, 8
test eax, eax
jne 0x40517b
mov dword [esp + 0xc], str.none
jmp 0x405148
mov dword [esp + 0xc], str.aes256_cbc
lea edx, [esp + 0xd8]
mov ecx, dword [esp + 0x118]
call fcn.00405950
test al, al
je 0x40517b
mov eax, 0x6d6d6f43
xor eax, dword [esp + 0xd8]
mov ecx, 0x746e65
xor ecx, dword [esp + 0xdc]
or ecx, eax
je 0x405189
push ebx
call fcn.0040e4c0
add esp, 4
jmp 0x405289
mov ecx, dword [esp + 0x118]
call fcn.004059b0
mov dword [esp + 0x18], eax
test eax, eax
je 0x40517b
mov dword [esp + 0x20], ebx
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
lea edi, [esp + 0xd8]
mov ecx, dword [esp + 0x118]
mov edx, edi
call fcn.00405950
mov esi, str.file_format_error
test al, al
je 0x405217
push 0xd
push str.Public_Lines
push edi
call fcn.004330ad
add esp, 0xc
test eax, eax
je 0x4052b7
xor ebp, ebp
xor edi, edi
mov dword [esp + 8], 0
mov dword [esp], 0
xor ebx, ebx
push dword [esp + 0x18]
call fcn.0040e4c0
add esp, 4
push dword [esp + 0x20]
call fcn.0040e4c0
add esp, 4
test ebp, ebp
je 0x405251
push ebp
call fcn.0040e4c0
add esp, 4
cmp dword [esp + 8], 0
je 0x405264
push dword [esp + 8]
call fcn.0040e9d0
add esp, 4
cmp dword [esp], 0
je 0x405275
push dword [esp]
call fcn.0040e9d0
add esp, 4
test ebx, ebx
je 0x405282
push ebx
call fcn.0040e9d0
add esp, 4
mov ebp, dword [esp + 0x120]
push dword [esp + 0x28]
call fcn.0040e9d0
add esp, 4
test ebp, ebp
je 0x40529c
mov dword [ebp], esi
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.0043208f
mov eax, edi
add esp, 0x104
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp + 0x118]
call fcn.004059b0
test eax, eax
je 0x405217
mov ebp, eax
mov ecx, eax
call fcn.00405a40
mov edi, eax
push ebp
call fcn.0040e4c0
add esp, 4
test edi, edi
js 0x405217
call fcn.0040e910
mov dword [esp + 8], eax
add eax, 0xc
mov ecx, dword [esp + 0x118]
mov edx, edi
push eax
call fcn.00405a90
add esp, 4
test al, al
je 0x40561a
cmp byte [esp], 0
je 0x4055ed
mov eax, dword [esp + 0xc]
cmp dword [eax + 8], 0
je 0x4055ed
lea edi, [esp + 0xd8]
mov ecx, dword [esp + 0x118]
mov edx, edi
call fcn.00405950
test al, al
je 0x40561a
push 0xf
push str.Key_Derivation
push edi
call fcn.004330ad
add esp, 0xc
test eax, eax
jne 0x40561a
mov ecx, dword [esp + 0x118]
call fcn.004059b0
test eax, eax
je 0x40561a
mov edi, eax
push str.Argon2d
push eax
call fcn.0043daf0
add esp, 8
mov dword [esp], 0
mov ecx, 0
test eax, eax
je 0x4053cc
push str.Argon2i
push edi
call fcn.0043daf0
add esp, 8
test eax, eax
je 0x4053c0
push str.Argon2id
push edi
call fcn.0043daf0
add esp, 8
test eax, eax
je 0x4053c7
push edi
call fcn.0040e4c0
add esp, 4
jmp 0x40561a
mov ecx, 1
jmp 0x4053cc
mov ecx, 2
mov dword [esp + 0x40], ecx
push edi
call fcn.0040e4c0
add esp, 4
lea edi, [esp + 0xd8]
mov ecx, dword [esp + 0x118]
mov edx, edi
call fcn.00405950
test al, al
je 0x40581b
push 0xe
push str.Argon2_Memory
push edi
call fcn.004330ad
add esp, 0xc
test eax, eax
jne 0x40561a
mov ecx, dword [esp + 0x118]
call fcn.004059b0
test eax, eax
je 0x40561a
mov edi, eax
lea edx, [esp + 0x44]
mov ecx, eax
call fcn.00405be0
mov ebx, eax
push edi
call fcn.0040e4c0
add esp, 4
test bl, bl
je 0x40561a
lea edi, [esp + 0xd8]
mov ecx, dword [esp + 0x118]
mov edx, edi
call fcn.00405950
test al, al
je 0x40561a
push 0xe
push str.Argon2_Passes
push edi
call fcn.004330ad
add esp, 0xc
test eax, eax
jne 0x40561a
mov ecx, dword [esp + 0x118]
call fcn.004059b0
test eax, eax
je 0x40561a
mov edi, eax
lea edx, [esp + 0x4c]
mov ecx, eax
call fcn.00405be0
mov ebx, eax
push edi
call fcn.0040e4c0
add esp, 4
test bl, bl
je 0x40561a
lea edi, [esp + 0xd8]
mov ecx, dword [esp + 0x118]
mov edx, edi
call fcn.00405950
test al, al
je 0x40561a
push 0x13
push str.Argon2_Parallelism
push edi
call fcn.004330ad
add esp, 0xc
test eax, eax
jne 0x40561a
mov ecx, dword [esp + 0x118]
call fcn.004059b0
test eax, eax
je 0x40561a
mov edi, eax
lea edx, [esp + 0x50]
mov ecx, eax
call fcn.00405be0
mov ebx, eax
push edi
call fcn.0040e4c0
add esp, 4
test bl, bl
je 0x40561a
lea edi, [esp + 0xd8]
mov ecx, dword [esp + 0x118]
mov edx, edi
call fcn.00405950
test al, al
je 0x40561a
push 0xc
push str.Argon2_Salt
push edi
call fcn.004330ad
add esp, 0xc
test eax, eax
jne 0x40561a
mov ecx, dword [esp + 0x118]
call fcn.004059b0
test eax, eax
je 0x40561a
mov edi, eax
mov al, byte [eax]
mov byte [esp], al
test al, al
je 0x4055e4
add dword [esp + 0x14], 0xc
mov ebp, edi
add ebp, 2
movzx eax, byte [esp]
push eax
call fcn.0043d650
add esp, 4
test eax, eax
je 0x4053b2
movzx ebx, byte [ebp - 1]
test ebx, ebx
je 0x4053b2
push ebx
call fcn.0043d650
add esp, 4
test eax, eax
je 0x4053b2
movzx eax, byte [esp]
mov byte [esp + 0x77], al
mov byte [esp + 0x78], bl
mov byte [esp + 0x79], 0
push 0x10
push 0
lea eax, [esp + 0x7f]
push eax
call fcn.0043e1cc
add esp, 0xc
movzx eax, al
push eax
push dword [esp + 0x18]
call fcn.0040de80
add esp, 8
movzx eax, byte [ebp]
add ebp, 2
mov byte [esp], al
test al, al
jne 0x405572
push edi
call fcn.0040e4c0
add esp, 4
lea edi, [esp + 0xd8]
mov ecx, dword [esp + 0x118]
mov edx, edi
call fcn.00405950
test al, al
je 0x40561a
push 0xe
push str.Private_Lines
push edi
call fcn.004330ad
add esp, 0xc
test eax, eax
je 0x405623
xor ebp, ebp
xor edi, edi
jmp 0x405223
mov ecx, dword [esp + 0x118]
call fcn.004059b0
test eax, eax
je 0x40561a
mov edi, eax
mov ecx, eax
call fcn.00405a40
mov ebp, eax
push edi
call fcn.0040e4c0
add esp, 4
test ebp, ebp
js 0x40561a
call fcn.0040e970
mov dword [esp], eax
add eax, 0xc
mov ecx, dword [esp + 0x118]
mov edx, ebp
push eax
call fcn.00405a90
add esp, 4
test al, al
je 0x40581b
lea edi, [esp + 0xd8]
mov ecx, dword [esp + 0x118]
mov edx, edi
call fcn.00405950
test al, al
je 0x40581b
push 0xc
push str.Private_MAC
push edi
call fcn.004330ad
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
je 0x4056c9
push 0xd
push str.Private_Hash
push edi
call fcn.004330ad
add esp, 0xc
test eax, eax
setne al
mov ecx, dword [esp + 0x1c]
xor cl, 1
or cl, al
jne 0x40581b
mov ecx, dword [esp + 0x118]
call fcn.004059b0
mov ebp, eax
test eax, eax
je 0x40581b
call fcn.0040e910
mov ebx, eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 4]
mov dword [esp + 0x34], ecx
mov eax, dword [eax + 8]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x11c]
test eax, eax
mov ecx, 0x45c400
cmovne ecx, eax
mov dword [esp + 0x2c], ecx
push ecx
call fcn.0043df00
add esp, 4
lea edi, [esp + 0x3c]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0xc]
push edi
push dword [esp + 0x34]
push dword [esp + 0x3c]
lea edi, [esp + 0x68]
push edi
lea edi, [esp + 0x74]
push edi
lea edi, [esp + 0x80]
push edi
push ebx
push eax
push dword [esp + 0x4c]
call fcn.00405c30
add esp, 0x24
mov eax, dword [esp]
mov eax, dword [eax + 8]
xor edi, edi
mov dword [esp + 4], eax
xor edx, edx
mov ecx, dword [esp + 0xc]
div dword [ecx + 4]
test edx, edx
jne 0x40522c
cmp dword [esp + 0x38], 0
jne 0x40578a
push dword [esp + 4]
mov eax, dword [esp + 4]
push dword [eax + 4]
push dword [esp + 0x6c]
push dword [esp + 0x78]
call fcn.0041fab0
add esp, 0x10
mov eax, dword [esp]
mov dword [esp + 4], eax
cmp byte [esp + 0x1c], 0
jne 0x4057f3
call fcn.0040e970
mov dword [esp + 4], eax
mov esi, eax
add esi, 0xc
mov eax, dword [esp + 0x24]
push dword [eax + 0x60]
push esi
call fcn.0040dfd0
add esp, 8
push dword [esp + 0x20]
push esi
call fcn.0040dfd0
add esp, 8
push dword [esp + 0x18]
push esi
call fcn.0040dfd0
add esp, 8
mov eax, dword [esp + 8]
push dword [eax + 8]
push dword [eax]
push esi
call fcn.0040df80
add esp, 0xc
mov eax, dword [esp]
push dword [eax + 8]
push dword [eax]
push esi
call fcn.0040df80
add esp, 0xc
cmp dword [esp + 0x14], 0
je 0x405824
lea eax, [esp + 0xb8]
push eax
mov eax, dword [esp + 8]
push dword [eax + 8]
push dword [eax + 4]
push 0x4526c8
call fcn.00413160
add esp, 0x10
jmp 0x40587a
xor ebp, ebp
xor edi, edi
jmp 0x40522a
push 0
mov eax, dword [esp + 0x14]
push eax
call dword [eax]
add esp, 8
mov edi, eax
mov eax, dword [eax]
push dword [esp + 0x60]
push dword [esp + 0x60]
push edi
call dword [eax + 8]
add esp, 0xc
mov eax, dword [edi]
push edi
call dword [eax + 0xc]
add esp, 4
mov eax, dword [esp + 4]
push dword [eax + 8]
push dword [eax]
push dword [edi + 4]
call fcn.0040de00
add esp, 0xc
mov eax, dword [edi]
lea ecx, [esp + 0xb8]
push ecx
push edi
call dword [eax + 0x10]
add esp, 8
mov eax, dword [edi]
push edi
call dword [eax + 4]
add esp, 4
cmp byte [esp + 0x1c], 0
jne 0x40588d
push dword [esp + 4]
call fcn.0040e9d0
add esp, 4
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x24], 0
jle 0x4058c3
xor esi, esi
lea edi, [esp + 0x77]
movzx eax, byte [esp + esi + 0xb8]
push eax
push 0x457bff
push edi
call fcn.00404380
add esp, 0xc
add esi, 1
add edi, 2
mov eax, dword [esp + 0x10]
cmp esi, dword [eax + 0x24]
jl 0x40589d
lea eax, [esp + 0x77]
push eax
push ebp
call fcn.0043daf0
add esp, 8
test eax, eax
je 0x4058f8
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 8]
test eax, eax
mov ecx, str.MAC_failed
mov esi, str.wrong_passphrase
cmove esi, ecx
mov edi, 0x464c08
cmove edi, eax
jmp 0x40522c
push 0
push 8
push 1
call fcn.0040e430
add esp, 0xc
mov edi, eax
mov eax, dword [esp + 0x18]
mov dword [edi + 4], eax
mov eax, dword [esp]
push dword [eax + 8]
push dword [eax + 4]
mov eax, dword [esp + 0x10]
push dword [eax + 8]
push dword [eax + 4]
mov eax, dword [esp + 0x34]
push eax
call dword [eax + 4]
add esp, 0x14
mov dword [edi], eax
test eax, eax
je 0x40593a
xor esi, esi
jmp 0x405238
push edi
call fcn.0040e4c0
add esp, 4
xor edi, edi
mov esi, str.createkey_failed
jmp 0x405238