Function at 0x49e9c0
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 0x49e9e7
pop edi
add esp, 0x18
ret
push ebp
mov ebp, dword [esp + 0x28]
push esi
cmp ebp, eax
je 0x49ed08
mov esi, dword [esp + 0x30]
cmp esi, eax
je 0x49ed08
push ebx
push 8
push str.sha256__
push edi
call fcn.00487289
add esp, 0xc
test eax, eax
jne 0x49eb50
push 0x20
call dword [0x70dbd4]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x49ea6a
push 0x20
push ebx
push esi
push ebp
call fcn.004b6820
mov eax, edi
add esp, 0x10
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49ea40
sub eax, edx
lea esi, [eax + 1]
push esi
call dword [0x70dbd4]
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
test ebp, ebp
jne 0x49ea77
push ebx
call dword [0x70dbd8]
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.00469cf0
add esp, 0xc
mov esi, ebp
push str._sha256__
push esi
call fcn.0046cb50
mov edi, eax
add esp, 8
test edi, edi
je 0x49ea9b
mov byte [edi], 0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
push ecx
add esi, 8
push esi
call fcn.004b7c20
add esp, 0xc
test eax, eax
jne 0x49eafa
mov esi, dword [esp + 0x14]
mov ecx, 0x20
cmp dword [esp + 0x2c], ecx
jne 0x49eae4
mov edx, ebx
mov eax, esi
sub edx, esi
lea ebx, [ebx]
cmp ecx, 4
jb 0x49eb1b
mov ebp, dword [edx + eax]
cmp ebp, dword [eax]
jne 0x49eae4
sub ecx, 4
add eax, 4
jmp 0x49ead0
push esi
call dword [0x70dbd8]
mov ebp, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x14], 0
test edi, edi
je 0x49eb33
push str.sha256__
push edi
mov byte [edi], 0x3b
call fcn.0046cb50
mov esi, eax
add esp, 8
test esi, esi
jne 0x49ea84
jmp 0x49eb33
xor edi, edi
push esi
mov dword [esp + 0x14], edi
call dword [0x70dbd8]
mov ebp, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x14], edi
push ebx
call dword [0x70dbd8]
push ebp
call dword [0x70dbd8]
mov eax, dword [esp + 0x18]
add esp, 8
pop ebx
pop esi
pop ebp
pop edi
add esp, 0x18
ret
push 0x674e98
push edi
call fcn.0046b953
mov ebx, eax
add esp, 8
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x49eb73
lea eax, [ebx + 0x5a]
pop ebx
pop esi
pop ebp
pop edi
add esp, 0x18
ret
push 2
push 0
push ebx
call fcn.0046e466
add esp, 0xc
test eax, eax
jne 0x49ecd5
push ebx
call fcn.0046e377
push 0
push 0
push ebx
mov edi, eax
call fcn.0046e466
add esp, 0x10
test eax, eax
jne 0x49ecd5
cmp edi, 0x100000
ja 0x49ecd5
mov eax, edi
cdq
push edx
push eax
call fcn.004b7fe0
add esp, 8
mov dword [esp + 0x2c], eax
cmp esi, eax
ja 0x49ecd5
inc eax
push eax
call dword [0x70dbd4]
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
test edi, edi
je 0x49ecd5
mov edx, dword [esp + 0x2c]
push ebx
push 1
push edx
push edi
call fcn.0046be70
add esp, 0x10
cmp eax, 1
jne 0x49ecd5
mov eax, dword [esp + 0x2c]
cmp esi, eax
jne 0x49ec62
mov ecx, edi
mov eax, esi
mov edi, ebp
cmp esi, 4
jb 0x49ec28
mov edx, dword [edi]
cmp edx, dword [ecx]
jne 0x49ecd5
sub eax, 4
add ecx, 4
add edi, 4
cmp eax, 4
jae 0x49ec10
test eax, eax
je 0x49ec58
mov dl, byte [ecx]
cmp dl, byte [edi]
jne 0x49ecd5
cmp eax, 1
jbe 0x49ec58
mov dl, byte [ecx + 1]
cmp dl, byte [edi + 1]
jne 0x49ecd5
cmp eax, 2
jbe 0x49ec58
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x49ecd5
mov dword [esp + 0x10], 0
jmp 0x49ecd5
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ebx, edi
mov byte [eax + edi], 0
call fcn.0049e8f0
add esp, 8
test eax, eax
jne 0x49ecd1
cmp esi, dword [esp + 0x24]
jne 0x49ecd1
mov ecx, dword [esp + 0x18]
mov eax, esi
mov edi, ebp
cmp esi, 4
jb 0x49eca5
mov edx, dword [edi]
cmp edx, dword [ecx]
jne 0x49ecd1
sub eax, 4
add ecx, 4
add edi, 4
cmp eax, 4
jae 0x49ec91
test eax, eax
je 0x49ecc9
mov dl, byte [ecx]
cmp dl, byte [edi]
jne 0x49ecd1
cmp eax, 1
jbe 0x49ecc9
mov dl, byte [ecx + 1]
cmp dl, byte [edi + 1]
jne 0x49ecd1
cmp eax, 2
jbe 0x49ecc9
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x49ecd1
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push ecx
call dword [0x70dbd8]
mov edx, dword [esp + 0x1c]
push edx
call dword [0x70dbd8]
push ebx
mov dword [esp + 0x24], 0
call fcn.0046ba1e
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