Function at 0x47479e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
xor eax, eax
dec eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
test ebx, ebx
je 0x4748ce
mov esi, 0x5a
cmp dword [ebp + 0x10], 0
je 0x474a28
cmp dword [ebp + 0x14], 0
je 0x474a28
push 8
push str.sha256__
push ebx
call fcn.0065e560
add esp, 0xc
test eax, eax
je 0x4748d5
push 0x6768b6
push ebx
call fcn.00659cc5
add esp, 8
test eax, eax
je 0x474a28
mov edi, eax
push 2
push 0
push eax
call fcn.0065c150
add esp, 0xc
mov esi, 0x5a
xor ebx, ebx
test eax, eax
jne 0x474a02
push edi
call fcn.0065c427
add esp, 4
mov ebx, eax
xor eax, eax
push eax
push eax
push edi
call fcn.0065c150
add esp, 0xc
cmp ebx, 0x100000
ja 0x474a00
test eax, eax
jne 0x474a00
push 0
push ebx
call fcn.00474da0
add esp, 8
cmp eax, dword [ebp + 0x14]
jb 0x474a00
mov dword [ebp - 0x24], eax
inc eax
push eax
call dword [0x700018]
add esp, 4
test eax, eax
je 0x474a00
mov ebx, eax
push edi
push 1
push dword [ebp - 0x24]
push eax
call fcn.0065bf40
add esp, 0x10
cmp eax, 1
jne 0x474a02
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x24]
cmp ecx, eax
jne 0x474a56
push eax
push ebx
push dword [ebp + 0x10]
call fcn.006443bd
add esp, 0xc
test eax, eax
mov esi, 0x5a
cmove esi, eax
jmp 0x474a02
xor esi, esi
jmp 0x474a28
mov eax, dword [0x700070]
cmp dword [eax + 0x5c], 0
je 0x474a28
push 0x20
call dword [0x700018]
add esp, 4
mov esi, 0x1b
test eax, eax
je 0x474a28
mov edi, eax
mov eax, dword [0x700070]
push 0x20
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [eax + 0x5c]
add esp, 0x10
mov esi, eax
test eax, eax
jne 0x474a28
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x20]
push eax
push ecx
push 0x20
push edi
push dword [ebp + 8]
call fcn.0044c668
add esp, 0x14
mov esi, eax
push edi
call dword [0x70001c]
add esp, 4
test esi, esi
jne 0x474a28
push dword [ebp - 0x20]
push str._t_public_key_hash:_sha256___s_n
push dword [ebp + 8]
call fcn.0046235f
add esp, 0xc
push ebx
call fcn.0065e4d0
add esp, 4
mov esi, eax
inc esi
push esi
call dword [0x700018]
add esp, 4
test eax, eax
je 0x474a3c
mov edi, eax
push esi
push ebx
push eax
call fcn.006452d0
add esp, 0xc
mov dword [ebp - 0x24], edi
mov ebx, edi
push str._sha256__
push ebx
call fcn.006461a0
add esp, 8
mov esi, eax
test eax, eax
je 0x4749a0
mov byte [esi], 0
mov edi, dword [ebp - 0x1c]
add ebx, 8
push ebx
call fcn.0065e4d0
add esp, 4
cmp edi, eax
jne 0x4749d4
mov eax, dword [ebp - 0x20]
push edi
mov edi, eax
push ebx
push eax
call fcn.006443bd
add esp, 0xc
test esi, esi
je 0x474b5c
test eax, eax
jne 0x4749d8
jmp 0x474b5c
test esi, esi
je 0x4749f3
mov byte [esi], 0x3b
push str.sha256__
push esi
call fcn.006461a0
add esp, 8
test eax, eax
je 0x4749f3
mov ebx, eax
test esi, esi
jne 0x474989
mov esi, 0x5a
mov edi, dword [ebp - 0x20]
jmp 0x474b66
xor ebx, ebx
push ebx
call dword [0x70001c]
add esp, 4
push dword [ebp - 0x14]
call dword [0x70001c]
add esp, 4
mov dword [ebp - 0x14], 0
push edi
call fcn.0065b560
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064180a
mov eax, esi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [ebp - 0x20]
call dword [0x70001c]
add esp, 4
mov dword [ebp - 0x20], 0
mov esi, 0x1b
jmp 0x474a28
mov byte [ebx + ecx], 0
push str._____BEGIN_PUBLIC_KEY_____
push ebx
call fcn.006461a0
add esp, 8
test eax, eax
je 0x474a02
mov ecx, eax
sub ecx, ebx
je 0x474a79
cmp byte [ecx + ebx - 1], 0xa
jne 0x474a02
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
lea eax, [ebx + ecx]
add eax, 0x1a
push str._n_____END_PUBLIC_KEY_____
push eax
call fcn.006461a0
add esp, 8
test eax, eax
je 0x474a02
mov ecx, eax
mov eax, dword [ebp - 0x28]
add eax, ebx
neg eax
mov dword [ebp - 0x30], ecx
add eax, ecx
add eax, 0xffffffe7
push eax
call dword [0x700018]
add esp, 4
mov dword [ebp - 0x34], eax
test eax, eax
je 0x474a02
mov eax, dword [ebp - 0x28]
add eax, 0x1a
mov ecx, dword [ebp - 0x30]
sub ecx, ebx
mov dword [ebp - 0x28], 0
cmp eax, ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x30]
jae 0x474b13
add edx, 0x1a
mov dword [ebp - 0x28], 0
mov cl, byte [edx]
cmp cl, 0xa
je 0x474b0e
cmp cl, 0xd
je 0x474b0e
mov eax, dword [ebp - 0x34]
mov byte [ebp - 0x29], cl
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x24], edx
mov dl, byte [ebp - 0x29]
mov byte [eax + ecx], dl
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x30]
inc dword [ebp - 0x28]
inc edx
cmp eax, edx
jne 0x474ae7
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x28]
mov byte [edx + eax], 0
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
push ecx
push edx
call fcn.0044c4d4
add esp, 0xc
mov dword [ebp - 0x24], eax
push dword [ebp - 0x34]
call dword [0x70001c]
add esp, 4
cmp dword [ebp - 0x24], 0
jne 0x474a02
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 0x18], eax
jne 0x474a02
push eax
push dword [ebp - 0x14]
jmp 0x4748b4
test eax, eax
mov esi, 0x5a
cmove esi, eax
push edi
call dword [0x70001c]
add esp, 4
mov dword [ebp - 0x20], 0
push dword [ebp - 0x24]
call dword [0x70001c]
jmp 0x474a25