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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
cmp dword [0x5edeec], 0
jne 0x4d1a56
mov dword [0x5edeec], 1
push str.ck_Wkb
lea ecx, [ebp - 0x24]
call fcn.00426f30
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x38]
mov eax, dword [edx + 0x28]
call eax
lea ecx, [ebp - 0x24]
call fcn.00426fe0
call fcn.004d1c20
test eax, eax
je 0x4d1a56
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.004d5b50
mov ecx, eax
call fcn.004c8b00
test eax, eax
je 0x4d1a56
mov dword [0x5ebf3c], 1
push 0x4b4
call fcn.0055e567
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x4d1971
mov ecx, dword [ebp - 0x2c]
call fcn.004d5b90
mov dword [ebp - 0x3c], eax
jmp 0x4d1978
mov dword [ebp - 0x3c], 0
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004dfa20
mov ecx, eax
call fcn.004e4930
mov edx, dword [eax]
push edx
mov ecx, dword [ebp - 0x38]
add ecx, 0x1d88
call fcn.004dfa40
lea ecx, [ebp - 0x28]
call fcn.004dfa70
mov ecx, dword [ebp - 0x38]
add ecx, 0x1d88
call fcn.004dfad0
test eax, eax
je 0x4d1a56
cmp dword [0x5ebfe8], 0
je 0x4d19d3
mov eax, dword [0x5ebfe8]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
mov ecx, dword [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x38]
add ecx, 0x1d88
call fcn.004dfab0
mov ecx, eax
call fcn.004d6a70
mov edx, dword [ebp - 0x38]
mov dword [edx + 0x1dd4], 1
push 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
mov ecx, dword [ebp - 0x38]
add ecx, 0x1d88
call fcn.004dfab0
mov ecx, eax
call fcn.004df200
cmp dword [0x5ebfe8], 0
je 0x4d1a56
mov eax, dword [0x5ebfe8]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4d1a56
push 0x5af4bc
lea ecx, [ebp - 0x34]
call fcn.00426f30
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x38]
mov edx, dword [eax + 0x28]
call edx
lea ecx, [ebp - 0x34]
call fcn.00426fe0
mov ecx, dword [ebp - 0x38]
add ecx, 0x28
call fcn.00530b40
mov ecx, dword [ebp - 0x38]
add ecx, 0x28
call fcn.00531060
call fcn.004d4c00
mov ecx, eax
call fcn.004d4d30
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4d1af3
mov eax, dword [ebp - 0x38]
add eax, 0x28
push eax
call fcn.004d4c00
mov ecx, eax
call fcn.004d4d80
mov ecx, dword [ebp - 0x38]
add ecx, 0x1d8c
push ecx
call fcn.004d4c00
mov ecx, eax
call fcn.004d4d40
mov edx, dword [ebp - 0x38]
push edx
call fcn.004d4c00
mov ecx, eax
call fcn.004d4d60
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x38]
add ecx, 0x68
call fcn.004d4ba0
call fcn.004d4c00
mov ecx, eax
call fcn.004d4da0
mov dword [ebp - 0x10], eax
call fcn.004d48f0
test eax, eax
je 0x4d1af1
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.004d48f0
mov ecx, eax
call fcn.0052e330
jmp 0x4d1b5a
mov edx, dword [ebp - 0x38]
add edx, 0x28
push edx
mov ecx, dword [ebp - 0x38]
add ecx, 0x68
call fcn.005001a0
mov eax, dword [ebp - 0x38]
add eax, 0x1d8c
push eax
mov ecx, dword [ebp - 0x38]
add ecx, 0x68
call fcn.004d4b80
mov ecx, dword [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x38]
add ecx, 0x68
call fcn.005001c0
mov dword [ebp - 0x10], eax
call fcn.004d48f0
test eax, eax
je 0x4d1b44
mov edx, dword [ebp - 0x38]
push edx
call fcn.004d48f0
mov ecx, eax
call fcn.0052e330
mov ecx, dword [ebp - 0x38]
add ecx, 0x68
call fcn.005005a0
mov ecx, dword [ebp - 0x38]
add ecx, 0x68
call fcn.00500790
call fcn.004d48f0
test eax, eax
je 0x4d1b74
push 0xbb8
call fcn.004d48f0
mov ecx, eax
call fcn.004d4bc0
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x24], 0
je 0x4d1b7f
jmp 0x4d1bc9
cmp dword [ebp - 0x10], 0
jne 0x4d1b87
jmp 0x4d1bc9
push 0x1d4c0
call fcn.004cf8f0
mov ecx, eax
call fcn.004ed120
test eax, eax
jne 0x4d1b9e
jmp 0x4d1bc9
mov ecx, dword [ebp - 0x38]
add ecx, 0x1da8
call fcn.004dfd80
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [0x5ec0c0]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4d1be7
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4d1bc9
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x1d28]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4d1c18
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x10]
push eax
push 0x4c9
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x1d28]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret