Function at 0x40be80
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436b93
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x45906c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x90], str.__E:disk_
mov dword [ebp - 0x94], str.E:memdump_
mov dword [ebp - 0x98], 0x44bbcc
mov dword [ebp - 0x48], 3
mov eax, dword [ebp - 0x48]
push eax
push 0x44bbd4
push str.E:.
call fcn.00421aa6
add esp, 0xc
mov dword [ebp - 0x9c], eax
xor ecx, ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x4c], 0
xorps xmm0, xmm0
movsd qword [ebp - 0xa8], xmm0
lea edx, [ebp - 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [ebp - 0x44]
shr eax, 5
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x40]
shr ecx, 5
mov dword [ebp - 0x3c], ecx
cvtsi2sd xmm0, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x3c]
shr edx, 0x1f
addsd xmm0, qword [edx*8 + 0x4543c0]
movsd qword [ebp - 0xa8], xmm0
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0xdf948ba4
mov dword [ebp - 0x30], 0x1da2368
push str._aullrem
push 0x44bbf8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 5
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.0040be60
add esp, 0xc
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x30]
shr ecx, 5
mov dword [ebp - 0x50], ecx
push 0
push 0x13
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x54]
push eax
call dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0x13
jne 0x40bfb0
jmp 0x40bfc4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
test ecx, ecx
jne 0x40bf6e
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x70], eax
push 0
push 0x989680
mov ecx, dword [ebp - 0x70]
push ecx
mov edx, dword [ebp - 0x74]
push edx
call fcn.00415c40
sub eax, 0xb6109100
sbb edx, 2
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], edx
lea eax, [ebp - 0x84]
push eax
call fcn.0040a6e0
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x10]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x14]
add eax, 0x76c
push eax
push str.time:__04d__02d__02d__02d:_02d:_02d_n
call fcn.00401450
add esp, 0x1c
push 0x44bc28
lea ecx, [ebp - 0x28]
call fcn.00403620
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.00409e00
mov byte [ebp - 4], 1
push 0
push 0x4486c6
push 0x44bc2c
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x8c]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.0040c160
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40c0ae
push 0
push 0x4486c7
push str.patch_ok
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0xa0], 0xf0088ca
mov dword [ebp - 0x38], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x68], eax
rdtscp
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
cmp dword [ebp - 0x60], 0xf0088ca
jl 0x40c0c8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x64]
sub edx, dword [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x78]
push eax
mov ecx, dword [ebp - 0x7c]
push ecx
push str._I64d_ticks__d_n
call fcn.0040a860
add esp, 0x10
mov edx, dword [ebp - 0x6c]
push edx
push str.TSC_AUX_was__x_n
call fcn.0040a860
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.00409db0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403550
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004151bc
mov esp, ebp
pop ebp
ret