Function at 0x402d9a
Capabilities:
Check for time delay via gettickcount
Get file size
Read file on windows

Disassembly:
mov eax, 0x40e166
call fcn.0040db00
sub esp, 0x438
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
cmp dword [eax + 8], ebx
push edi
je 0x402de4
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x402dc3
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x18], esi
jne 0x402df4
push dword [ebp + 0x18]
call fcn.00402d26
pop ecx
xor al, al
jmp 0x402f59
push esi
lea eax, [ebp - 0x44]
push dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call fcn.00402703
add esp, 0xc
push ebx
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [ebp + 0xc]
push ebx
push ebx
push edi
push esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x402e2e
mov dword [ebp - 0x10], eax
jmp 0x402e31
sub dword [ebp - 0x10], edi
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov esi, 0x4134e8
push esi
mov edi, dword [eax]
call sub.MSVCRT.dll_strlen
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
push esi
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::rfind_char_const___unsigned_int__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
inc eax
push dword [ecx]
mov ecx, dword [ebp + 8]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov al, byte [ebp + 0x1b]
push ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
mov byte [ebp - 0x28], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x38]
sub esp, 0x10
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push dword [ebp + 0x14]
push dword [ebp - 0x10]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00402ff6
mov ecx, dword [ebp + 0x18]
add esp, 0x24
lea eax, [ebp - 0x28]
push eax
call fcn.00409797
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x14], 1
xor edi, edi
cmp edi, dword [ebp - 0x10]
jge 0x402f2b
call esi
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x10]
sub eax, edi
mov ecx, 0x400
cmp eax, ecx
jle 0x402ede
mov eax, ecx
lea ecx, [ebp - 0x14]
push ebx
push ecx
push eax
lea eax, [ebp - 0x444]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x14]
mov ecx, dword [ebp + 0x18]
lea eax, [ebp - 0x444]
push eax
call fcn.004097ba
cmp eax, dword [ebp - 0x14]
jne 0x402f28
add edi, eax
call esi
sub eax, dword [ebp + 8]
cmp eax, 0x14
jae 0x402f23
push 0x14
pop ecx
sub ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x14], ebx
jg 0x402ec4
cmp edi, dword [ebp - 0x10]
push 1
lea ecx, [ebp - 0x28]
sete byte [ebp + 0x1b]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [ebp - 0x44]
push eax
call fcn.00402721
mov al, byte [ebp + 0x1b]
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret