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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9449
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x54e864]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 0x14], 4
cmp byte [0x551069], bl
je 0x429649
call fcn.00429170
mov byte [0x551069], bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x551054]
cmp eax, ebx
jne 0x429669
call fcn.00429580
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [eax + 4], ebx
je 0x429a54
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x551058]
cmp eax, 0x7d0
jb 0x429a54
cmp dword [0x55106c], ebx
je 0x4296c3
call fcn.0044a480
test al, al
je 0x4296c3
call esi
sub eax, dword [0x55106c]
cmp eax, 0x3e8
jb 0x4296c3
call esi
sub eax, dword [0x55106c]
push eax
push str.Rendimiento:_BANKTICKETSTHREAD_Update_Loop__d
push 2
call fcn.0042a000
add esp, 0xc
call esi
mov dword [0x55106c], eax
call esi
push 0x551124
mov dword [0x551070], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [0x551074], ebx
cmp dword [0x55111c], ebx
je 0x42970e
mov ecx, dword [0x551118]
mov eax, dword [ecx]
cmp eax, ecx
je 0x429700
mov eax, dword [eax + 8]
mov dword [0x551074], eax
jmp 0x42970e
push str.Error._Acceso_a_lista_vacia_de_ListBankTicketsThread_.
push ebx
call fcn.0042a000
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x551124
call edi
cmp dword [0x551074], ebx
je 0x429a24
mov eax, dword [0x551074]
mov dword [ebp - 4], ebx
cmp dword [eax + 4], ebx
jne 0x42976d
push 0x551124
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x551074]
push ecx
call fcn.004290e0
add esp, 4
push 0x551124
mov dword [0x551074], ebx
call edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add eax, 0x818
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [0x551074]
cmp dword [edx + 8], ebx
jne 0x42985c
push 0x114
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x4297b0
mov ecx, dword [0x551054]
push ecx
mov ecx, eax
call fcn.0040cfe0
jmp 0x4297b2
xor eax, eax
mov edx, dword [0x551074]
mov dword [edx + 8], eax
mov eax, dword [0x551074]
mov byte [ebp - 4], bl
cmp dword [eax + 0x80c], ebx
je 0x429847
mov ecx, dword [eax + 0x80c]
add ecx, 0x14
cmp dword [ecx], 1
jne 0x429809
mov eax, dword [eax + 8]
lea edx, [ebp - 0x14]
push edx
push ebx
push ecx
mov ecx, dword [eax + 4]
push ebx
push ebx
push 4
push 0xfffffffffffffff0
push 4
push 1
push ecx
call sub.ODBC32.dll_SQLBindParameter
mov edx, dword [0x551074]
mov eax, dword [edx + 0x80c]
mov dword [eax + 0x14], ebx
mov eax, dword [0x551074]
mov ecx, dword [eax + 0x80c]
cmp dword [ecx + 0x18], ebx
je 0x429847
mov ecx, dword [ecx + 0x1c]
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 0x80c]
lea edx, [ebp - 0x18]
push edx
mov edx, dword [ecx + 0x1c]
mov ecx, dword [ecx + 0x18]
push edx
mov edx, dword [eax + 8]
mov eax, dword [edx + 4]
push ecx
push ebx
push ebx
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 2
push eax
call sub.ODBC32.dll_SQLBindParameter
mov eax, dword [0x551074]
mov ecx, dword [eax + 8]
mov edx, dword [ecx]
push 0x2000
add eax, 0xc
push eax
mov eax, dword [edx + 0x6c]
push 1
call eax
mov ecx, dword [0x551074]
mov ecx, dword [ecx + 8]
call fcn.0040d140
cmp eax, ebx
jne 0x4298a3
mov edx, dword [0x551074]
push edx
call fcn.00428970
add esp, 4
push 0x551124
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x551074]
push eax
call fcn.004290e0
add esp, 4
push 0x551124
mov dword [0x551074], ebx
call edi
mov dword [ebp - 4], 0xffffffff
jmp 0x429a24
call fcn.0044a480
test al, al
je 0x429a54
call esi
sub eax, dword [0x551070]
cmp eax, 0x3e8
jb 0x429a54
call esi
sub eax, dword [0x551070]
push eax
push str.Rendimiento:_BANKTICKETSTHREAD_Update_Process__d.
push 2
call fcn.0042a000
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret