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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
xor ebx, ebx
push eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x1c], esi
je 0x40a555
lea ecx, [esp + 0x10]
xor eax, eax
push ecx
push esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x38], 0x67452301
mov dword [esp + 0x3c], 0xefcdab89
mov dword [esp + 0x40], 0x98badcfe
mov dword [esp + 0x44], 0x10325476
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 0x10]
push 1
push ebx
push ebx
push edx
mov dword [esp + 0x1c], eax
call fcn.004263e0
mov ecx, dword [esp + 0xc]
add eax, ecx
mov dword [esp + 0x20], eax
mov eax, ebx
adc edx, eax
mov dword [esp + 0x24], edx
xor edx, edx
cmp dword [esp + 0x10], edx
ja 0x40a459
cmp eax, 1
ja 0x40a459
jb 0x40a3bf
cmp ecx, edx
ja 0x40a459
push 0x445310
push 0x8000
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x14], edx
call fcn.00411166
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40a543
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x10]
push eax
push 0x8000
push ebx
push esi
call edi
test eax, eax
je 0x40a438
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40a438
add dword [esp + 0x28], eax
push ebx
lea ecx, [esp + 0x34]
adc dword [esp + 0x30], 0
call fcn.004166c0
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x8000
push ebx
push esi
mov dword [esp + 0x20], 0
call edi
test eax, eax
jne 0x40a401
mov edx, dword [esp + 0x28]
cmp edx, dword [esp + 0x20]
jne 0x40a521
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x24]
je 0x40a509
jmp 0x40a521
push edx
push edx
push edx
push 2
push edx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
mov dword [esp + 0x14], eax
je 0x40a543
cmp dword [esp + 0x24], ebx
jl 0x40a507
mov esi, dword [esp + 0x20]
jg 0x40a498
test esi, esi
jbe 0x40a507
jmp 0x40a498
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
mov ecx, edi
sar ecx, 0x1f
xor edx, edx
mov ecx, ebx
sub ecx, edx
mov edx, ebx
add edx, 0x80000
mov eax, edi
adc eax, 0
cmp eax, dword [esp + 0x24]
jg 0x40a4c3
jl 0x40a4bc
cmp edx, esi
ja 0x40a4c3
mov esi, 0x80000
jmp 0x40a4c5
sub esi, ebx
mov eax, dword [esp + 0x14]
push esi
push ecx
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x40a530
push ebx
mov eax, esi
lea ecx, [esp + 0x34]
call fcn.004166c0
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
add dword [esp + 0x28], esi
adc edi, 0
cmp edi, dword [esp + 0x24]
jl 0x40a490
jg 0x40a507
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x28], ecx
jb 0x40a490
xor ebx, ebx
mov edi, dword [ebp + 8]
lea esi, [esp + 0x30]
call fcn.00416760
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x18], 1
test ebx, ebx
je 0x40a534
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
jmp 0x40a534
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40a543
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret