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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419a4e
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.00415520
mov dword [ebp - 4], 0
movsx ecx, word [ebp + 0xc]
cmp ecx, 0x181e
jl 0x414772
mov word [ebp - 0x68], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00415570
mov ax, word [ebp - 0x68]
jmp 0x414af2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x88]
add ecx, 0x1a10
call fcn.00413f20
test eax, eax
jne 0x414882
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x18]
cmp eax, 0x7d0
jae 0x414882
mov edx, dword [ebp - 0x88]
cmp dword [edx + 0x1a48], 0
je 0x4147ce
call dword [sym.imp.USER32.dll_WaitMessage]
lea eax, [ebp - 0x44]
push eax
call fcn.00414684
add esp, 4
mov dword [ebp - 0x28], eax
jmp 0x4147e5
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 0x41487d
cmp dword [ebp - 0x40], 0x12
jne 0x41481b
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.00415570
mov ax, word [ebp - 0x6c]
jmp 0x414af2
cmp dword [ebp - 0x40], 0x112
jne 0x414869
mov edx, dword [ebp - 0x3c]
and edx, 0xfff0
cmp edx, 0xf060
jne 0x414869
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.00415570
mov ax, word [ebp - 0x70]
jmp 0x414af2
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 0x41477b
mov ecx, dword [ebp - 0x88]
add ecx, 0x1a10
call fcn.00413f20
test eax, eax
jne 0x4148b5
mov word [ebp - 0x74], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00415570
mov ax, word [ebp - 0x74]
jmp 0x414af2
mov ecx, dword [ebp - 0x88]
add ecx, 0x1a10
call fcn.00413f40
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 [0x42e40c]
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 0x414ab6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x18]
cmp eax, 0x7d0
jae 0x414ab6
mov edx, dword [ebp - 0x88]
mov eax, dword [edx + 0x1a0c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4149e9
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.00415570
mov ax, word [ebp - 0x78]
jmp 0x414af2
mov eax, dword [ebp - 0x88]
cmp dword [eax + 0x1a48], 0
je 0x414a09
lea ecx, [ebp - 0x64]
push ecx
call fcn.00414684
add esp, 4
mov dword [ebp - 0x48], eax
jmp 0x414a1e
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 0x414ab1
cmp dword [ebp - 0x60], 0x12
jne 0x414a54
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.00415570
mov ax, word [ebp - 0x7c]
jmp 0x414af2
cmp dword [ebp - 0x60], 0x112
jne 0x414a9d
mov eax, dword [ebp - 0x5c]
and eax, 0xfff0
cmp eax, 0xf060
jne 0x414a9d
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.00415570
mov ax, word [ebp - 0x80]
jmp 0x414af2
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 0x414947
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.00415570
mov ax, word [ebp - 0x84]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8