Function at 0x4f0990
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6bdff3
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x78efc4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x7c], esi
mov ebx, ecx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x40], 0
push 0x29
xor eax, eax
mov dword [ebp - 0x30], 0
push str.Cannot_generate_SHA1_hash_for_file__0_.
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], 0xffffffff
call fcn.0044d800
push esi
lea edx, [ebp - 0x40]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0048bbb0
add esp, 4
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4f0a59
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4f0a4f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4f0fb0
push edx
push ecx
call fcn.006779b1
add esp, 8
call fcn.005af3b0
mov esi, eax
mov dword [ebp - 0x50], 0x753678
lea eax, [ebp - 0x50]
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x84], eax
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 5
call fcn.004f18e0
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4f0ab8
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x50]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x2c], 0
call fcn.005af860
push 0
push eax
push esi
call fcn.005af080
add esp, 0xc
test eax, eax
jne 0x4f0b4b
call fcn.004486f0
lea ecx, [ebp - 0x28]
push ecx
push str._0._Error:_Cannot_init_OpenSSL_SHA1.
push 2
mov ecx, eax
call fcn.0044f2f0
call fcn.004f0810
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
lea ecx, [ebp - 0x78]
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
call fcn.005379a0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4f0e25
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4f0b3c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4f0fab
push edx
push ecx
call fcn.006779b1
add esp, 8
jmp 0x4f0e25
push 0x400
call fcn.00677616
add esp, 4
mov esi, eax
mov dword [ebp - 0x34], esi
push 0x400
push 0
lea edi, [esi + 0x400]
push esi
mov dword [ebp - 0x2c], edi
call fcn.00679eb0
add esp, 0xc
mov dword [ebp - 0x30], edi
mov eax, dword [ebp - 0x7c]
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 8
jb 0x4f0b88
mov eax, dword [eax]
push 0x40
push 0x75351c
push eax
call fcn.0068c038
add esp, 0xc
mov dword [ebp - 0x7c], eax
test eax, eax
jne 0x4f0c4f
call fcn.004486f0
lea ecx, [ebp - 0x28]
push ecx
push str._0._Error:_Cannot_open_file_for_read.
push 2
mov ecx, eax
call fcn.0044f2f0
call fcn.004f0810
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
test esi, esi
je 0x4f0c04
sub edi, esi
cmp edi, 0x1000
jb 0x4f0bfa
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x4f0fab
mov esi, ecx
push edi
push esi
call fcn.006779b1
add esp, 8
lea ecx, [ebp - 0x78]
call fcn.005379a0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4f0e25
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4f0c40
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4f0fab
push edx
push ecx
call fcn.006779b1
add esp, 8
jmp 0x4f0e25
push eax
push 0x400
push 1
push esi
call fcn.0068ca62
mov ebx, dword [ebp + 8]
add esp, 0x10
mov ecx, dword [ebp + 0xc]
cmp eax, 0xffffffff
je 0x4f0cce
nop dword [eax + eax]
test eax, eax
je 0x4f0cce
xor edx, edx
cmp edx, ecx
jb 0x4f0c82
ja 0x4f0c80
cmp eax, ebx
jbe 0x4f0c82
mov eax, ebx
push eax
sub ebx, eax
push esi
push dword [ebp - 0x8c]
sbb ecx, edx
mov dword [ebp - 0x84], ecx
call fcn.005af210
add esp, 0xc
test eax, eax
je 0x4f0e43
test ebx, ebx
jne 0x4f0cb0
cmp dword [ebp - 0x84], ebx
je 0x4f0cce
push dword [ebp - 0x7c]
push 0x400
push 1
push esi
call fcn.0068ca62
mov ecx, dword [ebp - 0x84]
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4f0c70
push dword [ebp - 0x7c]
call fcn.0068c419
add esp, 4
cmp eax, 0xffffffff
jne 0x4f0cf5
call fcn.004486f0
lea ecx, [ebp - 0x28]
push ecx
push str._0._Error:_Cannot_correctly_close_the_file.
push 2
mov ecx, eax
call fcn.0044f2f0
push 0x40
call fcn.00677616
add esp, 4
mov ebx, eax
mov dword [ebp - 0x98], ebx
push 0x40
lea eax, [ebx + 0x40]
push 0
push ebx
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x90], eax
call fcn.00679eb0
mov eax, dword [ebp - 0x7c]
add esp, 0xc
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0xc
push eax
push ebx
push dword [ebp - 0x8c]
call fcn.005aefe0
add esp, 0xc
test eax, eax
jne 0x4f0ef2
call fcn.004486f0
lea ecx, [ebp - 0x28]
push ecx
push str._0._Error:_Cannot_finalize_OpenSSL_SHA1
push 2
mov ecx, eax
call fcn.0044f2f0
call fcn.004f0810
mov eax, dword [ebp - 0x80]
mov dword [eax], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
test ebx, ebx
je 0x4f0db2
mov ecx, dword [ebp - 0x7c]
sub ecx, ebx
cmp ecx, 0x1000
jb 0x4f0da8
mov edx, dword [ebx - 4]
add ecx, 0x23
sub ebx, edx
lea eax, [ebx - 4]
cmp eax, 0x1f
ja 0x4f0fab
mov ebx, edx
push ecx
push ebx
call fcn.006779b1
add esp, 8
test esi, esi
je 0x4f0de0
sub edi, esi
cmp edi, 0x1000
jb 0x4f0dd6
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x4f0fab
mov esi, ecx
push edi
push esi
call fcn.006779b1
add esp, 8
lea ecx, [ebp - 0x78]
call fcn.005379a0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4f0e22
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4f0e18
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4f0fab
push edx
push ecx
call fcn.006779b1
add esp, 8
mov ebx, dword [ebp - 0x80]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006773ff
mov esp, ebp
pop ebp
ret
call fcn.004486f0
lea ecx, [ebp - 0x28]
push ecx
push str._0._Error:_Cannot_update_OpenSSL_SHA1
push 2
mov ecx, eax
call fcn.0044f2f0
call fcn.004f0810
mov ebx, dword [ebp - 0x80]
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
test esi, esi
je 0x4f0ea7
sub edi, esi
cmp edi, 0x1000
jb 0x4f0e9d
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x4f0fab
mov esi, ecx
push edi
push esi
call fcn.006779b1
add esp, 8
lea ecx, [ebp - 0x78]
call fcn.005379a0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4f0e25
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4f0ee3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4f0fab
push edx
push ecx
call fcn.006779b1
add esp, 8
jmp 0x4f0e25
push dword [ebp - 0x88]
mov ebx, dword [ebp - 0x80]
lea edx, [ebp - 0x98]
mov ecx, ebx
call fcn.004f04a0
mov ecx, dword [ebp - 0x98]
add esp, 4
test ecx, ecx
je 0x4f0f41
mov edx, dword [ebp - 0x90]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x4f0f37
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4f0fab
push edx
push ecx
call fcn.006779b1
add esp, 8
test esi, esi
je 0x4f0f6b
sub edi, esi
cmp edi, 0x1000
jb 0x4f0f61
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x4f0fab
mov esi, ecx
push edi
push esi
call fcn.006779b1
add esp, 8
lea ecx, [ebp - 0x78]
call fcn.005379a0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4f0e25
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4f0ee3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4f0ee3
call fcn.00682da2
call fcn.00682da2
int3