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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4186f6
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x4212d0]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push esi
push edi
mov eax, dword [0x4212d0]
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.0040ea22
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
jne 0x407e1a
mov eax, dword [esp + 0x14]
mov dword [eax + 4], 0xfffffffd
jmp 0x408122
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 0x407e3f
mov edx, dword [esp + 0x14]
mov dword [edx + 4], 0xffffffff
jmp 0x408122
mov edx, dword [esp + 0x1c]
push edi
call fcn.00407d10
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
cmp esi, ebx
jne 0x407e66
mov eax, dword [esp + 0x14]
mov dword [eax + 4], 0xfffffffe
jmp 0x408122
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.00413190
mov eax, dword [esi + 0x40]
add esp, 0xc
push edi
lea esi, [esp + 0x70]
call fcn.004078f0
lea edx, [esp + 0xd4]
add esp, 4
push edx
mov ebx, esi
call fcn.00407990
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 0x407f1a
sub edx, 4
add eax, 4
cmp edx, 4
jae 0x407ef0
mov ecx, dword [esp + 0x14]
xor ebx, ebx
mov dword [ecx + 4], ebx
mov dword [esp + 0x28], ebx
cmp dword [esi + 0x44], ebx
jbe 0x408120
jmp 0x407f32
mov eax, dword [esp + 0x14]
mov dword [eax + 4], 0xfffffffe
jmp 0x408120
xor ebx, ebx
push ebx
push 0x41e462
lea ecx, [esp + 0x58]
call fcn.00403a90
mov edx, dword [edi + 4]
push edx
lea esi, [edi + 0x18]
push esi
lea eax, [esp + 0x58]
call fcn.00402ad0
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.00407b20
mov eax, dword [esp + 0x48]
cmp eax, ebx
je 0x4080bc
push eax
mov dword [esp + 0x28], eax
call fcn.0040ea22
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
cmp esi, ebx
je 0x4080da
cmp dword [esp + 0x4c], 0x10
mov eax, dword [esp + 0x38]
jae 0x407fb9
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x24]
push ecx
push eax
push esi
call fcn.00413210
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.00413190
mov eax, dword [esp + 0x30]
add esp, 0xc
push esi
lea esi, [esp + 0x70]
call fcn.004078f0
lea eax, [esp + 0xd4]
add esp, 4
push eax
mov ebx, esi
call fcn.00407990
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 0x4080fa
sub edx, 4
add eax, 4
cmp edx, 4
jae 0x408050
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x18]
add ecx, esi
call fcn.004083e0
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 0x4080a4
mov edx, dword [esp + 0x38]
push edx
call fcn.0040eded
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 0x407f30
jmp 0x408120
mov edx, esi
mov byte [esp + 0xf0], bl
cmp dword [esp + 0x4c], 0x10
mov dword [edx + 4], 0xfffffffe
jb 0x408120
mov eax, dword [esp + 0x38]
push eax
jmp 0x408118
mov ecx, dword [esp + 0x14]
mov byte [esp + 0xf0], bl
cmp dword [esp + 0x4c], 0x10
mov dword [ecx + 4], 0xfffffffd
jb 0x408120
mov edx, dword [esp + 0x38]
push edx
jmp 0x408118
mov eax, dword [esp + 0x14]
mov byte [esp + 0xf0], 0
mov dword [eax + 4], 0xfffffffe
cmp dword [esp + 0x4c], esi
jb 0x408120
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0040eded
add esp, 4
xor ebx, ebx
mov esi, dword [esp + 0x14]
cmp dword [esi + 4], ebx
je 0x408132
mov eax, esi
call fcn.00408190
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x408143
push eax
call fcn.0040e945
add esp, 4
xor edx, edx
cmp dword [esi + 4], ebx
sete dl
cmp dword [esp + 0x68], 0x10
mov esi, edx
jb 0x408161
mov eax, dword [esp + 0x54]
push eax
call fcn.0040eded
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.0040e340
mov esp, ebp
pop ebp
ret 4