Function at 0x4a4bf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push 0x4e9a18
push dword [ebp + 0x1c]
xor esi, esi
call fcn.004c691d
mov edi, eax
add esp, 8
test edi, edi
jne 0x4a4c28
push str.Unable_to_open_public_key_file
push 0xfffffffffffffff0
push dword [ebp + 8]
call fcn.004b2a70
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edi
call fcn.004c80d9
add esp, 4
test eax, eax
jne 0x4a4c64
push edi
push 1
lea eax, [ebp - 1]
push 1
push eax
call fcn.004c0107
add esp, 0x10
cmp eax, 1
jne 0x4a4c64
mov al, byte [ebp - 1]
cmp al, 0xd
je 0x4a4c64
cmp al, 0xa
je 0x4a4c64
push edi
inc esi
call fcn.004c80d9
add esp, 4
test eax, eax
je 0x4a4c35
push edi
call fcn.004c81eb
add esp, 4
cmp esi, 1
ja 0x4a4c90
push edi
call fcn.00436a6c
push str.Invalid_data_in_public_key_file
push 0xfffffffffffffff0
push dword [ebp + 8]
call fcn.004b2a70
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 0x4a4cc2
call fcn.00436a6c
push str.Unable_to_allocate_memory_for_public_key_data
push 0xfffffffffffffffa
push ebx
call fcn.004b2a70
add esp, 0x10
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
push 1
push eax
call fcn.004c0107
add esp, 0x10
cmp eax, esi
je 0x4a4cf8
mov eax, dword [ebx + 0xc]
push ebx
push dword [ebp - 8]
call eax
push edi
call fcn.00436a6c
push str.Unable_to_read_public_key_from_file
push 0xfffffffffffffff0
push ebx
call fcn.004b2a70
add esp, 0x18
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edi
call fcn.00436a6c
mov edi, dword [ebp - 8]
add esp, 4
movzx eax, byte [edi + esi - 1]
push eax
call fcn.004c7f80
add esp, 4
test eax, eax
je 0x4a4d39
sub esi, 1
jne 0x4a4d04
mov eax, dword [ebx + 0xc]
push ebx
push edi
call eax
push str.Missing_public_key_data
push 0xfffffffffffffff0
push ebx
call fcn.004b2a70
add esp, 0x14
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
push 0x20
push edi
call fcn.004d1160
mov edx, eax
add esp, 0xc
test edx, edx
jne 0x4a4d69
mov eax, dword [ebx + 0xc]
push ebx
push edi
call eax
push str.Invalid_public_key_data
push 0xfffffffffffffff0
push ebx
call fcn.004b2a70
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.004d1160
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0x4a4d93
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.004b2680
add esp, 0x14
test eax, eax
je 0x4a4dcd
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.004b2a70
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