Function at 0x5138b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push eax
push str.Loading_public_key_file:__s
push 8
push ebx
xor esi, esi
call fcn.0040ce50
push 0x55b68c
push eax
call fcn.0053b9f2
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x5138fa
push str.Unable_to_open_public_key_file
push 0xfffffffffffffff0
push ebx
call fcn.005222b0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.00540878
add esp, 4
test eax, eax
jne 0x513936
push edi
push 1
lea eax, [ebp - 1]
push 1
push eax
call fcn.0053b169
add esp, 0x10
cmp eax, 1
jne 0x513936
mov al, byte [ebp - 1]
cmp al, 0xd
je 0x513936
cmp al, 0xa
je 0x513936
push edi
inc esi
call fcn.00540878
add esp, 4
test eax, eax
je 0x513907
push edi
call fcn.00542fab
add esp, 4
cmp esi, 1
ja 0x513961
push edi
call fcn.0053b501
push str.Invalid_data_in_public_key_file
push 0xfffffffffffffff0
push ebx
call fcn.005222b0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 4]
push ebx
push esi
call eax
add esp, 8
mov dword [ebp - 8], eax
push edi
test eax, eax
jne 0x51398f
call fcn.0053b501
push str.Unable_to_allocate_memory_for_public_key_data
push 0xfffffffffffffffa
push ebx
call fcn.005222b0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 1
push eax
call fcn.0053b169
add esp, 0x10
cmp eax, esi
je 0x5139c5
mov eax, dword [ebx + 0xc]
push ebx
push dword [ebp - 8]
call eax
push edi
call fcn.0053b501
push str.Unable_to_read_public_key_from_file
push 0xfffffffffffffff0
push ebx
call fcn.005222b0
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.0053b501
mov edi, dword [ebp - 8]
add esp, 4
movzx eax, byte [edi + esi - 1]
push eax
call fcn.00540c70
add esp, 4
test eax, eax
je 0x5139ea
sub esi, 1
jne 0x5139d1
jmp 0x5139ee
test esi, esi
jne 0x513a0c
mov eax, dword [ebx + 0xc]
push ebx
push edi
call eax
push str.Missing_public_key_data
push 0xfffffffffffffff0
push ebx
call fcn.005222b0
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0x20
push edi
call fcn.00530cd0
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0x513a3c
mov eax, dword [ebx + 0xc]
push ebx
push edi
call eax
push str.Invalid_public_key_data
push 0xfffffffffffffff0
push ebx
call fcn.005222b0
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
inc ecx
mov dword [ebp - 8], ecx
cmp ecx, edi
jbe 0x513a4b
mov edx, ecx
sub edx, edi
dec edx
jmp 0x513a4d
xor edx, edx
mov eax, esi
sub eax, edx
push eax
push 0x20
push ecx
call fcn.00530cd0
add esp, 0xc
test eax, eax
jne 0x513a64
lea eax, [esi + edi]
mov esi, dword [ebp - 8]
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.00522980
add esp, 0x14
test eax, eax
je 0x513a9e
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.005222b0
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
sub esi, edi
mov ecx, dword [ebp + 0x14]
dec esi
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
pop edi
mov dword [eax], esi
mov eax, dword [ebp - 0xc]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x10]
pop esi
pop ebx
mov dword [ecx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret