Function at 0x408410
Capabilities:
Get file size
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x418dc6
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x4222d0]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push esi
push edi
mov eax, dword [0x4222d0]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x14], eax
mov esi, ecx
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
push ebx
mov dword [esp + 0xf4], ebx
push esi
mov dword [eax + 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
call fcn.0040f0b2
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
jne 0x4084aa
mov eax, dword [esp + 0x14]
mov dword [eax + 4], 0xfffffffd
jmp 0x4087b2
push ebx
lea ecx, [esp + 0x34]
push ecx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp edi, dword [esp + 0x30]
je 0x4084cf
mov edx, dword [esp + 0x14]
mov dword [edx + 4], 0xffffffff
jmp 0x4087b2
mov edx, dword [esp + 0x1c]
push edi
call fcn.004083a0
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
cmp esi, ebx
jne 0x4084f6
mov eax, dword [esp + 0x14]
mov dword [eax + 4], 0xfffffffe
jmp 0x4087b2
push 0x40
lea ecx, [esp + 0x8c]
push ebx
push ecx
lea edi, [esi + 0x58]
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x78], 0x67452301
mov dword [esp + 0x7c], 0xefcdab89
mov dword [esp + 0x80], 0x98badcfe
mov dword [esp + 0x84], 0x10325476
call fcn.00413820
mov eax, dword [esi + 0x40]
add esp, 0xc
push edi
lea esi, [esp + 0x70]
call fcn.00407f80
lea edx, [esp + 0xd4]
add esp, 4
push edx
mov ebx, esi
call fcn.00408020
mov esi, dword [esp + 0x1c]
lea eax, [esi + 0x48]
lea ecx, [esp + 0xd4]
add esp, 4
mov edx, 0x10
sub ecx, eax
mov edi, edi
mov ebx, dword [ecx + eax]
cmp ebx, dword [eax]
jne 0x4085aa
sub edx, 4
add eax, 4
cmp edx, 4
jae 0x408580
mov ecx, dword [esp + 0x14]
xor ebx, ebx
mov dword [ecx + 4], ebx
mov dword [esp + 0x28], ebx
cmp dword [esi + 0x44], ebx
jbe 0x4087b0
jmp 0x4085c2
mov eax, dword [esp + 0x14]
mov dword [eax + 4], 0xfffffffe
jmp 0x4087b0
xor ebx, ebx
push ebx
push 0x41f45e
lea ecx, [esp + 0x58]
call fcn.00403d70
mov edx, dword [edi + 4]
push edx
lea esi, [edi + 0x18]
push esi
lea eax, [esp + 0x58]
call fcn.00402c50
add esi, dword [edi + 4]
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x2c], esi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0xf4], 1
mov ecx, dword [edi]
mov eax, esi
mov esi, dword [esp + 0x18]
call fcn.004081b0
mov eax, dword [esp + 0x48]
cmp eax, ebx
je 0x40874c
push eax
mov dword [esp + 0x28], eax
call fcn.0040f0b2
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
cmp esi, ebx
je 0x40876a
cmp dword [esp + 0x4c], 0x10
mov eax, dword [esp + 0x38]
jae 0x408649
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x24]
push ecx
push eax
push esi
call fcn.004138a0
add esp, 0xc
push 0x40
lea edx, [esp + 0x8c]
push ebx
push edx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x78], 0x67452301
mov dword [esp + 0x7c], 0xefcdab89
mov dword [esp + 0x80], 0x98badcfe
mov dword [esp + 0x84], 0x10325476
call fcn.00413820
mov eax, dword [esp + 0x30]
add esp, 0xc
push esi
lea esi, [esp + 0x70]
call fcn.00407f80
lea eax, [esp + 0xd4]
add esp, 4
push eax
mov ebx, esi
call fcn.00408020
mov esi, 0x10
lea eax, [edi + 8]
lea ecx, [esp + 0xd4]
add esp, 4
mov edx, esi
sub ecx, eax
lea esp, [esp]
mov ebx, dword [ecx + eax]
cmp ebx, dword [eax]
jne 0x40878a
sub edx, 4
add eax, 4
cmp edx, 4
jae 0x4086e0
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x18]
add ecx, esi
call fcn.00408a90
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov edi, dword [edi]
add edi, dword [esp + 0x2c]
mov byte [esp + 0xf0], 0
cmp dword [esp + 0x4c], esi
jb 0x408734
mov edx, dword [esp + 0x38]
push edx
call fcn.0040f47d
add esp, 4
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [ecx + 0x44]
jb 0x4085c0
jmp 0x4087b0
mov edx, esi
mov byte [esp + 0xf0], bl
cmp dword [esp + 0x4c], 0x10
mov dword [edx + 4], 0xfffffffe
jb 0x4087b0
mov eax, dword [esp + 0x38]
push eax
jmp 0x4087a8
mov ecx, dword [esp + 0x14]
mov byte [esp + 0xf0], bl
cmp dword [esp + 0x4c], 0x10
mov dword [ecx + 4], 0xfffffffd
jb 0x4087b0
mov edx, dword [esp + 0x38]
push edx
jmp 0x4087a8
mov eax, dword [esp + 0x14]
mov byte [esp + 0xf0], 0
mov dword [eax + 4], 0xfffffffe
cmp dword [esp + 0x4c], esi
jb 0x4087b0
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0040f47d
add esp, 4
xor ebx, ebx
mov esi, dword [esp + 0x14]
cmp dword [esi + 4], ebx
je 0x4087c2
mov eax, esi
call fcn.00408820
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4087d3
push eax
call fcn.0040efd5
add esp, 4
xor edx, edx
cmp dword [esi + 4], ebx
sete dl
cmp dword [esp + 0x68], 0x10
mov esi, edx
jb 0x4087f1
mov eax, dword [esp + 0x54]
push eax
call fcn.0040f47d
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.0040e9d0
mov esp, ebp
pop ebp
ret 4