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

Disassembly:
push 0x120
mov eax, 0x46beff
call fcn.00450f2e
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0x12c], ebx
call fcn.0040271a
xor edi, edi
inc edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x12c], edi
cmp dword [ebp - 0xfc], ebx
je 0x40d4c2
push ebx
push 0x80
push 3
push ebx
push edi
push connect
push dword [ebp - 0xfc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xfc], eax
cmp eax, 0xffffffff
je 0x40d4c2
lea ecx, [ebp - 0x128]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40d4b6
mov esi, 0x4000000
push esi
call fcn.0044b6ce
pop ecx
mov dword [ebp - 0x110], eax
cmp eax, ebx
je 0x40d4b6
push esi
push ebx
push eax
call fcn.00450fd0
add esp, 0xc
push ebx
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0xf8], vtable.MD5.0
mov dword [ebp - 0x9c], 0xf
call fcn.004015d4
push 0x3f
lea eax, [ebp - 0xf3]
push ebx
push eax
mov byte [ebp - 0xf4], 0x80
call fcn.00450fd0
add esp, 0xc
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0x128]
xor eax, eax
mov byte [ebp - 0x20], bl
lea edi, [ebp - 0x1f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x124]
cmp eax, ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x98], 0x67452301
mov dword [ebp - 0x94], 0xefcdab89
mov dword [ebp - 0x90], 0x98badcfe
mov dword [ebp - 0x8c], 0x10325476
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0x104], ebx
jl 0x40d438
jg 0x40d3aa
cmp ecx, ebx
jbe 0x40d438
push ebx
push ebx
push dword [ebp - 0x104]
push dword [ebp - 0x108]
push dword [ebp - 0xfc]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x40d438
push ebx
lea eax, [ebp - 0x11c]
push eax
push esi
push dword [ebp - 0x110]
mov dword [ebp - 0x11c], ebx
push dword [ebp - 0xfc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40d438
mov edi, dword [ebp - 0x11c]
cmp edi, ebx
je 0x40d438
push dword [ebp - 0x110]
mov eax, edi
lea ecx, [ebp - 0x98]
call fcn.00411d20
add dword [ebp - 0x108], edi
adc dword [ebp - 0x104], ebx
sub dword [ebp - 0x118], edi
sbb dword [ebp - 0x114], ebx
cmp dword [ebp - 0x114], ebx
jg 0x40d3aa
jl 0x40d438
cmp dword [ebp - 0x118], ebx
ja 0x40d3aa
mov eax, dword [ebp - 0x108]
cmp eax, dword [ebp - 0x128]
jne 0x40d49c
mov eax, dword [ebp - 0x104]
cmp eax, dword [ebp - 0x124]
jne 0x40d49c
lea eax, [ebp - 0x20]
push eax
lea edi, [ebp - 0x98]
lea ecx, [ebp - 0xf8]
call fcn.00412493
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00412514
mov byte [ebp - 4], 2
cmp dword [ebp - 0x24], 0x10
mov eax, dword [ebp - 0x38]
jae 0x40d485
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x10c]
call fcn.00401c3f
push ebx
push 1
lea ecx, [ebp - 0x3c]
call fcn.0040150f
push dword [ebp - 0x110]
call fcn.0044baf0
pop ecx
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], bl
call fcn.00411d0d
push dword [ebp - 0xfc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10c]
call fcn.0040d54b
mov eax, dword [ebp - 0x10c]
call fcn.00450fb1
ret 4