Function at 0x401a70
Capabilities:
Check for time delay via gettickcount
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5ec
mov eax, dword [0x406018]
xor eax, esp
mov dword [esp + 0x5e8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x406478
push 0x67
push esi
call edi
push 0x64
push 0x4063b0
push 0x6d
push esi
call edi
mov eax, esi
call fcn.00401dd0
push 0x6d
push esi
mov dword [0x406540], esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, dword [sym.imp.KERNEL32.dll_OpenMutexW]
push str.Local_statusMutex
push 0
push 0x1f0001
call esi
push str.Local_scrMutex
push 0
mov ebx, eax
push 0x1f0001
mov dword [esp + 0x2c], ebx
call esi
push str.Local_fileHandle
push 0
push 0xf001f
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov esi, dword [sym.imp.KERNEL32.dll_OpenEventW]
push str.LocalgameUpdateEvent
push 0
mov edi, eax
push 0x1f0003
mov dword [esp + 0x34], edi
call esi
push str.Local_browserEvent
push 0
push 0x1f0003
mov dword [esp + 0x1c], eax
call esi
push str.LocalgamePostEvent
push 0
push 0x1f0003
mov dword [esp + 0x20], eax
call esi
push str.Local_browserPostEvent
push 0
push 0x1f0003
mov dword [esp + 0x28], eax
call esi
test ebx, ebx
mov esi, eax
mov dword [esp + 0x24], esi
je 0x401d68
cmp dword [esp + 0x18], 0
je 0x401d68
test edi, edi
je 0x401d77
cmp dword [esp + 0x10], 0
je 0x401d68
cmp dword [esp + 0x14], 0
je 0x401d68
cmp dword [esp + 0x1c], 0
je 0x401d68
test esi, esi
je 0x401d68
push 0x9c422c
push 0
push 0
push 0xf001f
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov ecx, dword [edi + 0x9c4118]
mov eax, dword [edi + 0x9c4110]
push ecx
mov cl, byte [edi + 0x9c4120]
lea edx, [esp + 0x44]
mov dword [esp + 0x30], eax
mov al, byte [edi + 0x9c411c]
push edx
call fcn.004020c0
mov ecx, dword [edi + 0x9c4118]
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
add eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x38]
sar eax, 1
push eax
lea eax, [edx + ecx]
cdq
sub eax, edx
sar eax, 1
push eax
call dword [sym.imp.USER32.dll_SetCursorPos]
push 0x404358
lea eax, [esp + 0xf0]
push eax
lea ecx, [esp + 0x48]
push ecx
mov eax, 0x404358
call fcn.00402640
cmp byte [esp + 0xe4], 0
jne 0x401d23
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x401ce4
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
push edi
lea eax, [esp + 0x54]
call fcn.00401000
call ebx
mov esi, eax
call ebx
sub eax, esi
cmp eax, 0xa
jae 0x401cb4
cmp byte [esp + 0xe4], 0
jne 0x401cb4
lea ecx, [esp + 0x40]
push ecx
call fcn.00402d90
test al, al
push 1
je 0x401cae
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebx
sub eax, esi
cmp eax, 0xa
jb 0x401c83
jmp 0x401cb4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp byte [esp + 0xe4], 0
jne 0x401d09
mov esi, dword [esp + 0x2c]
call fcn.00401a30
test al, al
jne 0x401cf5
mov byte [esp + 0xe4], 1
mov byte [esp + 0x44], al
jmp 0x401d09
cmp eax, 0x80
jne 0x401cbf
mov byte [esp + 0xe4], 1
jmp 0x401d09
cmp byte [esp + 0xe4], 0
jne 0x401d09
lea eax, [esp + 0x40]
push eax
call fcn.00402d90
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esp + 0xe4], 0
je 0x401c43
mov ebx, dword [esp + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
call esi
push ebx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
mov edx, dword [esp + 0x1c]
push edx
call esi
mov eax, dword [esp + 0x24]
push eax
call esi
lea ecx, [esp + 0x40]
call fcn.004022c0
jmp 0x401db7
test edi, edi
je 0x401d77
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x401d7d
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x401d88
push eax
call edi
test ebx, ebx
je 0x401d8f
push ebx
call edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401d9a
push eax
call edi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x401da5
push eax
call edi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x401db0
push eax
call edi
test esi, esi
je 0x401db7
push esi
call edi
mov ecx, dword [esp + 0x5f4]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00402ec9
mov esp, ebp
pop ebp
ret 0x10