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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a58be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
mov dword [ebp - 0x88], ecx
mov eax, dword [ebp - 0x88]
add eax, 0x19ec
push eax
lea ecx, [ebp - 0x14]
call fcn.0052ccf0
mov dword [ebp - 4], 0
movsx ecx, word [ebp + 0xc]
cmp ecx, 0x181e
jl 0x52bf42
mov word [ebp - 0x68], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0052cd40
mov ax, word [ebp - 0x68]
jmp 0x52c2c2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x88]
add ecx, 0x1a10
call fcn.00461ce0
test eax, eax
jne 0x52c052
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x18]
cmp eax, 0x7d0
jae 0x52c052
mov edx, dword [ebp - 0x88]
cmp dword [edx + 0x1a48], 0
je 0x52bf9e
call dword [sym.imp.USER32.dll_WaitMessage]
lea eax, [ebp - 0x44]
push eax
call fcn.0052be54
add esp, 4
mov dword [ebp - 0x28], eax
jmp 0x52bfb5
push 0
push 0
push 0
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
mov dword [ebp - 0x28], 1
cmp dword [ebp - 0x28], 0
je 0x52c04d
cmp dword [ebp - 0x40], 0x12
jne 0x52bfeb
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov word [ebp - 0x6c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0052cd40
mov ax, word [ebp - 0x6c]
jmp 0x52c2c2
cmp dword [ebp - 0x40], 0x112
jne 0x52c039
mov edx, dword [ebp - 0x3c]
and edx, 0xfff0
cmp edx, 0xf060
jne 0x52c039
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov word [ebp - 0x70], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0052cd40
mov ax, word [ebp - 0x70]
jmp 0x52c2c2
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x44]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x52bf4b
mov ecx, dword [ebp - 0x88]
add ecx, 0x1a10
call fcn.00461ce0
test eax, eax
jne 0x52c085
mov word [ebp - 0x74], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0052cd40
mov ax, word [ebp - 0x74]
jmp 0x52c2c2
mov ecx, dword [ebp - 0x88]
add ecx, 0x1a10
call fcn.004898e0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0x88]
add ecx, 0x1a10
call sub.MFC42.DLL_CMapWordToPtr::GetNextAssoc
mov ax, word [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x88]
add ecx, 0x1a10
call sub.MFC42.DLL_CMapWordToPtr::RemoveKey
mov cx, word [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x88]
add ecx, 0x1a2c
call sub.MFC42.DLL_CMapWordToPtr::operator__
mov dword [eax], 0
movsx edx, word [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x20]
and ecx, 0xffff
imul ecx, ecx, 0x181e
mov edx, dword [ebp - 0x88]
mov eax, dword [edx + 0x1a00]
add eax, ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x20]
and ecx, 0xffff
mov edx, dword [ebp - 0x88]
xor eax, eax
mov ax, word [edx + 0x19dc]
shl eax, 0x10
or ecx, eax
push ecx
movsx ecx, word [ebp + 0xc]
push ecx
mov edx, dword [0x606008]
push edx
mov eax, dword [ebp - 0x88]
mov ecx, dword [eax + 0x1a0c]
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
test eax, eax
jne 0x52c286
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x18]
cmp eax, 0x7d0
jae 0x52c286
mov edx, dword [ebp - 0x88]
mov eax, dword [edx + 0x1a0c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x52c1b9
mov ecx, dword [ebp - 0x88]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x88]
call dword [edx + 0xcc]
mov word [ebp - 0x78], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0052cd40
mov ax, word [ebp - 0x78]
jmp 0x52c2c2
mov eax, dword [ebp - 0x88]
cmp dword [eax + 0x1a48], 0
je 0x52c1d9
lea ecx, [ebp - 0x64]
push ecx
call fcn.0052be54
add esp, 4
mov dword [ebp - 0x48], eax
jmp 0x52c1ee
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x64]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x52c281
cmp dword [ebp - 0x60], 0x12
jne 0x52c224
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov word [ebp - 0x7c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0052cd40
mov ax, word [ebp - 0x7c]
jmp 0x52c2c2
cmp dword [ebp - 0x60], 0x112
jne 0x52c26d
mov eax, dword [ebp - 0x5c]
and eax, 0xfff0
cmp eax, 0xf060
jne 0x52c26d
mov ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov word [ebp - 0x80], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0052cd40
mov ax, word [ebp - 0x80]
jmp 0x52c2c2
lea edx, [ebp - 0x64]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x52c117
mov ecx, dword [ebp - 0x88]
mov edx, dword [ecx + 0x19dc]
add edx, 1
mov eax, dword [ebp - 0x88]
mov dword [eax + 0x19dc], edx
mov cx, word [ebp + 0xc]
mov word [ebp - 0x84], cx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0052cd40
mov ax, word [ebp - 0x84]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8