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

Disassembly:
mov rax, rsp
push r14
sub rsp, 0x670
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x100499010]
xor rax, rsp
mov qword [rsp + 0x660], rax
xor r14d, r14d
mov esi, r14d
call fcn.1004342d0
movzx ebx, al
lea rcx, [0x1004a8ef0]
mov rax, qword [0x1004a90d0]
call qword [case.0x10044bd0b.0]
test eax, eax
jne 0x10042632a
cmp dword [0x1004a8ebc], r14d
je 0x10042631d
test bl, bl
je 0x10042631d
lea rdx, str.AbortAllJobs
lea rcx, str.__s_____Waiting_for_CritSec__n
call fcn.10043bdc0
lea rcx, [0x1004a8ef0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1004a8ebc], esi
je 0x100426349
test bl, bl
je 0x100426349
lea rdx, str.AbortAllJobs
lea rcx, str.__s_____Enters_CritSec__n
call fcn.10043bdc0
mov edi, r14d
cmp dword [0x1004a8ecc], esi
jle 0x1004264a6
lea rbp, [0x100476f14]
nop
mov edx, edi
lea rcx, [0x1004a8ec0]
call qword [sym.imp.SQLSVC.dll_SHRecMemLock]
mov rbx, rax
test rax, rax
je 0x100426498
cmp dword [rax + 0x588], esi
je 0x100426498
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0x260]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x100
lea r8, [rsp + 0x60]
lea edx, [r9 - 0x1b]
mov rcx, qword [0x1004a90d8]
call qword [sym.imp.USER32.dll_LoadStringW]
cmp dword [rbx + 0x588], 1
jne 0x100426485
cmp qword [rbx + 0x5a0], rsi
je 0x100426498
cmp dword [rbx + 0x12e0], esi
jne 0x1004263f9
cmp dword [0x1004a8eb8], esi
mov edx, 0x1290
je 0x1004263fe
mov edx, reloc.ODBC32.dll_SQLFreeStmt
lea rax, [0x100472884]
lea r9, [rdx + rbx]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor edx, edx
lea ecx, [rdx + 3]
mov r8d, 0xb9
call fcn.100432180
mov dword [rbx + 0x478], 5
lea rcx, [rbx + 0x47c]
mov edx, 0x84
mov r8, rbp
sub r8, rcx
lea rax, [rdx + 0x7fffff7a]
test rax, rax
je 0x100426467
movzx eax, word [r8 + rcx]
test ax, ax
je 0x100426467
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x100426444
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], r14w
mov rcx, qword [rbx + 0x5a0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x100426498
cmp dword [rbx + 0x594], 8
jne 0x100426498
mov dword [rbx + 0x594], 4
inc edi
cmp edi, dword [0x1004a8ecc]
jl 0x100426360
call fcn.1004342d0
movzx ebx, al
lea rcx, [0x1004a8ef0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x1004a8ebc], esi
je 0x1004264da
test bl, bl
je 0x1004264da
lea rdx, str.AbortAllJobs
lea rcx, str.__s_____Leaves_CritSec__n
call fcn.10043bdc0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, eax
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1004342d0
movzx ebx, al
lea rcx, [0x1004a8ef0]
mov rax, qword [0x1004a90d0]
call qword [case.0x10044bd0b.0]
test eax, eax
jne 0x100426539
cmp dword [0x1004a8ebc], esi
je 0x10042652c
test bl, bl
je 0x10042652c
lea rdx, str.AbortAllJobs
lea rcx, str.__s_____Waiting_for_CritSec__n
call fcn.10043bdc0
lea rcx, [0x1004a8ef0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1004a8ebc], esi
je 0x100426558
test bl, bl
je 0x100426558
lea rdx, str.AbortAllJobs
lea rcx, str.__s_____Enters_CritSec__n
call fcn.10043bdc0
mov edi, r14d
mov ebx, r14d
cmp dword [0x1004a8ecc], ebx
jle 0x100426598
nop word [rax + rax]
mov edx, ebx
lea rcx, [0x1004a8ec0]
call qword [sym.imp.SQLSVC.dll_SHRecMemLock]
test rax, rax
je 0x10042658e
cmp dword [rax + 0x588], esi
je 0x10042658e
inc edi
inc ebx
cmp ebx, dword [0x1004a8ecc]
jl 0x100426570
call fcn.1004342d0
movzx ebx, al
lea rcx, [0x1004a8ef0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x1004a8ebc], esi
je 0x1004265cc
test bl, bl
je 0x1004265cc
lea rdx, str.AbortAllJobs
lea rcx, str.__s_____Leaves_CritSec__n
call fcn.10043bdc0
test edi, edi
je 0x100426779
mov r9d, edi
xor edx, edx
lea ecx, [rdx + 3]
mov r8d, 0xba
call fcn.100432180
nop word [rax + rax]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0x1388
jb 0x1004266f9
mov edi, r14d
call fcn.1004342d0
movzx ebx, al
lea rcx, [0x1004a8ef0]
mov rax, qword [0x1004a90d0]
call qword [case.0x10044bd0b.0]
test eax, eax
jne 0x100426657
cmp dword [0x1004a8ebc], r14d
je 0x10042664a
test bl, bl
je 0x10042664a
lea rdx, str.AbortAllJobs
lea rcx, str.__s_____Waiting_for_CritSec__n
call fcn.10043bdc0
lea rcx, [0x1004a8ef0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1004a8ebc], edi
je 0x100426676
test bl, bl
je 0x100426676
lea rdx, str.AbortAllJobs
lea rcx, str.__s_____Enters_CritSec__n
call fcn.10043bdc0
mov ebx, r14d
cmp dword [0x1004a8ecc], ebx
jle 0x1004266aa
mov edx, ebx
lea rcx, [0x1004a8ec0]
call qword [sym.imp.SQLSVC.dll_SHRecMemLock]
test rax, rax
je 0x1004266a0
cmp dword [rax + 0x588], 0
je 0x1004266a0
inc edi
inc ebx
cmp ebx, dword [0x1004a8ecc]
jl 0x100426681
call fcn.1004342d0
movzx ebx, al
lea rcx, [0x1004a8ef0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x1004a8ebc], 0
je 0x1004266df
test bl, bl
je 0x1004266df
lea rdx, str.AbortAllJobs
lea rcx, str.__s_____Leaves_CritSec__n
call fcn.10043bdc0
test edi, edi
je 0x1004266f6
mov r9d, edi
xor edx, edx
lea ecx, [rdx + 3]
mov r8d, 0xba
call fcn.100432180
mov esi, r14d
add esi, 0x1f4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r14w
mov r8d, 0x12
lea rdx, [0x100476f18]
lea rcx, [rsp + 0x30]
call fcn.10040da90
nop
call fcn.10044da70
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.100409ee0
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, ebp
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jge 0x1004268bd
test edi, edi
jne 0x1004265f0
cmp dword [0x1004a9240], 0
jne 0x10042688f
call fcn.1004342d0
movzx ebx, al
lea rcx, [0x1004a8ef0]
mov rax, qword [0x1004a90d0]
call qword [case.0x10044bd0b.0]
test eax, eax
jne 0x1004267d2
cmp dword [0x1004a8ebc], eax
je 0x1004267c5
test bl, bl
je 0x1004267c5
lea rdx, str.AbortAllJobs
lea rcx, str.__s_____Waiting_for_CritSec__n
call fcn.10043bdc0
lea rcx, [0x1004a8ef0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1004a8ebc], 0
je 0x1004267f2
test bl, bl
je 0x1004267f2
lea rdx, str.AbortAllJobs
lea rcx, str.__s_____Enters_CritSec__n
call fcn.10043bdc0
mov edi, r14d
cmp dword [0x1004a8ecc], r14d
jle 0x10042685a
nop
mov edx, edi
lea rcx, [0x1004a8ec0]
call qword [sym.imp.SQLSVC.dll_SHRecMemLock]
mov rbx, rax
test rax, rax
je 0x100426850
mov rcx, qword [rax + 0x5a0]
test rcx, rcx
je 0x100426850
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x5a0], r14
mov rcx, qword [rbx + 0x1278]
test rcx, rcx
je 0x100426850
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x10044bd0b.0]
mov qword [rbx + 0x1278], r14
inc edi
cmp edi, dword [0x1004a8ecc]
jl 0x100426800
call fcn.1004342d0
movzx ebx, al
lea rcx, [0x1004a8ef0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x1004a8ebc], 0
je 0x10042688f
test bl, bl
je 0x10042688f
lea rdx, str.AbortAllJobs
lea rcx, str.__s_____Leaves_CritSec__n
call fcn.10043bdc0
mov rcx, qword [rsp + 0x660]
xor rcx, rsp
call fcn.100469360
lea r11, [rsp + 0x670]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov dword [rsp + 0x20], edi
mov r9d, ebx
xor edx, edx
lea ecx, [rdx + 2]
mov r8d, 0xbc
call fcn.100432180
mov dword [0x1004a9240], 1
jmp 0x10042688f