Function at 0x100a5080
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102a1153
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x10373f78]
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.1004f0f0
push esi
lea edx, [ebp - 0x40]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.10073ce0
add esp, 4
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x100a5149
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100a513f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a56a0
push edx
push ecx
call fcn.1026505f
add esp, 8
call fcn.1019ca30
mov esi, eax
mov dword [ebp - 0x50], 0x1033600c
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.100a60e0
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x100a51a8
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.1019cee0
push 0
push eax
push esi
call fcn.1019c700
add esp, 0xc
test eax, eax
jne 0x100a523b
call fcn.10048fd0
lea ecx, [ebp - 0x28]
push ecx
push str._0._Error:_Cannot_init_OpenSSL_SHA1.
push 2
mov ecx, eax
call fcn.10071280
call fcn.100a4f20
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
lea ecx, [ebp - 0x78]
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
call fcn.10087250
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x100a5515
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100a522c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a569b
push edx
push ecx
call fcn.1026505f
add esp, 8
jmp 0x100a5515
push 0x400
call fcn.10264bfb
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.10267270
add esp, 0xc
mov dword [ebp - 0x30], edi
mov eax, dword [ebp - 0x7c]
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 8
jb 0x100a5278
mov eax, dword [eax]
push 0x40
push 0x10335de4
push eax
call fcn.10275ed8
add esp, 0xc
mov dword [ebp - 0x7c], eax
test eax, eax
jne 0x100a533f
call fcn.10048fd0
lea ecx, [ebp - 0x28]
push ecx
push str._0._Error:_Cannot_open_file_for_read.
push 2
mov ecx, eax
call fcn.10071280
call fcn.100a4f20
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
test esi, esi
je 0x100a52f4
sub edi, esi
cmp edi, 0x1000
jb 0x100a52ea
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x100a569b
mov esi, ecx
push edi
push esi
call fcn.1026505f
add esp, 8
lea ecx, [ebp - 0x78]
call fcn.10087250
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x100a5515
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100a5330
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a569b
push edx
push ecx
call fcn.1026505f
add esp, 8
jmp 0x100a5515
push eax
push 0x400
push 1
push esi
call fcn.102768e0
mov ebx, dword [ebp + 8]
add esp, 0x10
mov ecx, dword [ebp + 0xc]
cmp eax, 0xffffffff
je 0x100a53be
nop dword [eax + eax]
test eax, eax
je 0x100a53be
xor edx, edx
cmp edx, ecx
jb 0x100a5372
ja 0x100a5370
cmp eax, ebx
jbe 0x100a5372
mov eax, ebx
push eax
sub ebx, eax
push esi
push dword [ebp - 0x8c]
sbb ecx, edx
mov dword [ebp - 0x84], ecx
call fcn.1019c890
add esp, 0xc
test eax, eax
je 0x100a5533
test ebx, ebx
jne 0x100a53a0
cmp dword [ebp - 0x84], ebx
je 0x100a53be
push dword [ebp - 0x7c]
push 0x400
push 1
push esi
call fcn.102768e0
mov ecx, dword [ebp - 0x84]
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100a5360
push dword [ebp - 0x7c]
call fcn.102762b9
add esp, 4
cmp eax, 0xffffffff
jne 0x100a53e5
call fcn.10048fd0
lea ecx, [ebp - 0x28]
push ecx
push str._0._Error:_Cannot_correctly_close_the_file.
push 2
mov ecx, eax
call fcn.10071280
push 0x40
call fcn.10264bfb
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.10267270
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.1019c660
add esp, 0xc
test eax, eax
jne 0x100a55e2
call fcn.10048fd0
lea ecx, [ebp - 0x28]
push ecx
push str._0._Error:_Cannot_finalize_OpenSSL_SHA1
push 2
mov ecx, eax
call fcn.10071280
call fcn.100a4f20
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 0x100a54a2
mov ecx, dword [ebp - 0x7c]
sub ecx, ebx
cmp ecx, 0x1000
jb 0x100a5498
mov edx, dword [ebx - 4]
add ecx, 0x23
sub ebx, edx
lea eax, [ebx - 4]
cmp eax, 0x1f
ja 0x100a569b
mov ebx, edx
push ecx
push ebx
call fcn.1026505f
add esp, 8
test esi, esi
je 0x100a54d0
sub edi, esi
cmp edi, 0x1000
jb 0x100a54c6
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x100a569b
mov esi, ecx
push edi
push esi
call fcn.1026505f
add esp, 8
lea ecx, [ebp - 0x78]
call fcn.10087250
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x100a5512
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100a5508
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a569b
push edx
push ecx
call fcn.1026505f
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.102649e4
mov esp, ebp
pop ebp
ret
call fcn.10048fd0
lea ecx, [ebp - 0x28]
push ecx
push str._0._Error:_Cannot_update_OpenSSL_SHA1
push 2
mov ecx, eax
call fcn.10071280
call fcn.100a4f20
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 0x100a5597
sub edi, esi
cmp edi, 0x1000
jb 0x100a558d
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x100a569b
mov esi, ecx
push edi
push esi
call fcn.1026505f
add esp, 8
lea ecx, [ebp - 0x78]
call fcn.10087250
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x100a5515
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100a55d3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a569b
push edx
push ecx
call fcn.1026505f
add esp, 8
jmp 0x100a5515
push dword [ebp - 0x88]
mov ebx, dword [ebp - 0x80]
lea edx, [ebp - 0x98]
mov ecx, ebx
call fcn.100a4ba0
mov ecx, dword [ebp - 0x98]
add esp, 4
test ecx, ecx
je 0x100a5631
mov edx, dword [ebp - 0x90]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x100a5627
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a569b
push edx
push ecx
call fcn.1026505f
add esp, 8
test esi, esi
je 0x100a565b
sub edi, esi
cmp edi, 0x1000
jb 0x100a5651
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x100a569b
mov esi, ecx
push edi
push esi
call fcn.1026505f
add esp, 8
lea ecx, [ebp - 0x78]
call fcn.10087250
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x100a5515
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100a55d3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100a55d3
call fcn.10275373
call fcn.10275373
int3