Function at 0x40a7ba
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x9b4
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
mov eax, dword [ebp + 0x14]
mov byte [eax], 0
mov eax, dword [ebp + 0x18]
mov byte [eax], 0
mov byte [ebp - 0x21], 0
cmp dword [ebp + 0xc], 0
jne 0x40a81f
cmp dword [ebp + 0x1c], 0
jne 0x40a7f4
mov eax, 0x4ead20
jmp 0x40a7f9
mov eax, 0x4ead23
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.wfopen
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40a9fc
mov eax, 0xffffffff
jmp 0x40ac84
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
jmp 0x40a833
add dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x1c]
lea edx, [eax*4]
mov eax, dword [ebp + 0xc]
add eax, edx
mov eax, dword [eax]
test eax, eax
jne 0x40a82f
mov eax, dword [ebp - 0x1c]
add eax, 2
mov dword [esp + 4], 4
mov dword [esp], eax
call sym._calloc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40a8af
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov ebx, eax
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x4ead28
mov dword [esp + 8], global___func__.184
mov dword [esp + 4], 0x3b
mov dword [esp], str.os_crypto_md5_sha1_sha256_md5_sha1_sha256_op.c
call dbg._merror_exit
mov dword [ebp - 0x1c], 0
jmp 0x40a935
mov eax, dword [ebp - 0x1c]
lea edx, [eax*4]
mov eax, dword [ebp + 0xc]
add eax, edx
mov eax, dword [eax]
mov edx, dword [ebp - 0x1c]
lea ecx, [edx*4]
mov edx, dword [ebp - 0x20]
lea ebx, [ecx + edx]
mov dword [esp], eax
call sym._strdup
mov dword [ebx], eax
mov eax, dword [ebx]
test eax, eax
jne 0x40a931
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov ebx, eax
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x4ead28
mov dword [esp + 8], global___func__.184
mov dword [esp + 4], 0x3d
mov dword [esp], str.os_crypto_md5_sha1_sha256_md5_sha1_sha256_op.c
call dbg._merror_exit
add dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x1c]
lea edx, [eax*4]
mov eax, dword [ebp + 0xc]
add eax, edx
mov eax, dword [eax]
test eax, eax
jne 0x40a8b8
mov eax, dword [ebp - 0x1c]
lea edx, [eax*4]
mov eax, dword [ebp - 0x20]
lea ebx, [edx + eax]
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strdup
mov dword [ebx], eax
mov eax, dword [ebx]
test eax, eax
jne 0x40a9b9
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov ebx, eax
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x4ead28
mov dword [esp + 8], global___func__.184
mov dword [esp + 4], 0x40
mov dword [esp], str.os_crypto_md5_sha1_sha256_md5_sha1_sha256_op.c
call dbg._merror_exit
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [esp + 8], 1
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
call dbg.wpopenv
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dbg.free_strarray
cmp dword [ebp - 0x18], 0
jne 0x40a9f3
mov eax, 0xffffffff
jmp 0x40ac84
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x924]
mov dword [esp], eax
call sym._MD5_Init
lea eax, [ebp - 0x8c8]
mov dword [esp], eax
call sym._SHA1_Init
lea eax, [ebp - 0x994]
mov dword [esp], eax
call sym._SHA256_Init
jmp 0x40ab12
cmp dword [ebp + 0x20], 0
je 0x40aaa7
mov eax, dword [ebp - 0xc]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x20]
jb 0x40aaa7
mov eax, dword [ebp + 0x20]
lea edx, [eax + 0xfffff]
test eax, eax
cmovs eax, edx
sar eax, 0x14
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._s_filesize_is_larger_than_the_maximum_allowed___d_MB_._File_skipped.
mov dword [esp + 8], global___func__.184
mov dword [esp + 4], 0x57
mov dword [esp], str.os_crypto_md5_sha1_sha256_md5_sha1_sha256_op.c
call dbg._mwarn
cmp dword [ebp + 0xc], 0
jne 0x40aa92
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._fclose
jmp 0x40aa9d
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call dbg.wpclose
mov eax, 0xffffffff
jmp 0x40ac84
lea edx, [ebp - 0x822]
mov eax, dword [ebp - 0xc]
add eax, edx
mov byte [eax], 0
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
lea eax, [ebp - 0x822]
mov dword [esp + 4], eax
lea eax, [ebp - 0x8c8]
mov dword [esp], eax
call sym._SHA1_Update
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
lea eax, [ebp - 0x822]
mov dword [esp + 4], eax
lea eax, [ebp - 0x994]
mov dword [esp], eax
call sym._SHA256_Update
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
lea eax, [ebp - 0x822]
mov dword [esp + 4], eax
lea eax, [ebp - 0x924]
mov dword [esp], eax
call sym._MD5_Update
mov eax, dword [ebp - 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x800
mov dword [esp + 4], 1
lea eax, [ebp - 0x822]
mov dword [esp], eax
call sym._fread
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40aa2b
lea eax, [ebp - 0x8c8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x836]
mov dword [esp], eax
call sym._SHA1_Final
lea eax, [ebp - 0x994]
mov dword [esp + 4], eax
lea eax, [ebp - 0x866]
mov dword [esp], eax
call sym._SHA256_Final
lea eax, [ebp - 0x924]
mov dword [esp + 4], eax
lea eax, [ebp - 0x846]
mov dword [esp], eax
call sym._MD5_Final
mov dword [ebp - 0xc], 0
jmp 0x40abcd
lea edx, [ebp - 0x846]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
movzx eax, al
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x4eadd8
mov dword [esp + 4], 3
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sym._snprintf_2
add dword [ebp + 0x10], 2
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0xf
jbe 0x40ab95
mov dword [ebp - 0xc], 0
jmp 0x40ac14
lea edx, [ebp - 0x836]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
movzx eax, al
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x4eadd8
mov dword [esp + 4], 3
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call sym._snprintf_2
add dword [ebp + 0x14], 2
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0x13
jbe 0x40abdc
mov dword [ebp - 0xc], 0
jmp 0x40ac5b
lea edx, [ebp - 0x866]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
movzx eax, al
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x4eadd8
mov dword [esp + 4], 3
mov eax, dword [ebp + 0x18]
mov dword [esp], eax
call sym._snprintf_2
add dword [ebp + 0x18], 2
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0x1f
jbe 0x40ac23
cmp dword [ebp + 0xc], 0
jne 0x40ac74
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._fclose
jmp 0x40ac7f
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call dbg.wpclose
mov eax, 0
mov ebx, dword [ebp - 4]
leave
ret