Function at 0x415250
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 0x415277
pop edi
add esp, 0x18
ret
push ebp
mov ebp, dword [esp + 0x28]
push esi
cmp ebp, eax
je 0x415598
mov esi, dword [esp + 0x30]
cmp esi, eax
je 0x415598
push ebx
push 8
push str.sha256__
push edi
call fcn.0040e73b
add esp, 0xc
test eax, eax
jne 0x4153e0
push 0x20
call dword [0x539f70]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4152fa
push 0x20
push ebx
push esi
push ebp
call fcn.0041cd90
mov eax, edi
add esp, 0x10
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4152d0
sub eax, edx
lea esi, [eax + 1]
push esi
call dword [0x539f70]
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
test ebp, ebp
jne 0x415307
push ebx
call dword [0x539f74]
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.00406080
add esp, 0xc
mov esi, ebp
push str._sha256__
push esi
call fcn.004e4860
mov edi, eax
add esp, 8
test edi, edi
je 0x41532b
mov byte [edi], 0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
push ecx
add esi, 8
push esi
call fcn.0041de90
add esp, 0xc
test eax, eax
jne 0x41538a
mov esi, dword [esp + 0x14]
mov ecx, 0x20
cmp dword [esp + 0x2c], ecx
jne 0x415374
mov edx, ebx
mov eax, esi
sub edx, esi
lea ebx, [ebx]
cmp ecx, 4
jb 0x4153ab
mov ebp, dword [edx + eax]
cmp ebp, dword [eax]
jne 0x415374
sub ecx, 4
add eax, 4
jmp 0x415360
push esi
call dword [0x539f74]
mov ebp, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x14], 0
test edi, edi
je 0x4153c3
push str.sha256__
push edi
mov byte [edi], 0x3b
call fcn.004e4860
mov esi, eax
add esp, 8
test esi, esi
jne 0x415314
jmp 0x4153c3
xor edi, edi
push esi
mov dword [esp + 0x14], edi
call dword [0x539f74]
mov ebp, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x14], edi
push ebx
call dword [0x539f74]
push ebp
call dword [0x539f74]
mov eax, dword [esp + 0x18]
add esp, 8
pop ebx
pop esi
pop ebp
pop edi
add esp, 0x18
ret
push 0x4f1f0c
push edi
call fcn.004e4f81
mov ebx, eax
add esp, 8
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x415403
lea eax, [ebx + 0x5a]
pop ebx
pop esi
pop ebp
pop edi
add esp, 0x18
ret
push 2
push 0
push ebx
call fcn.004e4e38
add esp, 0xc
test eax, eax
jne 0x415565
push ebx
call fcn.004e4d40
push 0
push 0
push ebx
mov edi, eax
call fcn.004e4e38
add esp, 0x10
test eax, eax
jne 0x415565
cmp edi, 0x100000
ja 0x415565
mov eax, edi
cdq
push edx
push eax
call fcn.0041e1b0
add esp, 8
mov dword [esp + 0x2c], eax
cmp esi, eax
ja 0x415565
inc eax
push eax
call dword [0x539f70]
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
test edi, edi
je 0x415565
mov edx, dword [esp + 0x2c]
push ebx
push 1
push edx
push edi
call fcn.004e4b86
add esp, 0x10
cmp eax, 1
jne 0x415565
mov eax, dword [esp + 0x2c]
cmp esi, eax
jne 0x4154f2
mov ecx, edi
mov eax, esi
mov edi, ebp
cmp esi, 4
jb 0x4154b8
mov edx, dword [edi]
cmp edx, dword [ecx]
jne 0x415565
sub eax, 4
add ecx, 4
add edi, 4
cmp eax, 4
jae 0x4154a0
test eax, eax
je 0x4154e8
mov dl, byte [ecx]
cmp dl, byte [edi]
jne 0x415565
cmp eax, 1
jbe 0x4154e8
mov dl, byte [ecx + 1]
cmp dl, byte [edi + 1]
jne 0x415565
cmp eax, 2
jbe 0x4154e8
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x415565
mov dword [esp + 0x10], 0
jmp 0x415565
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ebx, edi
mov byte [eax + edi], 0
call fcn.00415180
add esp, 8
test eax, eax
jne 0x415561
cmp esi, dword [esp + 0x24]
jne 0x415561
mov ecx, dword [esp + 0x18]
mov eax, esi
mov edi, ebp
cmp esi, 4
jb 0x415535
mov edx, dword [edi]
cmp edx, dword [ecx]
jne 0x415561
sub eax, 4
add ecx, 4
add edi, 4
cmp eax, 4
jae 0x415521
test eax, eax
je 0x415559
mov dl, byte [ecx]
cmp dl, byte [edi]
jne 0x415561
cmp eax, 1
jbe 0x415559
mov dl, byte [ecx + 1]
cmp dl, byte [edi + 1]
jne 0x415561
cmp eax, 2
jbe 0x415559
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x415561
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push ecx
call dword [0x539f74]
mov edx, dword [esp + 0x1c]
push edx
call dword [0x539f74]
push ebx
mov dword [esp + 0x24], 0
call fcn.0041156e
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