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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48826b
mov eax, dword fs:[0]
push eax
mov eax, 0x2078
call fcn.00460980
mov eax, dword [0x4a0270]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 1
movsx eax, word [ebp + 8]
cmp eax, 3
jne 0x41736b
mov word [ebp + 8], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x201c], eax
mov eax, dword [ebp + 0x14]
movsx ecx, byte [eax]
cmp ecx, 0x7c
jne 0x417392
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x64
xor eax, eax
jmp 0x41755c
mov eax, dword [ebp + 0x14]
push eax
movsx ecx, word [ebp + 0x10]
mov edx, dword [ebp - 0x14]
lea eax, [edx + ecx*2 + 4]
push eax
movsx ecx, word [ebp + 0xc]
imul ecx, ecx, 0xf
mov edx, dword [ebp - 0x14]
lea eax, [edx + ecx + 8]
push eax
push str._s_s_s
lea ecx, [ebp - 0x2018]
push ecx
call fcn.0045ee9d
add esp, 0x14
cmp dword [ebp + 0x1c], 0
jne 0x4173f2
mov eax, dword [ebp + 0x20]
push eax
push 0x416da0
mov ecx, dword [ebp + 0x18]
push ecx
lea edx, [ebp - 0x2018]
push edx
movsx eax, word [ebp + 8]
push eax
call dword [sym.imp.DBGWManager.dll_int___cdecl_AExecuteQuery_int__char_const___int___int____cdecl___void___class_CDBGW_DATA_T_char____int___void__]
add esp, 0x14
mov dword [ebp - 0x18], eax
jmp 0x417416
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
lea eax, [ebp - 0x2018]
push eax
movsx ecx, word [ebp + 8]
push ecx
call dword [sym.imp.DBGWManager.dll_int___cdecl_AExecuteQuery_int__char_const___int___int____cdecl___void___class_CDBGW_DATA_T_char____int___void__]
add esp, 0x14
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x2020], eax
mov eax, dword [ebp - 0x2020]
sub eax, dword [ebp - 0x201c]
cmp eax, 0x7d0
jbe 0x4174a0
mov eax, dword [0x7b3fac]
mov dword [ebp - 0x2084], eax
mov ecx, dword [0x7b3fac]
add ecx, 1
mov dword [0x7b3fac], ecx
movsx edx, word [ebp + 8]
push edx
mov eax, dword [ebp - 0x2084]
push eax
mov ecx, dword [0x7b3fa8]
push ecx
mov edx, dword [ebp - 0x2020]
sub edx, dword [ebp - 0x201c]
push edx
push str.Run_InternalAExecuteQuery___Time____ldms__SYNC_:__d__ASYNC_:__d__Priority_:__d
push 3
push 0x5bf648
call fcn.0041cb00
add esp, 0x1c
lea eax, [ebp - 0x2018]
push eax
push str.Query_:__s
push 3
push 0x5bf648
call fcn.0041cb00
add esp, 0x10
jmp 0x4174ee
mov eax, dword [0x7b3fac]
mov dword [ebp - 0x2084], eax
mov ecx, dword [0x7b3fac]
add ecx, 1
mov dword [0x7b3fac], ecx
movsx edx, word [ebp + 8]
push edx
mov eax, dword [ebp - 0x2084]
push eax
mov ecx, dword [0x7b3fa8]
push ecx
mov edx, dword [ebp - 0x2020]
sub edx, dword [ebp - 0x201c]
push edx
push str.Run_InternalAExecuteQuery___Time____ldms__SYNC_:__d__ASYNC_:__d__Priority_:__d
push 3
push 0x5bf648
call fcn.0041c8e0
add esp, 0x1c
mov eax, dword [ebp - 0x2020]
sub eax, dword [ebp - 0x201c]
mov dword [ebp - 0x2024], eax
cmp dword [ebp - 0x2024], 0x3e8
jbe 0x417559
lea eax, [ebp - 0x2018]
push eax
lea ecx, [ebp - 0x2040]
call fcn.00406d80
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2040]
call fcn.00406e30
push eax
mov eax, dword [ebp - 0x2024]
push eax
push str.ASYNC_t_ld_t_s
push 2
call fcn.00419350
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2040]
call fcn.00406e10
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045ee62
mov esp, ebp
pop ebp
ret 0x1c