Function at 0x5a8bae
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov edi, dword [ebp + 0xc]
mov eax, dword [0x7a8498]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
test edi, edi
je 0x5a8c75
mov ebx, dword [ebp + 0x10]
mov esi, 0x5a
test ebx, ebx
je 0x5a8c77
cmp dword [ebp + 0x14], 0
je 0x5a8c77
push 8
push str.sha256__
push edi
call fcn.006e6670
add esp, 0xc
test eax, eax
je 0x5a8c8b
push 0x6fb8a0
push edi
call fcn.00630327
add esp, 8
test eax, eax
je 0x5a8c77
mov edi, eax
mov dword [ebp - 0x18], 0xffffffff
push 2
push 0
push eax
call fcn.006db4f0
add esp, 0xc
mov esi, 0x5a
test eax, eax
je 0x5a8de5
xor ebx, ebx
mov ecx, dword [fcn.00474d80]
call dword [section..00cfg]
push ebx
call ecx
add esp, 4
mov ecx, dword [fcn.00474d80]
mov ebx, dword [ebp - 0x14]
call dword [section..00cfg]
push ebx
call ecx
add esp, 4
mov dword [ebp - 0x14], 0
push edi
call fcn.006e4140
add esp, 4
jmp 0x5a8c77
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006c9121
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
dec eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [0x7aa204]
cmp dword [eax + 0x5c], 0
je 0x5a8e90
mov ecx, dword [fcn.00474d30]
call dword [section..00cfg]
push 0x20
call ecx
add esp, 4
mov esi, 0x1b
mov dword [ebp - 0x20], eax
test eax, eax
je 0x5a8c77
mov eax, dword [0x7aa204]
mov ecx, dword [eax + 0x5c]
call dword [section..00cfg]
push 0x20
push dword [ebp - 0x20]
push dword [ebp + 0x14]
push ebx
call ecx
add esp, 0x10
mov esi, eax
test eax, eax
jne 0x5a8c77
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x1c]
push eax
push ecx
push 0x20
mov ebx, dword [ebp - 0x20]
push ebx
push dword [ebp + 8]
call fcn.006305ad
add esp, 0x14
mov esi, eax
mov ecx, dword [fcn.00474d80]
call dword [section..00cfg]
push ebx
call ecx
add esp, 4
test esi, esi
jne 0x5a8c77
push dword [ebp - 0x1c]
push str._t_public_key_hash:_sha256___s_n
push dword [ebp + 8]
call fcn.005ae893
add esp, 0xc
push edi
call fcn.006e65e0
add esp, 4
mov esi, eax
inc esi
mov ecx, dword [fcn.00474d30]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
test eax, eax
je 0x5a8e9a
mov ebx, eax
push esi
push edi
push eax
call fcn.006cca40
add esp, 0xc
mov dword [ebp - 0x20], ebx
push str._sha256__
push ebx
call fcn.006cd390
add esp, 8
mov esi, eax
test eax, eax
je 0x5a8d8e
mov byte [esi], 0
mov edi, dword [ebp - 0x18]
add ebx, 8
push ebx
call fcn.006e65e0
add esp, 4
cmp edi, eax
je 0x5a8da1
jmp 0x5a8dc1
mov edi, dword [ebp - 0x18]
add ebx, 8
push ebx
call fcn.006e65e0
add esp, 4
cmp edi, eax
jne 0x5a8dd8
mov eax, dword [ebp - 0x1c]
push edi
mov edi, eax
push ebx
push eax
call fcn.006cbb2d
add esp, 0xc
test eax, eax
je 0x5a8efa
test esi, esi
je 0x5a8efa
mov byte [esi], 0x3b
push str.sha256__
push esi
call fcn.006cd390
add esp, 8
mov ebx, eax
test eax, eax
jne 0x5a8d62
mov esi, 0x5a
mov edi, dword [ebp - 0x1c]
jmp 0x5a8f04
push edi
call fcn.006dc328
add esp, 4
mov dword [ebp - 0x20], eax
xor eax, eax
push eax
push eax
push edi
call fcn.006db4f0
mov ecx, dword [ebp - 0x20]
add esp, 0xc
cmp ecx, 0x100000
ja 0x5a8c3a
test eax, eax
jne 0x5a8c3a
push 0
push ecx
call fcn.00476610
add esp, 8
cmp eax, dword [ebp + 0x14]
jb 0x5a8c3a
mov ecx, dword [fcn.00474d30]
mov dword [ebp - 0x24], eax
inc eax
mov dword [ebp - 0x20], eax
call dword [section..00cfg]
push dword [ebp - 0x20]
call ecx
add esp, 4
test eax, eax
je 0x5a8c3a
push edi
push 1
push dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
push eax
call fcn.006e4b20
add esp, 0x10
cmp eax, 1
jne 0x5a8ef2
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x24]
cmp edx, eax
jne 0x5a8eb9
push eax
mov eax, dword [ebp - 0x20]
push eax
push ebx
mov ebx, eax
call fcn.006cbb2d
add esp, 0xc
test eax, eax
mov esi, 0x5a
cmove esi, eax
jmp 0x5a8c3c
mov esi, 0x5a
jmp 0x5a8c77
mov ecx, dword [fcn.00474d80]
mov esi, dword [ebp - 0x1c]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
mov esi, 0x1b
jmp 0x5a8c77
mov ecx, dword [ebp - 0x20]
mov byte [ecx + edx], 0
lea eax, [ebp - 0x18]
lea edx, [ebp - 0x14]
push eax
call fcn.005a8f33
add esp, 4
test eax, eax
jne 0x5a8ef2
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 0x18], eax
jne 0x5a8ef2
push eax
push dword [ebp - 0x14]
push ebx
call fcn.006cbb2d
add esp, 0xc
test eax, eax
mov esi, 0x5a
cmove esi, eax
mov ebx, dword [ebp - 0x20]
jmp 0x5a8c3c
test eax, eax
mov esi, 0x5a
cmove esi, eax
mov ecx, dword [fcn.00474d80]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov dword [ebp - 0x1c], 0
mov ecx, dword [fcn.00474d80]
call dword [section..00cfg]
push dword [ebp - 0x20]
call ecx
jmp 0x5a8c70