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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xafd2a0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0xc940a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
cmp esi, 0xd
jl 0xa67c80
cmp esi, 0x8004
jl case.0xa67ca5.3
cmp esi, 0x8004
jg case.0xa67ca5.3
je case.0xa67ca5.3
lea eax, [esi - 2]
cmp eax, 0xa
ja case.0xa67ca5.3
movzx eax, byte [eax + 0xa684e4]
jmp dword [eax*4 + 0xa684cc]
mov ecx, dword [ebp + 0xc]
lea eax, [ecx + 4]
push eax
push dword [ecx]
mov ecx, edi
call fcn.00a379e9
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov ecx, dword [edi + 0x68]
shr eax, 0x10
and eax, 0xfff
push eax
call fcn.00b74b0f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 0xb4]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x40]
jmp 0xa684aa
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.USER32.dll_Ordinal_2574]
test eax, eax
je 0xa67d4b
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.api_ms_win_rtcore_ntuser_private_l1_1_0.dll_GetWindowBand]
test eax, eax
je 0xa67d4b
mov ecx, esi
call fcn.00a49599
test al, al
jne 0xa67d4b
mov eax, dword [ebp - 0x34]
cmp eax, 1
je 0xa684b4
cmp eax, 8
je 0xa684b4
push esi
mov ecx, edi
call fcn.00a62660
jmp 0xa684b4
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0xa683c1
cmp esi, 0x8006
je 0xa67d70
cmp esi, 6
jne 0xa67d7b
push ebx
call dword [sym.imp.USER32.dll_Ordinal_2573]
test eax, eax
jne 0xa67de2
lea eax, [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.api_ms_win_rtcore_ntuser_private_l1_1_0.dll_GetWindowBand]
test eax, eax
je 0xa683c1
mov eax, dword [ebp - 0x30]
mov ecx, 0xc96320
mov al, byte [eax*8 + 0xa00bd4]
mov byte [ebp - 0xd], al
call fcn.00ae5f4b
test al, al
je 0xa67db9
push 0xa920
push ebx
call dword [sym.imp.ext_ms_win_rtcore_ntuser_window_ext_l1_1_0.dll_GetPropW]
test eax, eax
jne 0xa67dc3
cmp byte [ebp - 0xd], 0
je 0xa683c1
push ebx
call dword [sym.imp.USER32.dll_Ordinal_2574]
test eax, eax
je 0xa67de2
push 0x9eee88
push ebx
call dword [sym.imp.ext_ms_win_rtcore_ntuser_window_ext_l1_1_0.dll_GetPropW]
test eax, eax
je 0xa683c1
cmp esi, 0x11
jl 0xa67df3
cmp esi, 0x8004
jl 0xa684b4
cmp esi, 0x10
je 0xa681a4
cmp esi, 0xa
jg 0xa67e43
je 0xa67e37
sub esi, 1
je 0xa67e1b
sub esi, 3
je 0xa68197
sub esi, 2
je 0xa67e58
jmp 0xa684b4
mov ecx, ebx
call fcn.00a507a2
test eax, eax
jne 0xa684b4
push ebx
mov ecx, edi
call fcn.00a50c9f
jmp 0xa684b4
push ecx
push ebx
call fcn.00bc3893
jmp 0xa684b4
sub esi, 0x8004
je 0xa68197
sub esi, 2
jne 0xa684b4
push ebx
mov dword [ebp - 0x18], 0
mov esi, 0x80004005
mov dword [ebp - 0x14], 0
call dword [sym.imp.USER32.dll_Ordinal_2574]
test eax, eax
je 0xa67f14
lea eax, [ebp - 0x38]
push eax
push ebx
call dword [sym.imp.api_ms_win_rtcore_ntuser_private_l1_1_0.dll_GetWindowBand]
test eax, eax
je 0xa67f14
mov ecx, ebx
call fcn.00a49599
test al, al
jne 0xa67f14
mov eax, dword [ebp - 0x38]
cmp eax, 1
je 0xa67ea5
cmp eax, 8
jne 0xa67f14
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
cmp dword [edi + 0xd0], 0
je 0xa67ed7
call fcn.00a398c6
mov ecx, dword [edi + 0xd0]
lea eax, [ebp - 0x1c]
push eax
mov edx, ebx
call fcn.00a796c6
jmp 0xa67ee6
call fcn.00a398c6
lea edx, [ebp - 0x1c]
mov ecx, ebx
call fcn.00bfec86
mov ebx, eax
test ebx, ebx
js 0xa67f00
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call fcn.00a5b447
mov ebx, eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.00a398c6
jmp 0xa68036
mov eax, dword [edi + 0xc0]
test eax, eax
je 0xa67f22
mov eax, dword [eax]
jmp 0xa67f24
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
test eax, eax
jle 0xa67fd4
test esi, esi
jns 0xa6803e
mov eax, dword [edi + 0xc0]
mov eax, dword [eax + 4]
mov ecx, dword [eax + ecx*4]
mov dword [ebp - 0x34], ecx
test ecx, ecx
je 0xa67fbe
mov eax, dword [ecx]
mov dword [ebp - 0x28], 0
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push ebx
push ecx
mov ecx, esi
call dword [0xc99200]
call esi
mov esi, eax
mov dword [ebp - 0x40], esi
test esi, esi
js 0xa67fb9
cmp dword [ebp - 0x3c], 4
jl 0xa67fb9
push dword [ebp - 0x34]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.api_ms_win_shcore_comhelpers_l1_1_0.dll_IUnknown_Set]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0xa67fbe
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.api_ms_win_shcore_comhelpers_l1_1_0.dll_IUnknown_Set]
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0xc99200]
call esi
mov esi, dword [ebp - 0x40]
jmp 0xa67fbe
mov esi, 0x80004005
mov eax, dword [ebp - 0x2c]
inc eax
mov ecx, eax
mov dword [ebp - 0x2c], eax
cmp eax, dword [ebp - 0x30]
jl 0xa67f34
test esi, esi
jns 0xa6803e
mov ecx, dword [edi + 0xbc]
mov eax, dword [ecx]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x40]
push eax
push 0
push 0
push ebx
push ecx
mov ecx, esi
call dword [0xc99200]
call esi
mov ebx, eax
test ebx, ebx
js 0xa684b4
push dword [edi + 0xbc]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.api_ms_win_shcore_comhelpers_l1_1_0.dll_IUnknown_Set]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0xa68036
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.api_ms_win_shcore_comhelpers_l1_1_0.dll_IUnknown_Set]
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0xc99200]
call esi
test ebx, ebx
js 0xa684b4
mov eax, dword [ebp - 0x18]
xor ebx, ebx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x60]
mov ecx, esi
call dword [0xc99200]
call esi
mov esi, eax
and esi, 0x80000000
cmp dword [ebp + 8], 0x8006
mov dword [ebp - 0x30], esi
jne 0xa68110
mov ebx, 3
call dword [sym.imp.ext_ms_win_rtcore_ntuser_window_ext_l1_1_0.dll_GetForegroundWindow]
mov dword [ebp - 0x40], eax
test eax, eax
je 0xa68098
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 0x30]
mov ecx, esi
call dword [0xc99200]
call esi
cmp eax, dword [ebp - 0x40]
je 0xa68102
mov esi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x14]
push 0x10000
push 0x10000
push ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
mov dword [ebp - 0x40], eax
cmp eax, fcn.00a39b00
jne 0xa680bc
call fcn.00a39b00
jmp 0xa680c7
mov ecx, eax
call dword [0xc99200]
call dword [ebp - 0x40]
test esi, esi
jne 0xa68102
mov ecx, dword [edi + 0xb4]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 0x3c]
cmp esi, fcn.00a49950
jne 0xa680f8
call fcn.00a49950
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov dword [edi + 0xb8], eax
jmp 0xa68144
mov ecx, esi
call dword [0xc99200]
call esi
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov dword [edi + 0xb8], eax
jmp 0xa68144
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x40]
mov ecx, esi
call dword [0xc99200]
call esi
test eax, 0x10000
je 0xa68144
mov esi, dword [edi + 0xb8]
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
sub eax, esi
cmp eax, 0x7d0
jbe 0xa68144
mov ebx, 8
cmp dword [ebp - 0x30], 0
jne 0xa68176
mov ecx, dword [edi + 0xb4]
push ebx
push dword [ebp - 0x14]
mov eax, dword [ecx]
push dword [ebp - 0x18]
push ecx
mov esi, dword [eax + 0x28]
cmp esi, fcn.00a747b0
jne 0xa6816c
call fcn.00a747b0
jmp 0xa68176
mov ecx, esi
call dword [0xc99200]
call esi
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0xc99200]
call esi
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
jmp 0xa684aa
push ebx
mov ecx, edi
call fcn.00a3c660
jmp 0xa684b4
push ebx
mov dword [ebp - 0x20], 0
mov esi, 0x80004005
mov dword [ebp - 0x24], 0
call dword [sym.imp.USER32.dll_Ordinal_2574]
test eax, eax
je 0xa68260
lea eax, [ebp - 0x40]
push eax
push ebx
call dword [sym.imp.api_ms_win_rtcore_ntuser_private_l1_1_0.dll_GetWindowBand]
test eax, eax
je 0xa68260
mov ecx, ebx
call fcn.00a49599
test al, al
jne 0xa68260
mov eax, dword [ebp - 0x40]
cmp eax, 1
je 0xa681f1
cmp eax, 8
jne 0xa68260
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x1c]
cmp dword [edi + 0xd0], 0
je 0xa68223
call fcn.00a398c6
mov ecx, dword [edi + 0xd0]
lea eax, [ebp - 0x1c]
push eax
mov edx, ebx
call fcn.00a796c6
jmp 0xa68232
call fcn.00a398c6
lea edx, [ebp - 0x1c]
mov ecx, ebx
call fcn.00bfec86
mov ebx, eax
test ebx, ebx
js 0xa6824c
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
call fcn.00a5b447
mov ebx, eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.00a398c6
jmp 0xa68382
mov eax, dword [edi + 0xc0]
test eax, eax
je 0xa6826e
mov eax, dword [eax]
jmp 0xa68270
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], ecx
test eax, eax
jle 0xa68320
test esi, esi
jns 0xa6838a
mov eax, dword [edi + 0xc0]
mov eax, dword [eax + 4]
mov ecx, dword [eax + ecx*4]
mov dword [ebp - 0x38], ecx
test ecx, ecx
je 0xa6830a
mov eax, dword [ecx]
mov dword [ebp - 0x2c], 0
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push ebx
push ecx
mov ecx, esi
call dword [0xc99200]
call esi
mov esi, eax
mov dword [ebp - 0x34], esi
test esi, esi
js 0xa68305
cmp dword [ebp - 0x3c], 4
jl 0xa68305
push dword [ebp - 0x38]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.api_ms_win_shcore_comhelpers_l1_1_0.dll_IUnknown_Set]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0xa6830a
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.api_ms_win_shcore_comhelpers_l1_1_0.dll_IUnknown_Set]
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0xc99200]
call esi
mov esi, dword [ebp - 0x34]
jmp 0xa6830a
mov esi, 0x80004005
mov eax, dword [ebp - 0x28]
inc eax
mov ecx, eax
mov dword [ebp - 0x28], eax
cmp eax, dword [ebp - 0x30]
jl 0xa68280
test esi, esi
jns 0xa6838a
mov ecx, dword [edi + 0xbc]
mov eax, dword [ecx]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x38]
push eax
push 0
push 0
push ebx
push ecx
mov ecx, esi
call dword [0xc99200]
call esi
mov ebx, eax
test ebx, ebx
js 0xa684b4
push dword [edi + 0xbc]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.api_ms_win_shcore_comhelpers_l1_1_0.dll_IUnknown_Set]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0xa68382
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.api_ms_win_shcore_comhelpers_l1_1_0.dll_IUnknown_Set]
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0xc99200]
call esi
test ebx, ebx
js 0xa684b4
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [edi + 0xbc]
je 0xa683a3
push dword [ebp - 0x24]
push ecx
mov ecx, edi
call fcn.00bc41cc
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0xc99200]
call esi
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
jmp 0xa684aa
cmp esi, 4
je 0xa683d2
cmp esi, 0x8004
jne 0xa684b4
test ebx, ebx
je 0xa683e6
mov ecx, ebx
call fcn.00a3a0f6
test al, al
je 0xa68431
jmp 0xa684b4
call dword [sym.imp.ext_ms_win_rtcore_ntuser_window_ext_l1_1_0.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0xa68471
lea eax, [ebp - 0x40]
push eax
push esi
call dword [sym.imp.api_ms_win_rtcore_ntuser_private_l1_1_0.dll_GetWindowBand]
test eax, eax
je 0xa68431
mov eax, dword [ebp - 0x40]
mov ecx, 0xc96320
mov bl, byte [eax*8 + 0xa00bd4]
call fcn.00ae5f4b
test al, al
je 0xa6842d
push 0xa920
push esi
call dword [sym.imp.ext_ms_win_rtcore_ntuser_window_ext_l1_1_0.dll_GetPropW]
test eax, eax
jne 0xa68471
test bl, bl
jne 0xa68471
mov ecx, dword [edi + 0xb4]
push 0
push 0
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 0x24]
cmp esi, fcn.00a5a430
jne 0xa68450
call fcn.00a5a430
jmp 0xa6845a
mov ecx, esi
call dword [0xc99200]
call esi
push 0
push 0
push 0x579
push dword [0xc95994]
call dword [sym.imp.ext_ms_win_rtcore_ntuser_window_ext_l1_1_0.dll_SendMessageW]
jmp 0xa684b4
push 0
mov ecx, edi
mov dword [ebp - 0x34], 0
call fcn.00a5b334
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0xa684b4
push 0
push 0
push 0x4f3
push dword [0xc95994]
call dword [sym.imp.ext_ms_win_rtcore_ntuser_window_ext_l1_1_0.dll_PostMessageW]
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0xa684b4
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0xc99200]
call esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8