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

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x450
mov rax, qword [0x1400950c8]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov r14d, dword [rsp + 0x4b0]
mov rbp, rcx
lea rcx, [r11 - 0x3d8]
mov rbx, rdx
lea rdx, [0x140000000]
mov r13, r9
mov rax, qword [rdx + 0x77260]
mov r12, r8
mov qword [rcx], rax
mov eax, dword [rdx + 0x77268]
mov dword [rcx + 8], eax
movzx eax, word [rdx + 0x7726c]
mov word [rcx + 0xc], ax
xor eax, eax
lea rcx, [r11 - 0x3b4]
mov qword [r11 - 0x3ca], rax
mov qword [r11 - 0x3c2], rax
mov dword [rsp + 0xce], eax
mov word [rsp + 0xd2], ax
mov eax, dword [rdx + 0x77250]
mov dword [rcx], eax
mov eax, dword [rdx + 0x77254]
mov dword [rcx + 4], eax
mov eax, dword [rdx + 0x77258]
mov dword [rcx + 8], eax
mov eax, dword [rdx + 0x7725c]
mov dword [rcx + 0xc], eax
xor eax, eax
lea rcx, [r11 - 0x390]
mov dword [rsp + 0xe4], eax
mov dword [rsp + 0xe8], eax
mov dword [rsp + 0xec], eax
mov dword [rsp + 0xf0], eax
mov dword [rsp + 0xf4], eax
mov rax, qword [rdx + 0x77240]
mov qword [rcx], rax
mov eax, dword [rdx + 0x77248]
mov dword [rcx + 8], eax
movzx eax, word [rdx + 0x7724c]
mov word [rcx + 0xc], ax
movzx eax, byte [rdx + 0x7724e]
mov byte [rcx + 0xe], al
xor eax, eax
lea rcx, [r11 - 0x36c]
mov qword [r11 - 0x381], rax
mov qword [r11 - 0x379], rax
mov dword [rsp + 0x117], eax
mov byte [rsp + 0x11b], al
mov eax, dword [rdx + 0x77230]
mov dword [rcx], eax
mov eax, dword [rdx + 0x77234]
mov dword [rcx + 4], eax
mov eax, dword [rdx + 0x77238]
mov dword [rcx + 8], eax
mov eax, dword [rdx + 0x7723c]
mov dword [rcx + 0xc], eax
xor eax, eax
lea rcx, [r11 - 0x348]
mov dword [rsp + 0x12c], eax
mov dword [rsp + 0x130], eax
mov dword [rsp + 0x134], eax
mov dword [rsp + 0x138], eax
mov dword [rsp + 0x13c], eax
mov rax, qword [rdx + 0x77220]
mov qword [rcx], rax
mov rax, qword [rdx + 0x77228]
mov qword [rcx + 8], rax
xor eax, eax
lea rcx, [r11 - 0x324]
mov qword [r11 - 0x338], rax
mov qword [r11 - 0x330], rax
mov dword [rsp + 0x160], eax
mov eax, dword [rdx + 0x77208]
mov dword [rcx], eax
mov eax, dword [rdx + 0x7720c]
mov dword [rcx + 4], eax
mov eax, dword [rdx + 0x77210]
mov dword [rcx + 8], eax
mov eax, dword [rdx + 0x77214]
mov dword [rcx + 0xc], eax
mov eax, dword [rdx + 0x77218]
mov dword [rcx + 0x10], eax
xor eax, eax
lea rcx, [r11 - 0x300]
mov qword [r11 - 0x310], rax
mov qword [r11 - 0x308], rax
mov rax, qword [rdx + 0x771f8]
mov qword [rcx], rax
movzx eax, word [rdx + 0x77200]
mov word [rcx + 8], ax
movzx eax, byte [rdx + 0x77202]
mov byte [rcx + 0xa], al
xor eax, eax
lea rcx, [r11 - 0x2dc]
mov qword [r11 - 0x2f5], rax
mov qword [r11 - 0x2ed], rax
mov qword [r11 - 0x2e5], rax
mov byte [rsp + 0x1ab], al
mov eax, dword [rdx + 0x771e0]
mov dword [rcx], eax
mov eax, dword [rdx + 0x771e4]
mov dword [rcx + 4], eax
mov eax, dword [rdx + 0x771e8]
mov dword [rcx + 8], eax
mov eax, dword [rdx + 0x771ec]
mov dword [rcx + 0xc], eax
movzx eax, word [rdx + 0x771f0]
mov word [rcx + 0x10], ax
xor eax, eax
lea rcx, [r11 - 0x2b8]
mov qword [r11 - 0x2ca], rax
mov qword [r11 - 0x2c2], rax
mov word [rsp + 0x1ce], ax
mov rax, qword [rdx + 0x771d0]
mov qword [rcx], rax
mov eax, dword [rdx + 0x771d8]
mov dword [rcx + 8], eax
movzx eax, byte [rdx + 0x771dc]
mov byte [rcx + 0xc], al
xor eax, eax
lea rcx, [r11 - 0x294]
mov qword [r11 - 0x2ab], rax
mov qword [r11 - 0x2a3], rax
mov dword [rsp + 0x1ed], eax
mov word [rsp + 0x1f1], ax
mov byte [rsp + 0x1f3], al
mov eax, dword [rdx + 0x771b0]
mov dword [rcx], eax
mov eax, dword [rdx + 0x771b4]
mov dword [rcx + 4], eax
mov eax, dword [rdx + 0x771b8]
mov dword [rcx + 8], eax
mov eax, dword [rdx + 0x771bc]
mov dword [rcx + 0xc], eax
mov eax, dword [rdx + 0x771c0]
mov dword [rcx + 0x10], eax
mov eax, dword [rdx + 0x771c4]
mov dword [rcx + 0x14], eax
movzx eax, word [rdx + 0x771c8]
mov word [rcx + 0x18], ax
movzx eax, byte [rdx + 0x771ca]
mov byte [rcx + 0x1a], al
xor eax, eax
lea rcx, [r11 - 0x270]
mov qword [r11 - 0x279], rax
mov byte [rsp + 0x217], al
mov rax, qword [rdx + 0x77198]
mov qword [rcx], rax
mov rax, qword [rdx + 0x771a0]
mov qword [rcx + 8], rax
mov eax, dword [rdx + 0x771a8]
mov dword [rcx + 0x10], eax
movzx eax, byte [rdx + 0x771ac]
mov byte [rcx + 0x14], al
xor eax, eax
lea rcx, [r11 - 0x24c]
mov qword [r11 - 0x25b], rax
mov dword [rsp + 0x235], eax
mov word [rsp + 0x239], ax
mov byte [rsp + 0x23b], al
mov eax, dword [rdx + 0x77178]
mov dword [rcx], eax
mov eax, dword [rdx + 0x7717c]
mov dword [rcx + 4], eax
mov eax, dword [rdx + 0x77180]
mov dword [rcx + 8], eax
mov eax, dword [rdx + 0x77184]
mov dword [rcx + 0xc], eax
mov eax, dword [rdx + 0x77188]
mov dword [rcx + 0x10], eax
mov eax, dword [rdx + 0x7718c]
mov dword [rcx + 0x14], eax
movzx eax, word [rdx + 0x77190]
mov word [rcx + 0x18], ax
movzx eax, byte [rdx + 0x77192]
mov byte [rcx + 0x1a], al
xor eax, eax
lea rcx, [r11 - 0x228]
mov qword [r11 - 0x231], rax
mov byte [rsp + 0x25f], al
mov rax, qword [rdx + 0x77168]
mov qword [rcx], rax
mov eax, dword [rdx + 0x77170]
mov dword [rcx + 8], eax
movzx eax, word [rdx + 0x77174]
mov word [rcx + 0xc], ax
xor eax, eax
lea rcx, [r11 - 0x204]
mov qword [r11 - 0x21a], rax
mov qword [r11 - 0x212], rax
mov dword [rsp + 0x27e], eax
mov word [rsp + 0x282], ax
mov eax, dword [rdx + 0x77150]
mov dword [rcx], eax
mov eax, dword [rdx + 0x77154]
mov dword [rcx + 4], eax
mov eax, dword [rdx + 0x77158]
mov dword [rcx + 8], eax
mov eax, dword [rdx + 0x7715c]
mov dword [rcx + 0xc], eax
movzx eax, byte [rdx + 0x77160]
mov byte [rcx + 0x10], al
xor eax, eax
lea rcx, [r11 - 0x1e0]
mov qword [r11 - 0x1f3], rax
mov qword [r11 - 0x1eb], rax
mov word [rsp + 0x2a5], ax
mov byte [rsp + 0x2a7], al
mov rax, qword [rdx + 0x77138]
mov qword [rcx], rax
mov rax, qword [rdx + 0x77140]
mov qword [rcx + 8], rax
mov eax, dword [rdx + 0x77148]
mov dword [rcx + 0x10], eax
movzx eax, word [rdx + 0x7714c]
mov word [rcx + 0x14], ax
xor eax, eax
lea rcx, [r11 - 0x1bc]
mov qword [r11 - 0x1ca], rax
mov dword [rsp + 0x2c6], eax
mov word [rsp + 0x2ca], ax
mov eax, dword [rdx + 0x77120]
mov dword [rcx], eax
mov eax, dword [rdx + 0x77124]
mov dword [rcx + 4], eax
mov eax, dword [rdx + 0x77128]
mov dword [rcx + 8], eax
mov eax, dword [rdx + 0x7712c]
mov dword [rcx + 0xc], eax
movzx eax, byte [rdx + 0x77130]
mov byte [rcx + 0x10], al
xor eax, eax
lea rcx, [r11 - 0x198]
mov qword [r11 - 0x1ab], rax
mov qword [r11 - 0x1a3], rax
mov word [rsp + 0x2ed], ax
mov byte [rsp + 0x2ef], al
mov rax, qword [rdx + 0x77110]
mov qword [rcx], rax
mov rax, qword [rdx + 0x77118]
mov qword [rcx + 8], rax
xor eax, eax
mov qword [r11 - 0x188], rax
mov qword [r11 - 0x180], rax
mov dword [rsp + 0x310], eax
mov eax, dword [rdx + 0x770f8]
lea rcx, [r11 - 0x174]
mov dword [rcx], eax
mov eax, dword [rdx + 0x770fc]
mov dword [rcx + 4], eax
mov eax, dword [rdx + 0x77100]
mov dword [rcx + 8], eax
mov eax, dword [rdx + 0x77104]
mov dword [rcx + 0xc], eax
movzx eax, word [rdx + 0x77108]
mov word [rcx + 0x10], ax
movzx eax, byte [rdx + 0x7710a]
mov byte [rcx + 0x12], al
xor eax, eax
lea rcx, [r11 - 0x150]
mov qword [r11 - 0x161], rax
mov qword [r11 - 0x159], rax
mov byte [rsp + 0x337], al
mov rax, qword [rdx + 0x770e0]
mov qword [rcx], rax
mov rax, qword [rdx + 0x770e8]
mov qword [rcx + 8], rax
movzx eax, word [rdx + 0x770f0]
mov word [rcx + 0x10], ax
xor eax, eax
lea rcx, [r11 - 0x12c]
mov qword [r11 - 0x13e], rax
mov qword [r11 - 0x136], rax
mov word [rsp + 0x35a], ax
mov eax, dword [rdx + 0x770c0]
mov dword [rcx], eax
mov eax, dword [rdx + 0x770c4]
mov dword [rcx + 4], eax
mov eax, dword [rdx + 0x770c8]
mov dword [rcx + 8], eax
mov eax, dword [rdx + 0x770cc]
mov dword [rcx + 0xc], eax
mov eax, dword [rdx + 0x770d0]
mov dword [rcx + 0x10], eax
mov eax, dword [rdx + 0x770d4]
mov dword [rcx + 0x14], eax
movzx eax, word [rdx + 0x770d8]
mov word [rcx + 0x18], ax
xor eax, eax
lea rcx, [r11 - 0x108]
mov qword [r11 - 0x112], rax
mov word [rsp + 0x37e], ax
mov rax, qword [rdx + 0x770a8]
mov qword [rcx], rax
mov rax, qword [rdx + 0x770b0]
mov qword [rcx + 8], rax
mov eax, dword [rdx + 0x770b8]
mov dword [rcx + 0x10], eax
movzx eax, byte [rdx + 0x770bc]
mov byte [rcx + 0x14], al
xor eax, eax
lea rcx, [r11 - 0xe4]
mov qword [r11 - 0xf3], rax
mov dword [rsp + 0x39d], eax
mov word [rsp + 0x3a1], ax
mov byte [rsp + 0x3a3], al
mov eax, dword [rdx + 0x77098]
mov dword [rcx], eax
mov eax, dword [rdx + 0x7709c]
mov dword [rcx + 4], eax
mov eax, dword [rdx + 0x770a0]
mov dword [rcx + 8], eax
mov eax, dword [rdx + 0x770a4]
mov dword [rcx + 0xc], eax
xor eax, eax
lea rcx, [r11 - 0xc0]
mov dword [rsp + 0x3b4], eax
mov dword [rsp + 0x3b8], eax
mov dword [rsp + 0x3bc], eax
mov dword [rsp + 0x3c0], eax
mov dword [rsp + 0x3c4], eax
mov rax, qword [rdx + 0x77078]
mov qword [rcx], rax
mov rax, qword [rdx + 0x77080]
mov qword [rcx + 8], rax
mov rax, qword [rdx + 0x77088]
mov edi, 2
mov qword [rcx + 0x10], rax
mov eax, dword [rdx + 0x77090]
mov dword [rsp + 0x30], SQLNumResultCols
mov dword [rcx + 0x18], eax
xor eax, eax
lea rcx, [r11 - 0x9c]
mov dword [rsp + 0x3e4], eax
mov dword [rsp + 0x3e8], eax
mov eax, dword [rdx + 0x77058]
mov dword [rcx], eax
mov eax, dword [rdx + 0x7705c]
mov word [rsp + 0xa0], di
mov dword [rcx + 4], eax
mov eax, dword [rdx + 0x77060]
mov dword [rcx + 8], eax
mov eax, dword [rdx + 0x77064]
mov dword [rcx + 0xc], eax
mov eax, dword [rdx + 0x77068]
mov dword [rcx + 0x10], eax
mov eax, dword [rdx + 0x7706c]
mov dword [rcx + 0x14], eax
mov eax, dword [rdx + 0x77070]
mov dword [rcx + 0x18], eax
xor eax, eax
lea rcx, [r11 - 0x78]
mov qword [r11 - 0x80], rax
mov rax, qword [rdx + 0x77038]
mov qword [rcx], rax
mov rax, qword [rdx + 0x77040]
mov qword [rcx + 8], rax
mov rax, qword [rdx + 0x77048]
mov qword [rcx + 0x10], rax
mov eax, dword [rdx + 0x77050]
mov dword [rcx + 0x18], eax
xor eax, eax
lea ecx, [rax + 0x7b]
mov dword [r11 - 0x5c], eax
mov dword [r11 - 0x58], eax
call qword [0x1400acd50]
lea r8d, [rdi + 0xf]
mov edx, edi
mov word [rsp + 0xa2], ax
xor eax, eax
mov ecx, edi
mov qword [rbp], rax
mov qword [rbp + 8], rax
call qword [0x1400acd98]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140011544
mov dword [rbx], 1
jmp 0x1400116fe
mov qword [rsp + 0x490], r15
xor r15d, r15d
mov edi, r15d
mov eax, edi
lea rcx, [rax + rax*8]
lea rbx, [rsp + rcx*4 + 0xb0]
mov rcx, rbx
call qword [0x1400acf88]
cmp eax, 0xffffffff
jne 0x140011582
mov rcx, rbx
call fcn.140004e90
mov rbx, rax
test rax, rax
je 0x140011674
mov rcx, rbx
call qword [0x1400acf88]
mov ecx, 0xb000000
mov dword [rsp + 0xa4], eax
call qword [0x1400acd48]
mov dword [rsp + 0x44], r15d
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x4c], r15d
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], r15
mov dword [rsp + 0x68], r15d
mov dword [rsp + 0x6c], r15d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor r9d, r9d
lea rax, [rsp + 0xa0]
lea rdx, [rsp + 0x40]
lea r8d, [r9 + 0x30]
mov rcx, rsi
mov dword [rsp + 0x28], SQLNumResultCols
mov qword [rsp + 0x20], rax
call qword [0x1400acf58]
cmp eax, 0xffffffff
je 0x140011674
mov edx, 6
mov rcx, rsi
call fcn.140006480
test eax, eax
je 0x140011674
cmp eax, 0xffffffff
je 0x140011674
lea rax, [rsp + 0x30]
xor r9d, r9d
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa0]
lea r8d, [r9 + 0x30]
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [0x1400acfb8]
cmp eax, 0xffffffff
je 0x140011674
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [rsp + 0x98]
call qword [0x1400ace18]
lea rcx, [rsp + 0x38]
add eax, 0x7c558180
mov qword [rsp + 0x38], rax
call fcn.1400610f0
mov r11, rax
test rax, rax
jne 0x140011681
inc edi
cmp edi, 0x19
jb 0x140011552
jmp 0x1400116ed
movzx eax, word [rax + 0x14]
mov ecx, 0x76c
mov r8, r14
add ax, cx
mov rcx, r13
mov word [rbp], ax
movzx eax, word [r11 + 0x10]
inc ax
mov word [rbp + 2], ax
movzx eax, word [r11 + 0x18]
mov word [rbp + 4], ax
movzx eax, word [r11 + 0xc]
mov word [rbp + 6], ax
movzx eax, word [r11 + 8]
mov word [rbp + 8], ax
movzx eax, word [r11 + 4]
mov word [rbp + 0xa], ax
movzx eax, word [r11]
mov word [rbp + 0xc], ax
mov eax, dword [rsp + 0x98]
mov dword [r12], eax
mov eax, edi
lea rdx, [rax + rax*8]
lea rdx, [rsp + rdx*4 + 0xb0]
call fcn.140060000
mov rcx, rsi
call qword [0x1400abc70]
mov r15, qword [rsp + 0x490]
mov rax, rbp
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14005fe20
add rsp, 0x450
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret