Function at 0x51b580
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 [0x7a9040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
test ebx, ebx
je 0x51b67d
cmp dword [ebp + 0x10], 0
sete al
cmp dword [ebp + 0x14], 0
sete cl
mov esi, 0x5a
or cl, al
jne 0x51b67f
push 8
push str.sha256__
push ebx
call fcn.0066e620
add esp, 0xc
test eax, eax
je 0x51b693
push 0x739d32
push ebx
call fcn.004e6e50
add esp, 8
test eax, eax
je 0x51b67f
mov edi, eax
mov dword [ebp - 0x18], 0xffffffff
push 2
push 0
push eax
call fcn.0066c070
add esp, 0xc
xor ebx, ebx
test eax, eax
jne 0x51b644
push edi
call fcn.0066c393
add esp, 4
mov ebx, eax
xor eax, eax
push eax
push eax
push edi
call fcn.0066c070
add esp, 0xc
cmp ebx, 0x100000
ja 0x51b642
test eax, eax
jne 0x51b642
push 0
push ebx
call fcn.0051ed40
add esp, 8
cmp eax, dword [ebp + 0x14]
jae 0x51b6f7
xor ebx, ebx
mov ecx, dword [fcn.005464a0]
call dword [0x7a29f4]
push ebx
call ecx
add esp, 4
mov ecx, dword [fcn.005464a0]
mov ebx, dword [ebp - 0x14]
call dword [0x7a29f4]
push ebx
call ecx
add esp, 4
mov dword [ebp - 0x14], 0
push edi
call fcn.0066b31a
add esp, 4
jmp 0x51b67f
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00650d60
mov eax, esi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [0x7aa3f4]
cmp dword [ecx + 0x5c], eax
je 0x51b67f
mov ecx, dword [fcn.00546590]
call dword [0x7a29f4]
push 0x20
call ecx
add esp, 4
mov esi, 0x1b
test eax, eax
je 0x51b67f
mov edi, eax
mov eax, dword [0x7aa3f4]
mov ecx, dword [eax + 0x5c]
call dword [0x7a29f4]
push 0x20
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call ecx
add esp, 0x10
test eax, eax
je 0x51b756
mov esi, eax
mov ecx, dword [fcn.005464a0]
call dword [0x7a29f4]
push edi
call ecx
jmp 0x51b678
mov ecx, dword [fcn.00546590]
mov dword [ebp - 0x20], eax
lea ebx, [eax + 1]
call dword [0x7a29f4]
push ebx
call ecx
add esp, 4
test eax, eax
je 0x51b642
mov ebx, eax
push edi
push 1
push dword [ebp - 0x20]
push eax
call fcn.0066bd80
add esp, 0x10
cmp eax, 1
jne 0x51b644
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x20]
cmp ecx, eax
jne 0x51b8b1
push eax
push ebx
push dword [ebp + 0x10]
call fcn.00652bcd
add esp, 0xc
test eax, eax
cmove esi, eax
jmp 0x51b644
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x1c]
push eax
push ecx
push 0x20
push edi
call fcn.004da470
add esp, 0x10
mov esi, eax
mov ecx, dword [fcn.005464a0]
call dword [0x7a29f4]
push edi
call ecx
add esp, 4
test esi, esi
jne 0x51b67f
mov eax, dword [ebp + 8]
test eax, eax
je 0x51b7a6
cmp byte [eax + 0x683], 1
jne 0x51b7a6
push dword [ebp - 0x1c]
push str._public_key_hash:_sha256___s
push eax
call fcn.004e7630
add esp, 0xc
push ebx
call fcn.0066e590
add esp, 4
mov esi, eax
inc esi
mov ecx, dword [fcn.00546590]
call dword [0x7a29f4]
push esi
call ecx
add esp, 4
test eax, eax
je 0x51b7df
mov edi, eax
push esi
push ebx
push eax
call fcn.00654250
add esp, 0xc
mov dword [ebp - 0x20], edi
mov ebx, edi
jmp 0x51b885
mov ecx, dword [fcn.005464a0]
mov esi, dword [ebp - 0x1c]
call dword [0x7a29f4]
push esi
call ecx
add esp, 4
mov esi, 0x1b
jmp 0x51b67f
mov esi, 0x5a
mov edi, dword [ebp - 0x1c]
mov ecx, dword [fcn.005464a0]
call dword [0x7a29f4]
push edi
call ecx
add esp, 4
mov dword [ebp - 0x1c], 0
mov ecx, dword [fcn.005464a0]
call dword [0x7a29f4]
push dword [ebp - 0x20]
jmp 0x51b6f3
test eax, eax
mov esi, 0x5a
cmove esi, eax
jmp 0x51b806
mov edi, dword [ebp - 0x18]
add ebx, 8
push ebx
call fcn.0066e590
add esp, 4
cmp edi, eax
jne 0x51b7fe
mov eax, dword [ebp - 0x1c]
push edi
mov edi, eax
push ebx
push eax
call fcn.00652bcd
add esp, 0xc
test esi, esi
je 0x51b833
test eax, eax
je 0x51b833
mov byte [esi], 0x3b
push str.sha256__
push esi
call fcn.00654ba0
add esp, 8
mov ebx, eax
test eax, eax
je 0x51b7fe
push str._sha256__
push ebx
call fcn.00654ba0
add esp, 8
mov esi, eax
test eax, eax
je 0x51b83f
mov byte [esi], 0
mov edi, dword [ebp - 0x18]
add ebx, 8
push ebx
call fcn.0066e590
add esp, 4
cmp edi, eax
je 0x51b852
jmp 0x51b86a
mov byte [ebx + ecx], 0
push str._____BEGIN_PUBLIC_KEY_____
push ebx
call fcn.00654ba0
add esp, 8
test eax, eax
je 0x51b644
mov ecx, eax
sub ecx, ebx
je 0x51b8dc
cmp byte [ebx + ecx - 1], 0xa
jne 0x51b644
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], ecx
lea eax, [ebx + ecx]
add eax, 0x1a
push str._n_____END_PUBLIC_KEY_____
push eax
call fcn.00654ba0
add esp, 8
test eax, eax
je 0x51b644
mov dword [ebp - 0x20], eax
sub eax, ebx
mov ecx, dword [fcn.00546590]
mov dword [ebp - 0x34], eax
sub eax, dword [ebp - 0x24]
add eax, 0xffffffe7
mov dword [ebp - 0x2c], eax
call dword [0x7a29f4]
push dword [ebp - 0x2c]
call ecx
add esp, 4
mov dword [ebp - 0x28], eax
test eax, eax
je 0x51b644
mov ecx, dword [ebp - 0x24]
add ecx, 0x1a
xor eax, eax
cmp ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
jae 0x51b976
add edx, 0x1a
xor eax, eax
jmp 0x51b967
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x30], edx
mov edx, dword [ebp - 0x2c]
mov byte [eax + ecx], dl
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x24]
inc eax
inc edx
cmp dword [ebp - 0x20], edx
je 0x51b976
movzx ecx, byte [edx]
cmp ecx, 0xa
je 0x51b961
cmp ecx, 0xd
je 0x51b961
jmp 0x51b945
mov edx, dword [ebp - 0x28]
mov byte [edx + eax], 0
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
push ecx
push edx
call fcn.004da180
add esp, 0xc
mov dword [ebp - 0x20], eax
mov ecx, dword [fcn.005464a0]
call dword [0x7a29f4]
push dword [ebp - 0x28]
call ecx
add esp, 4
cmp dword [ebp - 0x20], 0
jne 0x51b644
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 0x18], eax
jne 0x51b644
push eax
push dword [ebp - 0x14]
push dword [ebp + 0x10]
call fcn.00652bcd
add esp, 0xc
test eax, eax
mov esi, 0x5a
jmp 0x51b74e