Function at 0x49f320
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push 0x4ffc70
push dword [ebp + 0x1c]
xor esi, esi
call fcn.0049a37d
mov edi, eax
add esp, 8
test edi, edi
jne 0x49f358
push str.Unable_to_open_public_key_file
push 0xfffffffffffffff0
push dword [ebp + 8]
call fcn.004ca710
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edi
call fcn.004d07e5
add esp, 4
test eax, eax
jne 0x49f394
push edi
push 1
lea eax, [ebp - 1]
push 1
push eax
call fcn.0042702b
add esp, 0x10
cmp eax, 1
jne 0x49f394
mov al, byte [ebp - 1]
cmp al, 0xd
je 0x49f394
cmp al, 0xa
je 0x49f394
push edi
inc esi
call fcn.004d07e5
add esp, 4
test eax, eax
je 0x49f365
push edi
call fcn.004d0811
add esp, 4
cmp esi, 1
ja 0x49f3c0
push edi
call fcn.0042832d
push str.Invalid_data_in_public_key_file
push 0xfffffffffffffff0
push dword [ebp + 8]
call fcn.004ca710
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 0x49f3f2
call fcn.0042832d
push str.Unable_to_allocate_memory_for_public_key_data
push 0xfffffffffffffffa
push ebx
call fcn.004ca710
add esp, 0x10
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
push 1
push eax
call fcn.0042702b
add esp, 0x10
cmp eax, esi
je 0x49f428
mov eax, dword [ebx + 0xc]
push ebx
push dword [ebp - 8]
call eax
push edi
call fcn.0042832d
push str.Unable_to_read_public_key_from_file
push 0xfffffffffffffff0
push ebx
call fcn.004ca710
add esp, 0x18
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edi
call fcn.0042832d
mov edi, dword [ebp - 8]
add esp, 4
movzx eax, byte [edi + esi - 1]
push eax
call fcn.0042dc00
add esp, 4
test eax, eax
je 0x49f469
sub esi, 1
jne 0x49f434
mov eax, dword [ebx + 0xc]
push ebx
push edi
call eax
push str.Missing_public_key_data
push 0xfffffffffffffff0
push ebx
call fcn.004ca710
add esp, 0x14
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
push 0x20
push edi
call fcn.0043f2a0
mov edx, eax
add esp, 0xc
test edx, edx
jne 0x49f499
mov eax, dword [ebx + 0xc]
push ebx
push edi
call eax
push str.Invalid_public_key_data
push 0xfffffffffffffff0
push ebx
call fcn.004ca710
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.0043f2a0
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0x49f4c3
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.004ca820
add esp, 0x14
test eax, eax
je 0x49f4fd
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.004ca710
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