Function at 0x402140
Capabilities:
Check for time delay via gettickcount
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409d6b
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x40f018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0xc0], eax
test esi, esi
je 0x4021d3
test eax, eax
je 0x4021d3
push 0x40b344
push esi
call dword [sym.imp.MSVCR100.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4021f1
mov eax, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
push eax
push ecx
push 0x40b348
push ecx
push esi
push ecx
mov ecx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push str.Fail_to_open_file
push ecx
call fcn.004085b0
add esp, 0xc
push eax
call fcn.004085b0
add esp, 0xc
push eax
call fcn.004085b0
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409024
mov esp, ebp
pop ebp
ret
push 2
push 0
push ebx
call dword [sym.imp.MSVCR100.dll_fseek]
add esp, 0xc
push ebx
call dword [sym.imp.MSVCR100.dll_ftell]
add esp, 4
mov edi, eax
push 0x200
mov dword [ebp - 0xb4], edi
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_]
add esp, 4
push 0x200
mov esi, eax
push 0
push esi
call sub.MSVCR100.dll_memset
add esp, 0xc
and edi, 0x800001ff
jns 0x402241
dec edi
or edi, 0xfffffe00
inc edi
xor eax, eax
push 0x40
push eax
lea edx, [ebp - 0x54]
push edx
mov dword [ebp - 0xc4], edi
mov dword [ebp - 0xb0], vtable.MD5_CTX.0
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xac], 0x67452301
mov dword [ebp - 0xa8], 0xefcdab89
mov dword [ebp - 0xa4], 0x98badcfe
mov dword [ebp - 0xa0], 0x10325476
call sub.MSVCR100.dll_memset
add esp, 0xc
mov byte [ebp - 0x54], 0x80
push 0
push 0
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCR100.dll_fseek]
mov eax, 0x200
add esp, 0xc
mov dword [ebp - 0xbc], 0
cmp dword [ebp - 0xb4], eax
jl 0x402360
mov dword [ebp - 0xb8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
sub eax, dword [ebp - 0xbc]
shr eax, 1
cmp eax, 0x64
jb 0x4022ea
mov eax, 0x64
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push 1
push 0x200
push esi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
je 0x40238b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xbc], eax
sub eax, edi
shr eax, 1
cmp eax, 0x64
jb 0x402325
mov eax, 0x64
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
mov eax, 0x200
lea edi, [ebp - 0xb0]
call fcn.00401300
mov eax, dword [ebp - 0xb8]
add eax, 0x200
mov dword [ebp - 0xb8], eax
cmp eax, dword [ebp - 0xb4]
jle 0x4022d0
mov edi, dword [ebp - 0xc4]
test edi, edi
jle 0x4023d5
push ebx
push 1
push edi
push esi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
jne 0x4023c7
mov edx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
mov eax, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push edx
push ecx
push str.Fail_to_read_file.
push eax
jmp 0x40239e
mov eax, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
push eax
push ecx
mov ecx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push str.Fail_to_read_file.
push ecx
call fcn.004085b0
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push ebx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
jmp 0x4021d3
mov eax, edi
push esi
lea edi, [ebp - 0xb0]
call fcn.00401300
cmp dword [ebp - 0xb4], 0
jne 0x4023ec
push esi
xor eax, eax
lea edi, [ebp - 0xb0]
call fcn.00401300
mov edx, dword [ebp - 0xc0]
lea ecx, [ebp - 0xb0]
call fcn.004013b0
push ebx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, 1
jmp 0x4021d5