Function at 0x4020b0
Capabilities:
Get file attributes
Terminate process

Disassembly:
push ebp
mov eax, 0x409c
mov ebp, esp
push edi
push esi
push ebx
call fcn.00418d04
mov ebx, dword [0x42302c]
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x405c], ecx
xor edi, edi
xor eax, eax
mov dword [ebp - 0x4070], edx
mov esi, 1
test ebx, ebx
mov dword [ebp - 0x4074], edi
sete al
test ebx, ebx
mov dword [ebp - 0x4080], eax
mov eax, dword [0x423030]
setne cl
mov dword [ebp - 0x4078], esi
movzx edx, cl
test eax, eax
mov dword [ebp - 0x407c], edx
je 0x40236b
mov dword [esp], 0x423d7c
lea edi, [ebp - 0x4058]
mov dword [esp + 4], edi
call sub.msys_1.0.dll_stat
test eax, eax
js 0x4025dd
mov dword [esp], 0x423d7c
lea edx, [ebp - 0x405c]
mov dword [esp + 4], edx
call fcn.0040eb10
test eax, eax
mov esi, eax
jne 0x402524
mov eax, dword [ebp - 0x405c]
test eax, eax
jne 0x402384
mov dword [esp], 0x423d7c
mov edi, 0x41bc0e
mov dword [esp + 4], edi
lea edi, [ebp - 0x4018]
call sub.msys_1.0.dll_fopen
mov dword [ebp - 0x4068], eax
test eax, eax
je 0x402221
lea esi, [esi]
lea edi, [edi]
mov dword [esp], edi
mov eax, dword [ebp - 0x4068]
mov edx, 0x4000
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call sub.msys_1.0.dll_fgets
test eax, eax
je 0x402205
mov dword [esp], edi
mov edx, 0xa
mov dword [esp + 4], edx
call sub.msys_1.0.dll_strchr
mov dword [ebp - 0x4064], eax
test eax, eax
je 0x402336
inc dword [ebp - 0x4074]
mov ebx, dword [ebp - 0x4070]
test ebx, ebx
je 0x402242
mov dword [esp], edi
xor eax, eax
mov edx, 0x4000
mov dword [ebp - 0x4070], eax
mov eax, dword [ebp - 0x4068]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call sub.msys_1.0.dll_fgets
test eax, eax
jne 0x4021af
mov esi, dword [ebp - 0x4068]
mov dword [esp], esi
call sub.msys_1.0.dll_fclose
mov edi, dword [ebp - 0x4078]
test edi, edi
je 0x4025d1
mov dword [esp], str._s_is_not_a_public_key_file._n
mov ecx, 0x423d7c
mov dword [esp + 4], ecx
call sub.msys_1.0.dll_printf
mov dword [esp], 1
call sub.msys_1.0.dll_exit
mov byte [eax], 0
mov ebx, edi
movzx ecx, byte [ebp - 0x4018]
mov dword [ebp - 0x4064], edi
cmp cl, 0x20
sete dl
cmp cl, 9
sete al
or eax, edx
test al, 1
je 0x40228f
lea ecx, [ebp - 0x4017]
lea esi, [esi]
mov dword [ebp - 0x4064], ecx
mov ebx, ecx
lea ecx, [ecx + 1]
movzx eax, byte [ecx - 1]
cmp al, 0x20
sete dl
cmp al, 9
sete al
or eax, edx
test al, 1
jne 0x402270
movzx ecx, byte [ebx]
test cl, cl
sete al
cmp cl, 0xa
sete dl
or eax, edx
test al, 1
jne 0x402190
cmp cl, 0x23
je 0x402190
mov dword [esp], ebx
mov ecx, 0xa
lea esi, [ebp - 0x4060]
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
call sub.msys_1.0.dll_strtol
test eax, eax
je 0x4022dd
mov eax, dword [ebp - 0x4060]
test eax, eax
jne 0x402419
mov ecx, dword [ebp - 0x4064]
xor ebx, ebx
mov dword [ebp - 0x405c], ecx
movzx edx, byte [ecx]
test dl, dl
jne 0x402315
jmp 0x402190
cmp byte [ecx], 0x22
je 0x402361
mov esi, ecx
inc ecx
mov dword [ebp - 0x4064], ecx
movzx edx, byte [esi + 1]
test dl, dl
je 0x402190
test ebx, ebx
jne 0x402328
cmp dl, 0x20
setne al
cmp dl, 9
setne dl
movzx esi, dl
test esi, eax
je 0x402399
cmp byte [ecx], 0x5c
jne 0x4022f7
cmp byte [ecx + 1], 0x22
jne 0x4022f7
inc ecx
jmp 0x4022fc
mov dword [esp + 8], edi
mov esi, dword [ebp - 0x4074]
mov dword [esp], str.line__d_too_long:__.40s...
inc esi
mov dword [esp + 4], esi
call fcn.0040a680
mov ecx, 1
mov dword [ebp - 0x4070], ecx
jmp 0x402190
test ebx, ebx
sete al
movzx ebx, al
jmp 0x4022fc
mov ebx, dword [ebp + 8]
mov esi, str.Enter_file_in_which_the_key_is
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.00401040
jmp 0x402111
mov dword [esp], eax
call fcn.0040ced0
xor eax, eax
mov dword [ebp - 0x405c], eax
jmp 0x40215d
cmp byte [ecx], 0
je 0x402190
mov byte [ecx], 0
mov eax, dword [ebp - 0x4064]
inc eax
mov dword [ebp - 0x4064], eax
mov dword [ebp - 0x4060], eax
lea ebx, [ebp - 0x4064]
mov dword [esp], 0
call fcn.00406580
mov dword [esp], eax
mov esi, eax
mov dword [esp + 4], ebx
call fcn.00407300
dec eax
je 0x40243e
mov dword [esp], esi
mov ecx, dword [ebp - 0x4060]
mov dword [ebp - 0x4064], ecx
call fcn.004067f0
mov dword [esp], 5
call fcn.00406580
mov dword [esp], eax
mov esi, eax
mov dword [esp + 4], ebx
call fcn.00407300
dec eax
je 0x40243e
mov dword [esp], esi
call fcn.004067f0
jmp 0x402190
movzx ecx, byte [eax]
cmp cl, 0x20
setne bl
cmp cl, 9
setne dl
movzx eax, dl
test eax, ebx
jne 0x4022dd
mov eax, dword [ebp - 0x4064]
jmp 0x4023b2
mov eax, dword [ebp - 0x4064]
cmp byte [eax], 0
jne 0x40244f
mov eax, dword [ebp - 0x405c]
mov dword [ebp - 0x405c], eax
mov ecx, dword [ebp - 0x4080]
mov ebx, dword [ebp - 0x407c]
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
call fcn.00407190
mov dword [ebp - 0x4084], eax
mov edx, 1
mov eax, 2
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp], esi
call fcn.00407190
mov dword [ebp - 0x4088], eax
mov dword [esp], esi
call fcn.00407a40
mov dword [esp], esi
mov ebx, eax
call fcn.00407ae0
mov dword [esp + 0x10], ebx
mov edx, dword [ebp - 0x405c]
test edx, edx
jne 0x4024bc
mov edx, str.no_comment
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x4084]
mov dword [esp + 4], eax
mov dword [esp], str._u__s__s___s__n
mov dword [esp + 8], edx
call sub.msys_1.0.dll_printf
cmp dword [section..data], 3
jg 0x402514
mov ebx, dword [ebp - 0x4088]
mov dword [esp], ebx
call fcn.0040ced0
mov ecx, dword [ebp - 0x4084]
mov dword [esp], ecx
call fcn.0040ced0
mov dword [esp], esi
xor esi, esi
call fcn.004067f0
mov dword [ebp - 0x4078], esi
jmp 0x402190
mov eax, dword [ebp - 0x4088]
mov dword [esp], eax
call sub.msys_1.0.dll_puts
jmp 0x4024e3
mov dword [esp], eax
mov ecx, dword [ebp - 0x407c]
mov edi, 2
mov edx, dword [ebp - 0x4080]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call fcn.00407190
mov dword [ebp - 0x406c], eax
mov eax, 1
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00407190
mov dword [esp], esi
mov edi, eax
call fcn.00407a40
mov dword [esp], esi
mov ebx, eax
call fcn.00407ae0
mov dword [esp + 0x10], ebx
mov ecx, dword [ebp - 0x406c]
mov ebx, dword [ebp - 0x405c]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp], str._u__s__s___s__n
call sub.msys_1.0.dll_printf
cmp dword [section..data], 3
jg 0x4025ee
mov dword [esp], esi
call fcn.004067f0
mov ebx, dword [ebp - 0x405c]
mov dword [esp], ebx
call fcn.0040ced0
mov dword [esp], edi
call fcn.0040ced0
mov esi, dword [ebp - 0x406c]
mov dword [esp], esi
call fcn.0040ced0
mov dword [esp], 0
call sub.msys_1.0.dll_exit
mov dword [esp], 0x423d7c
call sub.msys_1.0.dll_perror
jmp 0x402236
mov dword [esp], edi
call sub.msys_1.0.dll_puts
jmp 0x4025a5