Function at 0x180028390
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x4120
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edi, SQLNumResultCols
lea rcx, [rbx + 0x409c]
mov r8d, edi
xor edx, edx
call fcn.1800252b0
lea rcx, [rbx + 0x40ac]
mov r8d, edi
xor edx, edx
call fcn.1800252b0
lea rcx, [rbx + 0x40bc]
mov r8d, edi
xor edx, edx
call fcn.1800252b0
lea rcx, [rbx + 0x40cc]
mov r8d, edi
xor edx, edx
call fcn.1800252b0
or qword [rbx + 0x4078], 0xffffffffffffffff
mov dword [rbx + 0x4090], 0x400
mov qword [rbx + 0x4094], 0x1000
mov dword [rbx + 0x4108], 0xea60
xor esi, esi
mov dword [rbx], esi
mov qword [rbx + 0x4080], rsi
mov qword [rbx + 0x4088], rsi
mov qword [rbx + 0x40e0], rsi
mov qword [rbx + 0x40e8], rsi
mov qword [rbx + 0x40f0], rsi
mov dword [rbx + 0x40dc], esi
lea eax, [rdi - 0xf]
mov ecx, 0x2710
mov dword [rbx + 0x40f8], eax
mov dword [rbx + 0x4104], eax
mov qword [rbx + 0x40fc], rcx
mov dword [rbx + 0x410c], ecx
mov qword [rbx + 0x4110], rcx
or eax, 0xffffffff
mov dword [rbx + 0x4118], eax
mov dword [rbx + 0x411c], eax
lea rax, [rbx + 0x4150]
mov dword [rax + 0x10], esi
mov qword [rax], rax
mov qword [rax + 8], rax
lea rax, [rbx + 0x4168]
mov edi, 0x8000
lea rcx, [rbx + 0x41b8]
mov dword [rax + 0x10], esi
mov qword [rax], rax
mov qword [rax + 8], rax
lea rax, [rbx + 0x4180]
mov r8d, edi
xor edx, edx
mov dword [rax + 0x10], esi
mov qword [rax], rax
mov qword [rax + 8], rax
mov dword [rbx + 0x4198], esi
lea rax, [rbx + 0xc1b8]
mov dword [rax + 0x10], esi
mov qword [rax], rax
mov qword [rax + 8], rax
mov dword [rbx + 0x41b0], esi
mov qword [rbx + 0x41a0], rsi
mov qword [rbx + 0x41a8], rsi
call fcn.18002b6f0
lea rax, [rbx + 0x141e8]
lea rcx, [rbx + 0xc1e8]
mov dword [rax + 0x10], esi
mov qword [rax], rax
mov qword [rax + 8], rax
mov r8d, edi
xor edx, edx
mov dword [rbx + 0xc1e0], esi
mov qword [rbx + 0xc1d0], rsi
mov qword [rbx + 0xc1d8], rsi
call fcn.18002b6f0
lea rax, [rbx + 0x14208]
mov dword [rax + 0x10], esi
mov qword [rax], rax
mov qword [rax + 8], rax
lea rax, [rbx + 0x14220]
movabs rdi, 0x20c49ba5e353f7cf
mov dword [rax + 0x10], esi
mov qword [rax], rax
mov qword [rax + 8], rax
lea rax, [rbx + 0x14240]
mov dword [rax + 0x10], esi
mov qword [rax], rax
mov qword [rax + 8], rax
lea rax, [rbx + 0x14258]
mov dword [rax + 0x10], esi
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rbx + 0x192f8], rsi
mov qword [rbx + 0x19300], rsi
mov qword [rbx + 0x19308], rsi
mov qword [rbx + 0x19310], rsi
mov qword [rbx + 0x19318], rsi
mov qword [rbx + 0x19320], rsi
mov qword [rbx + 0x19328], rsi
mov qword [rbx + 0x19330], rsi
mov qword [rbx + 0x19338], rsi
mov qword [rbx + 0x19340], rsi
mov qword [rbx + 0x19348], rsi
mov qword [rbx + 0x19350], rsi
mov qword [rbx + 0x19358], rsi
mov qword [rbx + 0x19360], rsi
mov qword [rbx + 0x19368], rsi
mov qword [rbx + 0x19370], rsi
mov qword [rbx + 0x19378], rsi
mov qword [rbx + 0x19380], rsi
mov qword [rbx + 0x19388], rsi
mov qword [rbx + 0x19390], rsi
mov qword [rbx + 0x19398], rsi
mov qword [rbx + 0x193a0], rsi
cmp qword [0x180037ca8], rsi
jne 0x18002864a
lea rcx, [0x180037ca8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rax, rdi
imul qword [0x180037ca8]
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [0x180037ca8], rdx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
xor edx, edx
div qword [0x180037ca8]
mov dword [rbx + 0x192f0], eax
cmp qword [0x180037ca8], rsi
jne 0x18002869e
lea rcx, [0x180037ca8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rax, rdi
imul qword [0x180037ca8]
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [0x180037ca8], rdx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
xor edx, edx
div qword [0x180037ca8]
mov dword [rbx + 0x192f4], eax
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret