Function at 0x10002090
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 [0x10021138]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [ebp + 8]
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 + 0x50], ecx
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 0x10002314
lea edx, [esp + 0x28]
xor eax, eax
push edx
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]
push 1
push ebx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
push ebx
push eax
call fcn.1000fc90
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 0x10002208
cmp eax, 1
ja 0x10002208
jb 0x10002167
cmp ecx, edx
ja 0x10002208
push 0x100226e0
push 0x8000
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], edx
call fcn.100043fa
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x100022f4
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x8000
push ebx
push esi
call edi
test eax, eax
je 0x100021e7
lea esp, [esp]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x100021e7
add dword [esp + 0x10], eax
push ebx
lea ecx, [esp + 0x3c]
adc dword [esp + 0x18], 0
call fcn.10015810
push 0
lea edx, [esp + 0x10]
push edx
push 0x8000
push ebx
push esi
mov dword [esp + 0x20], 0
call edi
test eax, eax
jne 0x100021b0
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x18]
jne 0x100022d2
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x1c]
je 0x100022b9
jmp 0x100022d2
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 0x100022f4
cmp dword [esp + 0x1c], ebx
jl 0x100022b7
mov esi, dword [esp + 0x18]
jg 0x10002248
test esi, esi
jbe 0x100022b7
jmp 0x10002248
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
xor eax, eax
mov edx, edi
sar edx, 0x1f
mov ecx, ebx
sub ecx, eax
mov edx, ebx
add edx, 0x80000
mov eax, edi
adc eax, 0
cmp eax, dword [esp + 0x1c]
jg 0x10002273
jl 0x1000226c
cmp edx, esi
ja 0x10002273
mov esi, 0x80000
jmp 0x10002275
sub esi, ebx
push esi
push ecx
mov ecx, dword [esp + 0x2c]
push edi
push 4
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x100022e1
push ebx
mov eax, esi
lea ecx, [esp + 0x3c]
call fcn.10015810
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
add dword [esp + 0x10], esi
adc edi, 0
cmp edi, dword [esp + 0x1c]
jl 0x10002240
jg 0x100022b7
mov edx, dword [esp + 0x18]
cmp dword [esp + 0x10], edx
jb 0x10002240
xor ebx, ebx
mov edi, dword [esp + 0x34]
lea esi, [esp + 0x38]
call fcn.100158b0
mov esi, dword [esp + 0x30]
mov dword [esp + 0x2c], 1
test ebx, ebx
je 0x100022e5
push ebx
call fcn.100043ff
add esp, 4
jmp 0x100022e5
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x100022f4
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.10004387
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.10004387
mov esp, ebp
pop ebp
ret