Function at 0x4a9190
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push 0x4eda18
push dword [ebp + 0x1c]
xor esi, esi
call fcn.004caeed
mov edi, eax
add esp, 8
test edi, edi
jne 0x4a91c8
push str.Unable_to_open_public_key_file
push 0xfffffffffffffff0
push dword [ebp + 8]
call fcn.004b7010
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edi
call fcn.004cc6a9
add esp, 4
test eax, eax
jne 0x4a9204
push edi
push 1
lea eax, [ebp - 1]
push 1
push eax
call fcn.004c46d7
add esp, 0x10
cmp eax, 1
jne 0x4a9204
mov al, byte [ebp - 1]
cmp al, 0xd
je 0x4a9204
cmp al, 0xa
je 0x4a9204
push edi
inc esi
call fcn.004cc6a9
add esp, 4
test eax, eax
je 0x4a91d5
push edi
call fcn.004cc7bb
add esp, 4
cmp esi, 1
ja 0x4a9230
push edi
call fcn.0043aa6c
push str.Invalid_data_in_public_key_file
push 0xfffffffffffffff0
push dword [ebp + 8]
call fcn.004b7010
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 8]
push ebx
push esi
mov eax, dword [ebx + 4]
call eax
add esp, 8
mov dword [ebp - 8], eax
push edi
test eax, eax
jne 0x4a9262
call fcn.0043aa6c
push str.Unable_to_allocate_memory_for_public_key_data
push 0xfffffffffffffffa
push ebx
call fcn.004b7010
add esp, 0x10
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
push 1
push eax
call fcn.004c46d7
add esp, 0x10
cmp eax, esi
je 0x4a9298
mov eax, dword [ebx + 0xc]
push ebx
push dword [ebp - 8]
call eax
push edi
call fcn.0043aa6c
push str.Unable_to_read_public_key_from_file
push 0xfffffffffffffff0
push ebx
call fcn.004b7010
add esp, 0x18
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edi
call fcn.0043aa6c
mov edi, dword [ebp - 8]
add esp, 4
movzx eax, byte [edi + esi - 1]
push eax
call fcn.004cc550
add esp, 4
test eax, eax
je 0x4a92d9
sub esi, 1
jne 0x4a92a4
mov eax, dword [ebx + 0xc]
push ebx
push edi
call eax
push str.Missing_public_key_data
push 0xfffffffffffffff0
push ebx
call fcn.004b7010
add esp, 0x14
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
push 0x20
push edi
call fcn.004d5730
mov edx, eax
add esp, 0xc
test edx, edx
jne 0x4a9309
mov eax, dword [ebx + 0xc]
push ebx
push edi
call eax
push str.Invalid_public_key_data
push 0xfffffffffffffff0
push ebx
call fcn.004b7010
add esp, 0x14
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
inc edx
mov eax, edx
mov dword [ebp - 8], edx
sub eax, edi
cmp edi, edx
mov dword [ebp - 0xc], eax
sbb ecx, ecx
and ecx, eax
mov eax, esi
sub eax, ecx
push eax
push 0x20
push edx
call fcn.004d5730
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0x4a9333
lea ecx, [esi + edi]
mov eax, dword [ebp - 8]
sub ecx, eax
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.004b6c20
add esp, 0x14
test eax, eax
je 0x4a936d
mov eax, dword [ebx + 0xc]
push ebx
push edi
call eax
push str.Invalid_key_data__not_base64_encoded
push 0xfffffffffffffff0
push ebx
call fcn.004b7010
add esp, 0x14
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
dec ecx
pop ebx
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
pop edi
pop esi
mov dword [eax], ecx
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x14]
mov dword [ecx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret