Function at 0x4818d4
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov ebp, edx
mov dword [esp + 0x1c], ecx
xor ebx, ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
push 0x5a
pop esi
test ebp, ebp
jne 0x4818fd
xor eax, eax
jmp 0x481b59
cmp dword [esp + 0x28], ebx
je 0x481b57
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x481b57
push 8
push str.sha256__
push ebp
call fcn.00527fe0
add esp, 0xc
test eax, eax
jne 0x481a76
mov eax, dword [0x5c9bd8]
mov ebp, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebp
cmp dword [eax + 0x5c], ebx
je 0x481b57
push 0x20
call dword [0x5c9b04]
mov dword [esp + 0x18], eax
pop ecx
test eax, eax
jne 0x48195c
push 0x1b
pop eax
jmp 0x481b59
push 0x20
push eax
mov eax, dword [0x5c9bd8]
push edi
push dword [esp + 0x34]
call dword [eax + 0x5c]
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x481993
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
push 0x20
call fcn.00498eb8
mov ebp, dword [esp + 0x24]
add esp, 0xc
mov edi, eax
push dword [esp + 0x14]
call dword [0x5c9b0c]
pop ecx
test edi, edi
je 0x4819a9
mov eax, edi
jmp 0x481b59
push ebp
push str._public_key_hash:_sha256___s
push dword [esp + 0x24]
call fcn.0048c275
mov edi, dword [esp + 0x2c]
add esp, 0xc
push edi
call fcn.00520660
inc eax
pop ecx
push eax
mov dword [esp + 0x24], eax
call dword [0x5c9b04]
mov dword [esp + 0x18], eax
pop ecx
test eax, eax
jne 0x4819e8
push ebp
call dword [0x5c9b0c]
pop ecx
jmp 0x481954
push dword [esp + 0x20]
push edi
push eax
call fcn.0051c650
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x18], eax
push str._sha256__
push eax
call fcn.0051c3e0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x481a13
mov byte [edi], bl
mov eax, dword [esp + 0x18]
add eax, 8
push eax
mov dword [esp + 0x24], eax
call fcn.00520660
pop ecx
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jne 0x481a3f
push ecx
push dword [esp + 0x24]
push ebp
call fcn.0051cbd0
add esp, 0xc
test eax, eax
je 0x481a5d
test edi, edi
je 0x481a5f
push str.sha256__
push edi
mov byte [edi], 0x3b
call fcn.0051c3e0
mov dword [esp + 0x20], eax
pop ecx
pop ecx
test eax, eax
jne 0x4819fe
jmp 0x481a5f
mov esi, ebx
push ebp
call dword [0x5c9b0c]
pop ecx
push dword [esp + 0x14]
call dword [0x5c9b0c]
jmp 0x481b56
push 0x591c68
push ebp
call fcn.005358a0
mov dword [esp + 0x1c], eax
pop ecx
pop ecx
test eax, eax
je 0x481b57
push 2
push ebx
push eax
call fcn.0052966e
add esp, 0xc
test eax, eax
jne 0x481b3a
push dword [esp + 0x14]
call fcn.00529329
pop ecx
push ebx
push ebx
push dword [esp + 0x1c]
mov ebp, eax
call fcn.0052966e
add esp, 0xc
test eax, eax
jne 0x481b3a
cmp ebp, 0x100000
ja 0x481b3a
cmp edi, ebp
ja 0x481b3a
lea eax, [ebp + 1]
push eax
call dword [0x5c9b04]
mov dword [esp + 0x14], eax
pop ecx
test eax, eax
je 0x481b3a
push dword [esp + 0x14]
push 1
push ebp
push eax
call fcn.005333ca
add esp, 0x10
cmp eax, 1
jne 0x481b3a
cmp edi, ebp
jne 0x481b00
push edi
push dword [esp + 0x14]
jmp 0x481b28
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
mov ecx, eax
mov byte [eax + ebp], bl
call fcn.0048181d
mov ebx, dword [esp + 0x1c]
pop ecx
test eax, eax
jne 0x481b3a
cmp edi, dword [esp + 0x20]
jne 0x481b3a
push edi
push ebx
push dword [esp + 0x30]
call fcn.0051cbd0
add esp, 0xc
neg eax
sbb eax, eax
and esi, eax
push dword [esp + 0x10]
call dword [0x5c9b0c]
pop ecx
push ebx
call dword [0x5c9b0c]
pop ecx
push dword [esp + 0x14]
call fcn.005335d9
pop ecx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret