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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x370
mov rax, qword [0x1800830c8]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov rax, qword [rsp + 0x3d0]
mov rbp, qword [rsp + 0x3d8]
xor edi, edi
mov r14, rcx
mov rbx, r9
mov qword [rsp + 0xd8], r8
mov r15d, edx
lea rcx, [rsp + 0x151]
xor edx, edx
mov r8d, 0x103
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], rbp
mov qword [rsp + 0xd0], rbx
mov r12d, edi
mov r13d, edi
mov byte [rsp + 0x150], dil
call fcn.180052810
xor eax, eax
lea esi, [rdi + 0x7f]
lea rcx, [rsp + 0x261]
xor edx, edx
mov r8, rsi
mov byte [rsp + 0xf0], dil
mov qword [rsp + 0xf1], rax
mov qword [rsp + 0xf9], rax
mov word [rsp + 0x101], ax
mov byte [rsp + 0x103], al
mov byte [rsp + 0x260], dil
call fcn.180052810
lea rcx, [rsp + 0x2e1]
mov r8, rsi
xor edx, edx
mov byte [rsp + 0x2e0], dil
call fcn.180052810
xor eax, eax
cmp rbx, rdi
mov qword [rsp + 0x109], rax
mov qword [rsp + 0x111], rax
mov qword [rsp + 0x119], rax
mov dword [rsp + 0x121], eax
mov word [rsp + 0x125], ax
mov byte [rsp + 0x127], al
mov qword [rsp + 0xe1], rax
mov dword [rsp + 0xe9], eax
mov word [rsp + 0xed], ax
mov byte [rsp + 0xef], al
lea eax, [rdi + 1]
mov esi, edi
cmovne esi, eax
cmp qword [rsp + 0xb8], rdi
mov byte [rsp + 0x108], dil
mov byte [rsp + 0xe0], dil
mov dword [rsp + 0xa0], edi
cmovne edi, eax
xor ebx, ebx
lea rdx, str._r_nActivated_Block:_r_n_r_n
test rbp, rbp
mov rcx, r14
cmovne ebx, eax
call fcn.180012d7c
lea rcx, [0x18009af78]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbp, qword [0x18009b448]
movsxd rsi, esi
movsxd rax, edi
movsxd rbx, ebx
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xa8], rbx
jmp 0x180031783
inc r13d
cmp dword [rbp + 0xd8], 0
je 0x18003177c
lea rcx, [rsp + 0x150]
xor edx, edx
mov r8d, 0x104
call fcn.180052810
xor edx, edx
lea rcx, [rsp + 0xf0]
lea r8d, [rdx + 0x14]
call fcn.180052810
xor edx, edx
lea rcx, [rsp + 0xe0]
lea r8d, [rdx + 0x10]
call fcn.180052810
cmp dword [rbp + 0x60], 3
lea r11, [0x180070e30]
je 0x180030f1f
lea rdi, str.Pending
jmp 0x180030fd0
cmp dword [rbp + 0x134], 0
lea rdi, [0x180070e34]
cmove rdi, r11
cmp dword [rbp + 0x5c], 3
jne 0x180030f48
cmp dword [rbp + 0x164], 0
je 0x180030f48
mov ecx, dword [rbp + 0x8c]
jmp 0x180030f4b
mov ecx, dword [rbp + 0x7c]
call qword [0x18009ade0]
mov r9d, eax
shr eax, 8
movzx edx, al
movzx r8d, r9b
mov eax, r9d
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], edx
shr eax, 0x10
movzx ecx, al
lea r8, str._d._d._d._d
shr r9d, 0x18
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0xf0]
mov edx, 0x13
call fcn.1800528fc
cmp dword [rbp + 0x5c], 3
jne 0x180030fa9
cmp dword [rbp + 0x164], 0
je 0x180030fa9
movzx ecx, word [rbp + 0x8a]
jmp 0x180030fad
movzx ecx, word [rbp + 0x7a]
call qword [0x18009ada0]
lea r8, [0x180067848]
lea rcx, [rsp + 0xe0]
movzx r9d, ax
mov edx, SQLNumResultCols
call fcn.1800528fc
test r15d, r15d
je 0x180031015
cmp dword [rbp + 0x60], 3
jne 0x18003177c
mov rax, qword [rsp + 0xd8]
test rax, rax
je 0x1800310c0
mov rdx, qword [rbp + 0xe0]
test rdx, rdx
je 0x18003177c
mov rcx, rax
call fcn.180053060
test eax, eax
jne 0x18003177c
jmp 0x1800310c0
test rsi, rsi
jne 0x180031099
cmp qword [rsp + 0xc8], rsi
jne 0x18003107f
test rbx, rbx
je 0x1800310c0
cmp dword [rbp + 0x5c], 3
jne 0x18003105c
cmp dword [rbp + 0x164], esi
je 0x18003105c
movzx ecx, word [rbp + 0x8a]
call qword [0x18009ada0]
mov rcx, qword [rsp + 0xc0]
movzx ebx, ax
call fcn.180054324
cmp eax, ebx
jmp 0x1800310ba
movzx ecx, word [rbp + 0x7a]
call qword [0x18009ada0]
mov rcx, qword [rsp + 0xc0]
movzx ebx, ax
call fcn.180054324
cmp eax, ebx
je 0x1800310c0
jmp 0x180031774
mov rbx, qword [rsp + 0xb8]
mov rcx, rbx
call fcn.1800529c0
lea rcx, [rsp + 0xf0]
jmp 0x1800310ad
mov rbx, qword [rsp + 0xd0]
mov rcx, rbx
call fcn.1800529c0
lea rcx, [rbp + 0x20]
mov r8d, eax
mov rdx, rbx
call fcn.180052dec
test eax, eax
jne 0x180031774
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r11d, eax
mov eax, 0x10624dd3
sub r11d, dword [rbp + 0xcc]
mul r11d
mov eax, 1
mov ebx, edx
shr ebx, 6
test ebx, ebx
cmove ebx, eax
mov rax, qword [rbp + 0xe8]
test rax, rax
jle 0x180031101
mov ecx, ebx
cqo
idiv rcx
add dword [rsp + 0xa0], eax
cmp dword [rbp + 0x5c], 3
lea rsi, [0x180070e2c]
lea rcx, [rsp + 0x260]
cmovne rsi, rdi
mov edi, 0x80
xor edx, edx
mov r8, rdi
call fcn.180052810
lea r8d, [rdi - 0x60]
lea rcx, [rsp + 0x108]
xor edx, edx
call fcn.180052810
lea rcx, [rsp + 0x2e0]
mov r8, rdi
xor edx, edx
call fcn.180052810
cmp dword [rbp + 0x60], 3
jne 0x1800311cf
mov r8, qword [rbp + 0xe8]
lea rcx, [rsp + 0x260]
mov edx, edi
call fcn.180004e04
test eax, eax
jne 0x18003118a
mov r9, qword [rbp + 0xe8]
lea r8, [0x1800677d8]
lea edx, [rdi - 1]
lea rcx, [rsp + 0x260]
call fcn.1800528fc
test r15d, r15d
jne 0x1800311b3
lea rcx, [rsp + 0x260]
call fcn.1800529c0
mov rcx, qword [rbp + 0xe8]
lea rdx, [rsp + 0x2e0]
mov r8, rax
call fcn.180004f10
mov rcx, qword [rbp + 0xe8]
lea r8, [rsp + 0x108]
mov r9d, 0x20
mov edx, ebx
call fcn.180004d54
test r15d, r15d
jne 0x1800314f3
cmp qword [rsp + 0xb0], 0
jne 0x1800313ce
cmp qword [rsp + 0xc8], 0
jne 0x1800313ce
cmp qword [rsp + 0xa8], 0
jne 0x1800313ce
mov ecx, dword [rbp + 0x60]
lea eax, [r15 + 1]
lea r10, str.None
sub ecx, eax
je 0x180031231
sub ecx, eax
je 0x180031228
cmp ecx, eax
jne 0x180031238
lea r10, str.Complete
jmp 0x180031238
lea r10, str.Authorized
jmp 0x180031238
lea r10, str.FirstNegociation
add r12d, eax
mov eax, 0xc22e4507
mul ebx
cmp dword [rbp + 0x60], 3
je 0x1800312e3
mov r9d, edx
lea rcx, [rbp + 0x20]
shr r9d, 0x10
mov eax, r9d
imul eax, eax, 0x15180
sub ebx, eax
mov eax, 0x91a2b3c5
mul ebx
mov r8d, edx
shr r8d, 0xb
mov eax, r8d
imul eax, eax, 0xe10
sub ebx, eax
mov eax, 0x88888889
mul ebx
shr edx, 5
mov eax, edx
imul eax, eax, 0x3c
sub ebx, eax
mov rax, qword [rbp + 0xe8]
mov qword [rsp + 0x60], rax
mov rax, qword [rbp]
mov qword [rsp + 0x58], r10
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x48], edx
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x38], r9d
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x150]
lea r8, str._d._d:_s_____s___d:_d:_d:_d____s____d_Bytes_r_n
mov r9d, r12d
mov edx, 0x103
mov qword [rsp + 0x20], rax
call fcn.1800528fc
jmp 0x180031753
mov r11d, edx
lea r9, [0x1800677bc]
lea rcx, [0x180072d30]
shr r11d, 0x10
lea r8, [rbp + 0x20]
mov eax, r11d
imul eax, eax, 0x15180
sub ebx, eax
mov eax, 0x91a2b3c5
mul ebx
mov r10d, edx
shr r10d, 0xb
mov eax, r10d
imul eax, eax, 0xe10
sub ebx, eax
mov eax, 0x88888889
mul ebx
shr edx, 5
mov eax, edx
imul eax, eax, 0x3c
sub ebx, eax
cmp dword [rbp + 0x190], 0
lea rax, [0x18006bc68]
cmovne r9, rax
cmp dword [rbp + 0x18c], 0
lea rax, [0x180072d2c]
cmovne rcx, rax
mov eax, dword [rbp + 0x174]
mov dword [rsp + 0x90], eax
mov eax, dword [rbp + 0x170]
mov dword [rsp + 0x88], eax
lea rax, [rsp + 0x108]
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x2e0]
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x70], ebx
mov dword [rsp + 0x68], edx
mov dword [rsp + 0x60], r10d
mov dword [rsp + 0x58], r11d
mov qword [rsp + 0x50], rsi
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r8
lea r8, str._d._s_s_d:_s___s:_s__s___d:_d:_d:_d__s__s___d__d_r_n
jmp 0x1800314c6
mov rdi, qword [rbp + 0xe0]
test rdi, rdi
je 0x180031753
mov eax, 0xc22e4507
inc r12d
lea r8, [rbp + 0x20]
lea r9, [0x1800677bc]
lea rcx, [0x180072d30]
mul ebx
mov r11d, edx
shr r11d, 0x10
mov eax, r11d
imul eax, eax, 0x15180
sub ebx, eax
mov eax, 0x91a2b3c5
mul ebx
mov r10d, edx
shr r10d, 0xb
mov eax, r10d
imul eax, eax, 0xe10
sub ebx, eax
mov eax, 0x88888889
mul ebx
shr edx, 5
mov eax, edx
imul eax, eax, 0x3c
sub ebx, eax
lea rax, [0x18006bc68]
cmp dword [rbp + 0x190], 0
cmovne r9, rax
cmp dword [rbp + 0x18c], 0
lea rax, [0x180072d2c]
cmovne rcx, rax
mov eax, dword [rbp + 0x174]
mov dword [rsp + 0x90], eax
mov eax, dword [rbp + 0x170]
mov dword [rsp + 0x88], eax
lea rax, [rsp + 0x108]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x78], ebx
mov dword [rsp + 0x70], edx
mov dword [rsp + 0x68], r10d
mov dword [rsp + 0x60], r11d
mov qword [rsp + 0x58], rsi
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x38], rdi
lea r8, str._d._s_s_d__s_:_s___s:_s__s___d:_d:_d:_d__s___d__d_r_n
mov rax, qword [rbp]
mov edx, 0x103
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x150]
mov r9d, r12d
call fcn.1800528fc
jmp 0x180031753
mov rdi, qword [rbp + 0xe0]
mov eax, 0xc22e4507
inc r12d
mul ebx
test rdi, rdi
je 0x180031619
mov r11d, edx
lea r8, [rbp + 0x20]
lea r9, [0x1800677bc]
shr r11d, 0x10
lea rcx, [0x180072d30]
mov eax, r11d
imul eax, eax, 0x15180
sub ebx, eax
mov eax, 0x91a2b3c5
mul ebx
mov r10d, edx
shr r10d, 0xb
mov eax, r10d
imul eax, eax, 0xe10
sub ebx, eax
mov eax, 0x88888889
mul ebx
shr edx, 5
mov eax, edx
imul eax, eax, 0x3c
sub ebx, eax
cmp dword [rsp + 0x3e0], 0
lea rax, [0x18006bc68]
je 0x18003143d
cmp dword [rbp + 0x190], 0
cmovne r9, rax
cmp dword [rbp + 0x18c], 0
lea rax, [0x180072d2c]
cmovne rcx, rax
mov eax, dword [rbp + 0x198]
mov dword [rsp + 0x88], eax
lea rax, [rsp + 0x108]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x78], ebx
mov dword [rsp + 0x70], edx
mov dword [rsp + 0x68], r10d
mov dword [rsp + 0x60], r11d
mov qword [rsp + 0x58], rsi
lea rax, [rsp + 0xe0]
mov edx, 0x103
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x48], rax
mov rax, qword [rbp]
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], rcx
lea r8, str._d._s_s_d__s_:_s___s:_s__s___d:_d:_d:_d__s___d_r_n
lea rcx, [rsp + 0x150]
mov r9d, r12d
call fcn.1800528fc
jmp 0x180031753
mov r9d, edx
lea rcx, [rbp + 0x20]
shr r9d, 0x10
mov eax, r9d
imul eax, eax, 0x15180
sub ebx, eax
mov eax, 0x91a2b3c5
mul ebx
mov r8d, edx
shr r8d, 0xb
mov eax, r8d
imul eax, eax, 0xe10
sub ebx, eax
mov eax, 0x88888889
mul ebx
shr edx, 5
mov eax, edx
imul eax, eax, 0x3c
sub ebx, eax
cmp dword [rsp + 0x3e0], 0
je 0x1800316d7
mov eax, dword [rbp + 0x198]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x108]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x58], edx
mov dword [rsp + 0x50], r8d
mov dword [rsp + 0x48], r9d
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0xe0]
lea r8, str._d._d:_s___s:_s__s___d:_d:_d:_d__s___d_r_n
mov r9d, r12d
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xf0]
mov edx, 0x103
mov qword [rsp + 0x30], rax
mov rax, qword [rbp]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x150]
mov qword [rsp + 0x20], rax
call fcn.1800528fc
jmp 0x180031753
mov eax, dword [rbp + 0x174]
mov dword [rsp + 0x78], eax
mov eax, dword [rbp + 0x170]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x108]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x58], edx
mov dword [rsp + 0x50], r8d
mov dword [rsp + 0x48], r9d
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0xe0]
lea r8, str._d._d:_s___s:_s__s___d:_d:_d:_d__s___d__d_r_n
mov r9d, r12d
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xf0]
mov edx, 0x103
mov qword [rsp + 0x30], rax
mov rax, qword [rbp]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x150]
mov qword [rsp + 0x20], rax
call fcn.1800528fc
test r14, r14
je 0x18003176c
lea rdx, [rsp + 0x150]
mov rcx, r14
call fcn.180012d7c
test eax, eax
je 0x18003178c
mov rsi, qword [rsp + 0xb0]
mov rbx, qword [rsp + 0xa8]
mov rbp, qword [rbp + 0x1a8]
test rbp, rbp
jne 0x180030ebb
lea rcx, [0x18009af78]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test r12d, r12d
je 0x180031877
call fcn.1800080b0
mov ecx, dword [rsp + 0xa0]
mov ebx, r13d
imul ebx, ebx, 0x1b0
add ebx, eax
xor eax, eax
lea r8, [rsp + 0x128]
lea r9d, [rax + 0x20]
lea edx, [rax + 1]
mov byte [rsp + 0x128], 0
mov qword [rsp + 0x129], rax
mov qword [rsp + 0x131], rax
mov qword [rsp + 0x139], rax
mov dword [rsp + 0x141], eax
mov word [rsp + 0x145], ax
mov byte [rsp + 0x147], al
call fcn.180004d54
mov eax, r12d
lea r9, [rsp + 0x128]
movss xmm1, dword [0x180067808]
imul eax, eax, 0x21b0
lea r8, str._r_nTotal_Average_Speed__:__s_r_nTotal_Allocated_Block:__d____About__.2f_KB_r_nTotal_Activated_Block:__d____About__.2f_KB_r_n_r_n
lea rcx, [rsp + 0x150]
pxor xmm0, xmm0
cvtsi2ss xmm0, rax
mov eax, ebx
mov edx, 0x103
mulss xmm0, xmm1
unpcklps xmm0, xmm0
cvtps2pd xmm2, xmm0
pxor xmm0, xmm0
movsd qword [rsp + 0x38], xmm2
cvtsi2ss xmm0, rax
mov dword [rsp + 0x30], r12d
mulss xmm0, xmm1
unpcklps xmm0, xmm0
cvtps2pd xmm1, xmm0
movsd qword [rsp + 0x28], xmm1
mov dword [rsp + 0x20], r13d
call fcn.1800528fc
jmp 0x1800318a2
lea rdx, str.The_List_Is_Empty_r_n
mov rcx, r14
call fcn.180012d7c
lea r8, str._r_nTotal_Allocated_Block:__d_r_nTotal_Activated_Block:_0_r_n_r_n
lea rcx, [rsp + 0x150]
mov r9d, r13d
mov edx, 0x103
call fcn.1800528fc
lea rdx, [rsp + 0x150]
mov rcx, r14
call fcn.180012d7c
mov eax, 1
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.1800527e0
mov rbx, qword [rsp + 0x3b8]
add rsp, 0x370
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret