Function at 0x40679b
Capabilities:
Get file size
Hash data with md5
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x461008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x84], edx
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x8c], edi
cmp edi, 0xffffffff
je 0x406987
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x406980
cmp esi, 0x400000
jae 0x40685d
push esi
call fcn.0042cfcd
pop ecx
push ebx
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
push ecx
push esi
push eax
push edi
mov dword [ebp - 0x74], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40684f
cmp dword [ebp - 0x74], esi
jne 0x40684f
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x14]
push eax
mov edx, esi
call fcn.0040673e
mov esi, dword [ebp - 0x84]
pop ecx
movzx eax, byte [ebp + ebx - 0x14]
push eax
push 0x452b90
push 3
push esi
call fcn.0042d0c2
add esp, 0x10
add esi, 4
inc ebx
cmp ebx, 0x10
jl 0x406830
push dword [ebp - 0x78]
call fcn.0042d9d5
pop ecx
jmp 0x406980
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, eax
mov dword [ebp - 0x80], ecx
cmp ecx, 0xffffffff
je 0x406987
mov eax, esi
mov dword [ebp - 0x5c], ebx
shr eax, 0x10
mov edx, ebx
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x70], 0x67452301
mov dword [ebp - 0x6c], 0xefcdab89
mov dword [ebp - 0x68], 0x98badcfe
mov dword [ebp - 0x64], 0x10325476
mov dword [ebp - 0x78], ebx
test eax, eax
je 0x406903
push 0x10000
push edx
push ebx
push 4
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x88], eax
test eax, eax
je 0x406977
push 0x10000
mov edx, eax
lea ecx, [ebp - 0x70]
call fcn.00405ed7
pop ecx
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x78]
add edx, 0x10000
mov ecx, dword [ebp - 0x80]
inc eax
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x78], eax
cmp eax, dword [ebp - 0x7c]
jb 0x4068ae
test si, si
je 0x406933
push ebx
push edx
push ebx
push 4
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x406977
sub esi, dword [ebp - 0x74]
lea ecx, [ebp - 0x70]
push esi
mov edx, eax
call fcn.00405ed7
pop ecx
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov byte [ebp - 0x14], bl
lea edi, [ebp - 0x13]
xor eax, eax
lea edx, [ebp - 0x70]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00405f91
mov esi, dword [ebp - 0x84]
movzx eax, byte [ebp + ebx - 0x14]
push eax
push 0x452b90
push 3
push esi
call fcn.0042d0c2
add esp, 0x10
add esi, 4
inc ebx
cmp ebx, 0x10
jl 0x406952
mov edi, dword [ebp - 0x8c]
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042cfd6
mov esp, ebp
pop ebp
ret