Function at 0x405600
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
xor eax, eax
push edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x5a
mov dword [esp + 8], eax
cmp edi, eax
jne 0x405627
pop edi
add esp, 0x18
ret
push ebp
mov ebp, dword [esp + 0x28]
push esi
cmp ebp, eax
je 0x405948
mov esi, dword [esp + 0x30]
cmp esi, eax
je 0x405948
push ebx
push 8
push str.sha256__
push edi
call fcn.00543560
add esp, 0xc
test eax, eax
jne 0x405790
push 0x20
call dword [0x5b44c0]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4056aa
push 0x20
push ebx
push esi
push ebp
call fcn.0041d330
mov eax, edi
add esp, 0x10
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405680
sub eax, edx
lea esi, [eax + 1]
push esi
call dword [0x5b44c0]
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
test ebp, ebp
jne 0x4056b7
push ebx
call dword [0x5b44c4]
add esp, 4
pop ebx
pop esi
pop ebp
mov eax, 0x1b
pop edi
add esp, 0x18
ret
push esi
push edi
push ebp
call fcn.0053b750
add esp, 0xc
mov esi, ebp
push str._sha256__
push esi
call fcn.0053d660
mov edi, eax
add esp, 8
test edi, edi
je 0x4056db
mov byte [edi], 0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
push ecx
add esi, 8
push esi
call fcn.0041d720
add esp, 0xc
test eax, eax
jne 0x40573a
mov esi, dword [esp + 0x14]
mov ecx, 0x20
cmp dword [esp + 0x2c], ecx
jne 0x405724
mov edx, ebx
mov eax, esi
sub edx, esi
lea ebx, [ebx]
cmp ecx, 4
jb 0x40575b
mov ebp, dword [edx + eax]
cmp ebp, dword [eax]
jne 0x405724
sub ecx, 4
add eax, 4
jmp 0x405710
push esi
call dword [0x5b44c4]
mov ebp, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x14], 0
test edi, edi
je 0x405773
push str.sha256__
push edi
mov byte [edi], 0x3b
call fcn.0053d660
mov esi, eax
add esp, 8
test esi, esi
jne 0x4056c4
jmp 0x405773
xor edi, edi
push esi
mov dword [esp + 0x14], edi
call dword [0x5b44c4]
mov ebp, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x14], edi
push ebx
call dword [0x5b44c4]
push ebp
call dword [0x5b44c4]
mov eax, dword [esp + 0x18]
add esp, 8
pop ebx
pop esi
pop ebp
pop edi
add esp, 0x18
ret
push 0x5ad124
push edi
call fcn.0054400d
mov ebx, eax
add esp, 8
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x4057b3
lea eax, [ebx + 0x5a]
pop ebx
pop esi
pop ebp
pop edi
add esp, 0x18
ret
push 2
push 0
push ebx
call fcn.00546c68
add esp, 0xc
test eax, eax
jne 0x405915
push ebx
call fcn.005462c8
push 0
push 0
push ebx
mov edi, eax
call fcn.00546c68
add esp, 0x10
test eax, eax
jne 0x405915
cmp edi, 0x100000
ja 0x405915
mov eax, edi
cdq
push edx
push eax
call fcn.004146a0
add esp, 8
mov dword [esp + 0x2c], eax
cmp esi, eax
ja 0x405915
inc eax
push eax
call dword [0x5b44c0]
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
test edi, edi
je 0x405915
mov edx, dword [esp + 0x2c]
push ebx
push 1
push edx
push edi
call fcn.005468fe
add esp, 0x10
cmp eax, 1
jne 0x405915
mov eax, dword [esp + 0x2c]
cmp esi, eax
jne 0x4058a2
mov ecx, edi
mov eax, esi
mov edi, ebp
cmp esi, 4
jb 0x405868
mov edx, dword [edi]
cmp edx, dword [ecx]
jne 0x405915
sub eax, 4
add ecx, 4
add edi, 4
cmp eax, 4
jae 0x405850
test eax, eax
je 0x405898
mov dl, byte [ecx]
cmp dl, byte [edi]
jne 0x405915
cmp eax, 1
jbe 0x405898
mov dl, byte [ecx + 1]
cmp dl, byte [edi + 1]
jne 0x405915
cmp eax, 2
jbe 0x405898
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x405915
mov dword [esp + 0x10], 0
jmp 0x405915
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ebx, edi
mov byte [eax + edi], 0
call fcn.00405530
add esp, 8
test eax, eax
jne 0x405911
cmp esi, dword [esp + 0x24]
jne 0x405911
mov ecx, dword [esp + 0x18]
mov eax, esi
mov edi, ebp
cmp esi, 4
jb 0x4058e5
mov edx, dword [edi]
cmp edx, dword [ecx]
jne 0x405911
sub eax, 4
add ecx, 4
add edi, 4
cmp eax, 4
jae 0x4058d1
test eax, eax
je 0x405909
mov dl, byte [ecx]
cmp dl, byte [edi]
jne 0x405911
cmp eax, 1
jbe 0x405909
mov dl, byte [ecx + 1]
cmp dl, byte [edi + 1]
jne 0x405911
cmp eax, 2
jbe 0x405909
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x405911
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push ecx
call dword [0x5b44c4]
mov edx, dword [esp + 0x1c]
push edx
call dword [0x5b44c4]
push ebx
mov dword [esp + 0x24], 0
call fcn.005464cc
mov eax, dword [esp + 0x1c]
add esp, 0xc
pop ebx
pop esi
pop ebp
pop edi
add esp, 0x18
ret
pop esi
pop ebp
mov eax, 0x5a
pop edi
add esp, 0x18
ret