Function at 0x51af70
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, edx
push esi
push edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0x5a
test ebp, ebp
jne 0x51afa3
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov edi, dword [esp + 0x28]
test edi, edi
je 0x51b31d
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x51b31d
push 8
push str.sha256__
push ebp
call fcn.004eef80
add esp, 0xc
test eax, eax
jne 0x51b175
mov eax, dword [0x593c34]
cmp dword [eax + 0x5c], 0
je 0x51b31d
push 0x20
call dword [0x593c18]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x51b08a
mov eax, dword [0x593c34]
push 0x20
mov eax, dword [eax + 0x5c]
push ebx
push esi
push edi
call eax
add esp, 0x10
test eax, eax
jne 0x51b322
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
push 0x20
push ebx
mov ecx, 0x5451a0
call fcn.0052f550
push ebx
mov esi, eax
call dword [0x593c28]
add esp, 0x14
test esi, esi
je 0x51b042
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov ebx, dword [esp + 0x1c]
push ebx
push str._t_public_key_hash:_sha256___s_n
push dword [esp + 0x28]
call fcn.0051a600
mov ecx, ebp
add esp, 0xc
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51b060
sub ecx, edx
lea esi, [ecx + 1]
push esi
call dword [0x593c18]
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
test edi, edi
jne 0x51b097
push ebx
call dword [0x593c28]
add esp, 4
mov eax, 0x1b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push esi
push ebp
push edi
call fcn.004f0080
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x28]
add esp, 0xc
mov esi, edi
lea esp, [esp]
push str._sha256__
push esi
call fcn.004ece00
mov edi, eax
add esp, 8
test edi, edi
je 0x51b0c7
mov byte [edi], 0
add esi, 8
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51b0d0
sub ecx, edx
cmp ebx, ecx
jne 0x51b129
mov ecx, ebx
mov edx, ebp
sub ecx, 4
jb 0x51b0f7
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x51b0fc
add edx, 4
add esi, 4
sub ecx, 4
jae 0x51b0e6
cmp ecx, 0xfffffffc
je 0x51b14a
mov al, byte [edx]
cmp al, byte [esi]
jne 0x51b129
cmp ecx, 0xfffffffd
je 0x51b14a
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x51b129
cmp ecx, 0xfffffffe
je 0x51b14a
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x51b129
cmp ecx, 0xffffffff
je 0x51b14a
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x51b14a
test edi, edi
je 0x51b152
push str.sha256__
push edi
mov byte [edi], 0x3b
call fcn.004ece00
mov esi, eax
add esp, 8
test esi, esi
jne 0x51b0b0
jmp 0x51b152
mov dword [esp + 0x18], 0
push ebp
call dword [0x593c28]
add esp, 4
push dword [esp + 0x20]
call dword [0x593c28]
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push 0x540eac
push ebp
call fcn.004ec5bd
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x51b31d
push 2
push 0
push ebp
call fcn.004ec744
add esp, 0xc
test eax, eax
jne 0x51b25b
push ebp
call fcn.004ecb1c
add esp, 4
mov ebx, eax
push 0
push 0
push ebp
call fcn.004ec744
add esp, 0xc
test eax, eax
jne 0x51b25b
cmp ebx, 0x100000
ja 0x51b25b
cmp esi, ebx
ja 0x51b25b
lea eax, [ebx + 1]
push eax
call dword [0x593c18]
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x51b25b
push ebp
push 1
push ebx
push eax
call fcn.004ecd47
add esp, 0x10
cmp eax, 1
jne 0x51b25b
cmp esi, ebx
jne 0x51b28b
mov ecx, dword [esp + 0x1c]
sub esi, 4
jb 0x51b221
mov edi, edi
mov eax, dword [edi]
cmp eax, dword [ecx]
jne 0x51b226
add edi, 4
add ecx, 4
sub esi, 4
jae 0x51b210
cmp esi, 0xfffffffc
je 0x51b253
mov al, byte [edi]
cmp al, byte [ecx]
jne 0x51b25b
cmp esi, 0xfffffffd
je 0x51b253
mov al, byte [edi + 1]
cmp al, byte [ecx + 1]
jne 0x51b25b
cmp esi, 0xfffffffe
je 0x51b253
mov al, byte [edi + 2]
cmp al, byte [ecx + 2]
jne 0x51b25b
cmp esi, 0xffffffff
je 0x51b253
mov al, byte [edi + 3]
cmp al, byte [ecx + 3]
jne 0x51b25b
mov dword [esp + 0x18], 0
mov ebx, dword [esp + 0x14]
push dword [esp + 0x1c]
call dword [0x593c28]
add esp, 4
push ebx
call dword [0x593c28]
add esp, 4
push ebp
call fcn.004ec63e
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x18]
mov ecx, eax
mov byte [ebx + eax], 0
call fcn.0051b330
mov ebx, dword [esp + 0x18]
add esp, 4
test eax, eax
jne 0x51b25f
cmp esi, dword [esp + 0x20]
jne 0x51b25f
mov ecx, ebx
sub esi, 4
jb 0x51b2d1
jmp 0x51b2c0
mov eax, dword [edi]
cmp eax, dword [ecx]
jne 0x51b2d6
add edi, 4
add ecx, 4
sub esi, 4
jae 0x51b2c0
cmp esi, 0xfffffffc
je 0x51b310
mov al, byte [edi]
cmp al, byte [ecx]
jne 0x51b303
cmp esi, 0xfffffffd
je 0x51b310
mov al, byte [edi + 1]
cmp al, byte [ecx + 1]
jne 0x51b303
cmp esi, 0xfffffffe
je 0x51b310
mov al, byte [edi + 2]
cmp al, byte [ecx + 2]
jne 0x51b303
cmp esi, 0xffffffff
je 0x51b310
mov al, byte [edi + 3]
cmp al, byte [ecx + 3]
je 0x51b310
mov dword [esp + 0x18], 0x5a
jmp 0x51b25f
mov dword [esp + 0x18], 0
jmp 0x51b25f
mov eax, 0x5a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret