Function at 0x40e1f0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
lea edx, [ebp - 0x118]
push edi
push esi
push ebx
sub esp, 0x12c
mov eax, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msys_1.0.dll_fstat
test eax, eax
js 0x40e5b3
mov ebx, dword [ebp - 0x104]
cmp ebx, 0x100000
jg 0x40e515
lea edi, [ebp - 0x28]
mov dword [esp], edi
call fcn.0040cfb0
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.0040d0a0
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], ebx
mov dword [esp], sub.msys_1.0.dll_read
mov dword [esp + 4], eax
call fcn.00413330
cmp eax, ebx
jne 0x40e52d
xor ebx, ebx
cmp eax, 0x20
ja 0x40e277
jmp 0x40e59e
inc ebx
cmp ebx, 0x20
ja 0x40e2bd
mov dword [esp], edi
call fcn.0040c3d0
movsx edx, byte [ebx + str.SSH_PRIVATE_KEY_FILE_FORMAT_1.1_n]
cmp eax, edx
je 0x40e271
mov dword [esp], str.Not_a_RSA1_key_file__.200s.
mov ecx, dword [ebp + 0xc]
mov dword [esp + 4], ecx
call fcn.0040a790
mov dword [esp], edi
call fcn.0040cff0
mov edi, dword [ebp + 8]
mov dword [esp], edi
call sub.msys_1.0.dll_close
xor eax, eax
add esp, 0x12c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
call fcn.0040c3d0
mov dword [esp], edi
mov esi, eax
call fcn.0040bf00
mov dword [esp], edi
call fcn.0040bf00
mov dword [esp], 0
call fcn.004067c0
mov dword [ebp - 0x11c], eax
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 0x10]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.004130c0
mov edx, dword [ebp - 0x11c]
mov ebx, dword [edx + 8]
mov ecx, dword [ebx + 0x14]
mov dword [esp], edi
mov dword [esp + 4], ecx
call fcn.004130c0
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40e583
mov dword [esp], edi
xor eax, eax
mov dword [esp + 4], eax
call fcn.0040c160
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
mov dword [esp], esi
call fcn.00413680
test eax, eax
mov ebx, eax
je 0x40e5f4
lea esi, [ebp - 0x38]
mov dword [esp], esi
call fcn.0040cfb0
mov dword [esp], edi
call fcn.0040d250
mov dword [esp + 4], eax
lea edx, [ebp - 0x38]
mov dword [esp], edx
call fcn.0040d0a0
mov dword [ebp - 0x120], eax
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov dword [esp + 4], ebx
lea ebx, [ebp - 0xd8]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.00413b20
mov dword [esp], edi
call fcn.0040d250
mov dword [esp], edi
mov esi, eax
call fcn.0040d420
mov dword [esp + 0xc], esi
mov esi, dword [ebp - 0x120]
mov dword [esp + 8], eax
mov dword [esp], ebx
mov dword [esp + 4], esi
lea esi, [ebp - 0x38]
call fcn.00413a80
mov dword [esp], ebx
call fcn.00413af0
mov dword [esp], ebx
xor ecx, ecx
mov edx, 0x94
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
call sub.msys_1.0.dll_memset
mov dword [esp], edi
call fcn.0040cff0
lea eax, [ebp - 0x38]
mov dword [esp], eax
call fcn.0040c3d0
mov dword [esp], esi
mov edi, eax
call fcn.0040c3d0
lea edx, [ebp - 0x38]
mov esi, eax
mov dword [esp], edx
call fcn.0040c3d0
cmp eax, edi
je 0x40e44f
mov ebx, dword [ebp + 0x10]
cmp byte [ebx], 0
jne 0x40e56b
lea ecx, [ebp - 0x38]
mov dword [esp], ecx
call fcn.0040cff0
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x40e431
mov edx, dword [ebp + 0x14]
mov edi, dword [edx]
mov dword [esp], edi
call fcn.0040ced0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msys_1.0.dll_close
mov ebx, dword [ebp - 0x11c]
mov dword [esp], ebx
call fcn.004067f0
jmp 0x40e2b0
lea edi, [ebp - 0x38]
mov dword [esp], edi
call fcn.0040c3d0
cmp eax, esi
jne 0x40e406
mov ebx, dword [ebp - 0x11c]
lea esi, [ebp - 0x38]
mov edi, dword [ebx + 8]
mov edx, dword [edi + 0x18]
lea edi, [ebp - 0x38]
mov dword [esp], esi
mov dword [esp + 4], edx
call fcn.004130c0
mov ecx, dword [ebp - 0x11c]
mov eax, dword [ecx + 8]
mov ebx, dword [eax + 0x2c]
mov dword [esp], edi
mov dword [esp + 4], ebx
call fcn.004130c0
mov edx, dword [ebp - 0x11c]
lea eax, [ebp - 0x38]
mov esi, dword [edx + 8]
mov ecx, dword [esi + 0x20]
lea esi, [ebp - 0x38]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004130c0
mov ebx, dword [ebp - 0x11c]
mov edi, dword [ebx + 8]
lea ebx, [ebp - 0x38]
mov edx, dword [edi + 0x1c]
xor edi, edi
mov dword [esp], esi
mov dword [esp + 4], edx
call fcn.004130c0
mov ecx, dword [ebp - 0x11c]
mov eax, dword [ecx + 8]
mov dword [esp], eax
call fcn.00411a20
mov dword [esp], ebx
call fcn.0040cff0
mov dword [esp + 4], edi
mov edx, dword [ebp - 0x11c]
mov esi, dword [edx + 8]
mov dword [esp], esi
call sub.msys_crypto_1.0.0.dll_RSA_blinding_on
dec eax
je 0x40e5de
mov dword [esp], str.key_load_private_rsa1:_RSA_blinding_on_failed
call fcn.0040a680
jmp 0x40e41d
mov dword [esp], str.key_file__.200s_too_large
mov esi, dword [ebp + 0xc]
mov dword [esp + 4], esi
call fcn.0040a680
jmp 0x40e2a5
call sub.msys_1.0.dll___errno
mov ecx, dword [eax]
mov dword [esp], ecx
call sub.msys_1.0.dll_strerror
mov dword [esp + 8], eax
mov edx, dword [ebp + 0xc]
mov dword [esp], str.Read_from_key_file__.200s_failed:__.100s
mov dword [esp + 4], edx
call fcn.0040a730
mov dword [esp], edi
call fcn.0040cff0
mov esi, dword [ebp + 8]
mov dword [esp], esi
call sub.msys_1.0.dll_close
jmp 0x40e2b0
mov dword [esp], str.Bad_passphrase_supplied_for_key_file__.200s.
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
call fcn.0040a730
jmp 0x40e412
mov dword [esp], edi
xor ecx, ecx
mov dword [esp + 4], ecx
call fcn.0040c160
mov dword [esp], eax
call fcn.0040ced0
jmp 0x40e331
mov dword [esp], str.Not_a_RSA1_key_file__.200s.
mov ebx, dword [ebp + 0xc]
mov dword [esp + 4], ebx
call fcn.0040a790
jmp 0x40e553
call sub.msys_1.0.dll___errno
mov ebx, dword [eax]
mov dword [esp], ebx
call sub.msys_1.0.dll_strerror
mov dword [esp + 8], eax
mov ecx, dword [ebp + 0xc]
mov dword [esp], str.fstat_for_key_file__.200s_failed:__.100s
mov dword [esp + 4], ecx
call fcn.0040a680
jmp 0x40e2a5
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msys_1.0.dll_close
mov eax, dword [ebp - 0x11c]
jmp 0x40e2b2
mov dword [esp + 4], esi
mov ebx, dword [ebp + 0xc]
mov dword [esp], str.Unsupported_cipher__d_used_in_key_file__.200s.
mov dword [esp + 8], ebx
call fcn.0040a730
mov dword [esp], edi
jmp 0x40e418