Function at 0x48098e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov eax, 0x100fc
call fcn.004d7290
sub esp, eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x100e0], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x100dc], eax
mov dword [ebp - 0x2c], 0
mov dword [esp + 8], 0x29
mov dword [esp + 4], 0
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sym._memset
mov byte [ebp - 0x31], 0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._SHA1_Init
mov dword [ebp - 0x30], 0
cmp dword [ebp + 0x14], 0
jne 0x4809f7
mov edx, 0x500c60
jmp 0x4809fc
mov edx, 0x500c63
lea eax, [ebp - 0x10078]
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.w_fopen_r
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x480a28
mov eax, 0xffffffff
jmp 0x480bc9
mov edx, dword [ebp - 0x10048]
mov eax, dword [ebp - 0x1004c]
add eax, edx
mov dword [ebp - 0x30], eax
cmp dword [ebp + 0x20], 0
je 0x480a8d
cmp dword [ebp - 0x30], 0
je 0x480a8d
mov eax, dword [ebp + 0x20]
cmp eax, dword [ebp - 0x30]
je 0x480a8d
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.The_inode_does_not_belong_to_file__s._The_hash_of_the_file_will_be_ignored.
mov dword [esp + 8], str.OS_SHA1_File_Nbytes_with_fp_check
mov dword [esp + 4], 0xb3
mov dword [esp], str.os_crypto_sha1_sha1_op.c
call dbg._mdebug1
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._fclose
mov eax, 0xfffffffe
jmp 0x480bc9
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
jmp 0x480b5a
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
add eax, 0x800
adc edx, 0
cmp eax, dword [ebp - 0x100e0]
mov eax, edx
sbb eax, dword [ebp - 0x100dc]
jge 0x480aef
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x800
mov dword [esp + 4], 1
lea eax, [ebp - 0x10030]
mov dword [esp], eax
call sym._fread
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
jmp 0x480b25
mov edx, dword [ebp - 0x100e0]
mov eax, dword [ebp - 0x28]
sub edx, eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 1
lea eax, [ebp - 0x10030]
mov dword [esp], eax
call sym._fread
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
lea edx, [ebp - 0x10030]
mov eax, dword [ebp - 0x20]
add eax, edx
mov byte [eax], 0
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], eax
lea eax, [ebp - 0x10030]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._SHA1_Update
add dword [ebp - 0x28], 0x800
adc dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x100e0]
mov eax, edx
sbb eax, dword [ebp - 0x100dc]
jl 0x480aa0
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x100d8]
mov ebx, edx
mov edx, 0x18
mov edi, eax
mov esi, ebx
mov ecx, edx
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x100d8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x10044]
mov dword [esp], eax
call sym._SHA1_Final
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
lea eax, [ebp - 0x10044]
mov dword [esp], eax
call dbg.OS_SHA1_Hexdigest
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._fclose
mov eax, 0
add esp, 0x100fc
pop ebx
pop esi
pop edi
pop ebp
ret