Function at 0x454180
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
xor ebx, ebx
push edi
mov edi, dword [esp + 0x20]
cmp edi, ebx
mov eax, 0x5a
mov dword [esp + 8], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
jne 0x4541a8
pop edi
xor eax, eax
pop ebx
add esp, 0x10
ret
push ebp
mov ebp, dword [esp + 0x28]
cmp ebp, ebx
push esi
je 0x45458f
mov esi, dword [esp + 0x30]
cmp esi, ebx
je 0x45458f
push 8
push str.sha256__
push edi
call dword [sym.imp.MSVCR80.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x4543c0
mov eax, dword [0x5d204c]
cmp dword [eax + 0x5c], ebx
je 0x4543d7
push 0x20
call dword [0x5d2038]
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x454296
mov ecx, dword [0x5d204c]
mov edx, dword [ecx + 0x5c]
push 0x20
push edi
push esi
push ebp
call edx
add esp, 0x10
cmp eax, ebx
jne 0x45458f
mov ebx, dword [esp + 0x24]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x20
push edi
push ebx
call fcn.0046b870
push edi
mov esi, eax
call dword [0x5d203c]
add esp, 0x18
test esi, esi
je 0x45424a
mov eax, esi
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x10
ret
mov edx, dword [esp + 0x10]
push edx
push str._t_public_key_hash:_sha256___s_n
push ebx
call fcn.0045c170
mov edi, dword [esp + 0x34]
mov eax, edi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x454266
sub eax, edx
lea esi, [eax + 1]
push esi
call dword [0x5d2038]
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x28], ebx
jne 0x4542a3
mov eax, dword [esp + 0x10]
push eax
call dword [0x5d203c]
add esp, 4
pop esi
pop ebp
pop edi
mov eax, 0x1b
pop ebx
add esp, 0x10
ret
push esi
push edi
push ebx
call sub.MSVCR80.dll_memcpy
mov ebp, dword [sym.imp.MSVCR80.dll_strstr]
add esp, 0xc
mov esi, ebx
push str._sha256__
push esi
call ebp
add esp, 8
test eax, eax
je 0x4542c8
mov byte [eax], 0
lea edx, [esi + 8]
mov ecx, edx
lea esi, [ecx + 1]
mov bl, byte [ecx]
add ecx, 1
test bl, bl
jne 0x4542d0
sub ecx, esi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
cmp ecx, edi
jne 0x45436d
cmp ecx, 4
mov esi, dword [esp + 0x10]
jb 0x454306
mov edi, dword [esi]
cmp edi, dword [edx]
jne 0x45430a
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x4542f2
test ecx, ecx
je 0x454367
movzx edi, byte [esi]
movzx ebx, byte [edx]
sub edi, ebx
jne 0x454359
sub ecx, 1
add edx, 1
add esi, 1
test ecx, ecx
je 0x454367
movzx edi, byte [esi]
movzx ebx, byte [edx]
sub edi, ebx
jne 0x454359
sub ecx, 1
add edx, 1
add esi, 1
test ecx, ecx
je 0x454367
movzx edi, byte [esi]
movzx ebx, byte [edx]
sub edi, ebx
jne 0x454359
sub ecx, 1
add edx, 1
add esi, 1
test ecx, ecx
je 0x454367
movzx edi, byte [esi]
movzx ecx, byte [edx]
sub edi, ecx
je 0x454367
test edi, edi
mov ecx, 1
jg 0x454369
or ecx, 0xffffffff
jmp 0x454369
xor ecx, ecx
test ecx, ecx
je 0x45438b
test eax, eax
je 0x454393
push str.sha256__
push eax
mov byte [eax], 0x3b
call ebp
mov esi, eax
add esp, 8
test esi, esi
jne 0x4542b6
jmp 0x454393
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x10]
push edx
call dword [0x5d203c]
mov eax, dword [esp + 0x2c]
push eax
mov dword [esp + 0x18], 0
call dword [0x5d203c]
mov eax, dword [esp + 0x1c]
add esp, 8
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x10
ret
push 0x5c6138
push edi
call dword [sym.imp.MSVCR80.dll_fopen]
add esp, 8
cmp eax, ebx
mov dword [esp + 0x28], eax
jne 0x4543e4
pop esi
pop ebp
pop edi
mov eax, 0x5a
pop ebx
add esp, 0x10
ret
mov ebx, dword [sym.imp.MSVCR80.dll_fseek]
push 2
mov ecx, eax
push 0
push ecx
call ebx
add esp, 0xc
test eax, eax
jne 0x45455f
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.MSVCR80.dll_ftell]
push 0
mov edi, eax
mov eax, dword [esp + 0x30]
push 0
push eax
call ebx
add esp, 0x10
test eax, eax
jne 0x45455f
cmp edi, 0x100000
ja 0x45455f
mov eax, edi
cdq
push edx
push eax
call fcn.0045ee70
mov edi, eax
add esp, 8
cmp esi, edi
ja 0x45455f
lea ecx, [edi + 1]
push ecx
call dword [0x5d2038]
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
je 0x45455f
mov edx, dword [esp + 0x28]
push edx
push 1
push edi
push eax
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x45455f
cmp esi, edi
jne 0x4544a6
cmp esi, 4
mov ecx, dword [esp + 0x10]
mov eax, esi
mov edx, ebp
jb 0x4544f4
lea esp, [esp]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x4544f8
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x454490
jmp 0x4544f4
mov ebx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
mov byte [edi + ebx], 0
call fcn.004540b0
add esp, 8
test eax, eax
jne 0x45455f
cmp esi, dword [esp + 0x1c]
jne 0x45455f
cmp esi, 4
mov ecx, dword [esp + 0x18]
mov eax, esi
mov edx, ebp
jb 0x4544f4
nop
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x4544f8
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4544e0
test eax, eax
je 0x454555
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x454547
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x454555
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x454547
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x454555
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x454547
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x454555
movzx ecx, byte [ecx]
movzx esi, byte [edx]
sub esi, ecx
je 0x454555
test esi, esi
mov eax, 1
jg 0x454557
or eax, 0xffffffff
jmp 0x454557
xor eax, eax
test eax, eax
jne 0x45455f
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x10]
push edx
call dword [0x5d203c]
mov eax, dword [esp + 0x1c]
push eax
call dword [0x5d203c]
mov ecx, dword [esp + 0x30]
push ecx
mov dword [esp + 0x24], 0
call dword [sym.imp.MSVCR80.dll_fclose]
mov eax, dword [esp + 0x20]
add esp, 0xc
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x10
ret