Function at 0x403de0
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, 0x8c
mov eax, dword [0x486534]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x34], eax
call fcn.00424d20
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
xor ebx, ebx
push esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x40], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x30], esi
je 0x404064
lea ecx, [esp + 0x28]
xor eax, eax
push ecx
push esi
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x40], 0x67452301
mov dword [esp + 0x44], 0xefcdab89
mov dword [esp + 0x48], 0x98badcfe
mov dword [esp + 0x4c], 0x10325476
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 0x28]
push 1
push ebx
push ebx
push edx
mov dword [esp + 0x1c], eax
call fcn.00410cd0
mov ecx, dword [esp + 0xc]
add eax, ecx
mov dword [esp + 0x18], eax
mov eax, ebx
adc edx, eax
mov dword [esp + 0x1c], edx
xor edx, edx
cmp dword [esp + 0x28], edx
ja 0x403f58
cmp eax, 1
ja 0x403f58
jb 0x403ebe
cmp ecx, edx
ja 0x403f58
push 0x487780
push 0x8000
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], edx
call fcn.004047b2
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x404044
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 0x403f37
mov eax, dword [esp + 0xc]
test eax, eax
je 0x403f37
add dword [esp + 0x10], eax
push ebx
lea ecx, [esp + 0x3c]
adc dword [esp + 0x18], 0
call fcn.0041c390
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 0x403f00
mov edx, dword [esp + 0x10]
cmp edx, dword [esp + 0x18]
jne 0x404022
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x1c]
je 0x404009
jmp 0x404022
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 + 0x24], eax
je 0x404044
cmp dword [esp + 0x1c], ebx
jl 0x404007
mov esi, dword [esp + 0x18]
jg 0x403f98
test esi, esi
jbe 0x404007
jmp 0x403f98
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
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 + 0x1c]
jg 0x403fc3
jl 0x403fbc
cmp edx, esi
ja 0x403fc3
mov esi, 0x80000
jmp 0x403fc5
sub esi, ebx
mov eax, dword [esp + 0x24]
push esi
push ecx
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x404031
push ebx
mov eax, esi
lea ecx, [esp + 0x3c]
call fcn.0041c390
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
add dword [esp + 0x10], esi
adc edi, 0
cmp edi, dword [esp + 0x1c]
jl 0x403f90
jg 0x404007
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x10], ecx
jb 0x403f90
xor ebx, ebx
mov edi, dword [esp + 0x34]
lea esi, [esp + 0x38]
call fcn.0041c430
mov esi, dword [esp + 0x30]
mov dword [esp + 0x2c], 1
test ebx, ebx
je 0x404035
push ebx
call fcn.004047b7
add esp, 4
jmp 0x404035
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x404044
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0040473f
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x94]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0040473f
mov esp, ebp
pop ebp
ret