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

Disassembly:
push 0x120
mov eax, 0x46c67e
call fcn.004515c0
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.00402710
xor edi, edi
inc edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x12c], edi
cmp dword [ebp - 0xfc], ebx
je 0x40d479
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 0x40d479
lea ecx, [ebp - 0x128]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40d46d
mov esi, 0x4000000
push esi
call fcn.0044bd5e
pop ecx
mov dword [ebp - 0x110], eax
cmp eax, ebx
je 0x40d46d
push esi
push ebx
push eax
call fcn.00451670
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.00451670
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 0x40d3ef
jg 0x40d361
cmp ecx, ebx
jbe 0x40d3ef
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 0x40d3ef
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 0x40d3ef
mov edi, dword [ebp - 0x11c]
cmp edi, ebx
je 0x40d3ef
push dword [ebp - 0x110]
mov eax, edi
lea ecx, [ebp - 0x98]
call fcn.00411ced
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 0x40d361
jl 0x40d3ef
cmp dword [ebp - 0x118], ebx
ja 0x40d361
mov eax, dword [ebp - 0x108]
cmp eax, dword [ebp - 0x128]
jne 0x40d453
mov eax, dword [ebp - 0x104]
cmp eax, dword [ebp - 0x124]
jne 0x40d453
lea eax, [ebp - 0x20]
push eax
lea edi, [ebp - 0x98]
lea ecx, [ebp - 0xf8]
call fcn.00412460
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004124e1
mov byte [ebp - 4], 2
cmp dword [ebp - 0x24], 0x10
mov eax, dword [ebp - 0x38]
jae 0x40d43c
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x10c]
call fcn.00401c35
push ebx
push 1
lea ecx, [ebp - 0x3c]
call fcn.0040150f
push dword [ebp - 0x110]
call fcn.0044c180
pop ecx
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], bl
call fcn.00411cda
push dword [ebp - 0xfc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10c]
call fcn.0040d502
mov eax, dword [ebp - 0x10c]
call fcn.00451643
ret 4