Function at 0x4064e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push ebp
xor ebp, ebp
mov eax, 0x5a
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], eax
jne 0x406508
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [esp + 0x24], ebp
je 0x4067b5
mov esi, dword [esp + 0x28]
cmp esi, ebp
je 0x4067b5
push 8
push str.sha256__
push ebx
call fcn.00b3ff90
add esp, 0xc
test eax, eax
jne 0x4066a3
mov eax, dword [0xb7d3a8]
cmp dword [eax + 0x5c], ebp
jne 0x40654d
pop edi
pop esi
pop ebp
mov eax, 0x5a
pop ebx
add esp, 8
ret
push 0x20
call dword [0xb7d294]
mov edi, eax
add esp, 4
test edi, edi
jne 0x40656b
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [0xb7d3a8]
push 0x20
push edi
push esi
push ecx
call dword [edx + 0x5c]
add esp, 0x10
test eax, eax
jne 0x4067b5
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0x20
push edi
push ebp
call fcn.0041c600
push edi
mov esi, eax
call dword [0xb7d298]
add esp, 0x18
test esi, esi
je 0x4065b9
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x20]
push edx
push str._t_public_key_hash:_sha256___s_n
push ebp
call fcn.0040e110
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
inc edi
push edi
call dword [0xb7d294]
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x406603
mov eax, dword [esp + 0x20]
push eax
call dword [0xb7d298]
add esp, 4
mov eax, 0x1b
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, edi
mov esi, ebx
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, ebp
push str._sha256__
push esi
call fcn.00b35160
mov edx, eax
add esp, 8
test edx, edx
je 0x406630
mov byte [edx], 0
add esi, 8
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x28]
not ecx
dec ecx
cmp eax, ecx
jne 0x406655
mov ecx, eax
mov edi, esi
mov esi, dword [esp + 0x20]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x406672
test edx, edx
je 0x40667a
push str.sha256__
push edx
mov byte [edx], 0x3b
call fcn.00b35160
mov esi, eax
add esp, 8
test esi, esi
je 0x40667a
jmp 0x406619
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x20]
push ecx
call dword [0xb7d298]
push ebp
mov dword [esp + 0x28], 0
call dword [0xb7d298]
mov eax, dword [esp + 0x18]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 0xb7d434
push ebx
call fcn.00b3ff6e
mov ebx, eax
add esp, 8
cmp ebx, ebp
jne 0x4066c4
pop edi
pop esi
pop ebp
mov eax, 0x5a
pop ebx
add esp, 8
ret
push 2
push ebp
push ebx
call fcn.00b3fe92
add esp, 0xc
test eax, eax
jne 0x40678e
push ebx
call fcn.00b3fbcd
push 0
push 0
push ebx
mov edi, eax
call fcn.00b3fe92
add esp, 0x10
test eax, eax
jne 0x40678e
test edi, edi
jl 0x40678e
cmp edi, 0x100000
jg 0x40678e
mov eax, edi
cdq
push edx
push eax
call fcn.00412870
mov edi, eax
add esp, 8
cmp esi, edi
ja 0x40678e
lea edx, [edi + 1]
push edx
call dword [0xb7d294]
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40678e
push ebx
push 1
push edi
push ebp
call fcn.00b38b32
add esp, 0x10
cmp eax, 1
jne 0x40678e
cmp esi, edi
je 0x406778
lea eax, [esp + 0x20]
lea ecx, [esp + 0x14]
push eax
push ecx
push ebp
mov byte [edi + ebp], 0
call fcn.004067c0
add esp, 0xc
test eax, eax
jne 0x40678e
cmp esi, dword [esp + 0x20]
jne 0x40678e
mov edi, dword [esp + 0x14]
mov ecx, esi
mov esi, dword [esp + 0x24]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x40678e
jmp 0x406786
mov ecx, esi
mov esi, dword [esp + 0x24]
mov edi, ebp
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x40678e
mov dword [esp + 0x10], 0
push ebp
call dword [0xb7d298]
mov ecx, dword [esp + 0x18]
push ecx
call dword [0xb7d298]
push ebx
mov dword [esp + 0x20], 0
call fcn.00b3f5f6
mov eax, dword [esp + 0x1c]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret