Function at 0x479730
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push 0x4be3cc
push dword [ebp + 0x1c]
xor esi, esi
call fcn.00473ced
mov edi, eax
add esp, 8
test edi, edi
jne 0x479768
push str.Unable_to_open_public_key_file
push 0xfffffffffffffff0
push dword [ebp + 8]
call fcn.0049aeb0
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edi
call fcn.004a0f85
add esp, 4
test eax, eax
jne 0x4797a4
push edi
push 1
lea eax, [ebp - 1]
push 1
push eax
call fcn.00428a63
add esp, 0x10
cmp eax, 1
jne 0x4797a4
mov al, byte [ebp - 1]
cmp al, 0xd
je 0x4797a4
cmp al, 0xa
je 0x4797a4
push edi
inc esi
call fcn.004a0f85
add esp, 4
test eax, eax
je 0x479775
push edi
call fcn.004a0fb1
add esp, 4
cmp esi, 1
ja 0x4797d0
push edi
call fcn.00429d5d
push str.Invalid_data_in_public_key_file
push 0xfffffffffffffff0
push dword [ebp + 8]
call fcn.0049aeb0
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 0x479802
call fcn.00429d5d
push str.Unable_to_allocate_memory_for_public_key_data
push 0xfffffffffffffffa
push ebx
call fcn.0049aeb0
add esp, 0x10
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
push 1
push eax
call fcn.00428a63
add esp, 0x10
cmp eax, esi
je 0x479838
mov eax, dword [ebx + 0xc]
push ebx
push dword [ebp - 8]
call eax
push edi
call fcn.00429d5d
push str.Unable_to_read_public_key_from_file
push 0xfffffffffffffff0
push ebx
call fcn.0049aeb0
add esp, 0x18
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edi
call fcn.00429d5d
mov edi, dword [ebp - 8]
add esp, 4
movzx eax, byte [edi + esi - 1]
push eax
call fcn.004672c0
add esp, 4
test eax, eax
je 0x479879
sub esi, 1
jne 0x479844
mov eax, dword [ebx + 0xc]
push ebx
push edi
call eax
push str.Missing_public_key_data
push 0xfffffffffffffff0
push ebx
call fcn.0049aeb0
add esp, 0x14
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
push 0x20
push edi
call fcn.00496910
mov edx, eax
add esp, 0xc
test edx, edx
jne 0x4798a9
mov eax, dword [ebx + 0xc]
push ebx
push edi
call eax
push str.Invalid_public_key_data
push 0xfffffffffffffff0
push ebx
call fcn.0049aeb0
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.00496910
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0x4798d3
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.0049afc0
add esp, 0x14
test eax, eax
je 0x47990d
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.0049aeb0
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