Function at 0x646540
Capabilities:
Reference sql statements

Disassembly:
lea r12, [rsp - 0xc0]
cmp r12, qword [r14 + 0x10]
jbe 0x646f86
sub rsp, 0x140
mov qword [rsp + 0x138], rbp
lea rbp, [rsp + 0x138]
mov qword [rsp + 0x150], rbx
test rcx, rcx
jbe 0x646f76
movzx edx, byte [rbx]
nop dword [rax]
cmp rcx, 5
jb 0x646f6c
mov qword [rsp + 0x158], rcx
mov byte [rsp + 0x8f], dl
mov qword [rsp + 0x150], rbx
mov qword [rsp + 0x160], rdi
lea r9, [rdi - 5]
mov qword [rsp + 0x98], r9
mov r10, r9
neg r9
sar r9, 0x3f
and r9d, 5
add r9, rbx
mov qword [rsp + 0x108], r9
lea r11, [rcx - 5]
mov qword [rsp + 0x90], r11
cmp word [rax + 0x18], 0x304
jne 0x64660a
cmp dl, 0x14
jne 0x64660a
mov rax, r9
mov rbx, r11
mov rcx, r10
mov edi, 0x14
xor esi, esi
xor r8d, r8d
mov rbp, qword [rsp + 0x138]
add rsp, 0x140
ret
mov qword [rsp + 0x148], rax
call fcn.00646360
mov rcx, qword [rsp + 0x148]
mov rbx, qword [rcx + 0x20]
mov rdx, qword [rcx + 0x28]
test rbx, rbx
jne 0x646665
mov r10, rcx
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x108]
xor ebx, ebx
mov esi, 0xffffffff
movzx r11d, byte [rsp + 0x8f]
mov r9, rax
mov rdi, rcx
mov r8, rdx
jmp 0x646c2c
je 0x646f59
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xf8], rbx
mov qword [rsp + 0x130], rdx
lea rax, [0x00a43ec0]
mov rcx, rdx
call fcn.0040cb40
test rax, rax
je 0x6466ee
mov rdx, qword [rax + 0x18]
mov rax, rbx
mov rbx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x98]
mov rsi, rbx
mov r8, rcx
mov r9, rdi
nop
call rdx
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x108]
xor ebx, ebx
mov esi, 0xffffffff
xor edi, edi
xor r8d, r8d
xor r9d, r9d
jmp 0x646b51
lea rax, [0x00a58300]
mov rbx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0x130]
call fcn.0040cb40
test rax, rax
jne 0x646945
lea rax, [0x00a4d2e0]
mov rbx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0x130]
call fcn.0040cb40
test rax, rax
je 0x646f59
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0x120], rbx
mov rcx, qword [rax + 0x18]
mov rax, rbx
call rcx
mov qword [rsp + 0xe8], rax
mov rcx, qword [rsp + 0x148]
mov rdx, qword [rcx + 0x30]
mov rbx, qword [rcx + 0x38]
mov rdx, qword [rdx + 0x28]
mov rax, rbx
call rdx
mov rcx, qword [rsp + 0xe8]
nop word [rax + rax]
test rcx, rcx
je 0x646f54
mov rdx, rax
mov rax, qword [rsp + 0x90]
mov rbx, rax
mov rsi, rdx
cqo
idiv rcx
lea rax, [rsi + 1]
mov rdi, rdx
cmp rcx, 0xffffffffffffffff
je 0x6467b3
cqo
idiv rcx
jmp 0x6467b8
neg rax
xor edx, edx
mov rax, rcx
sub rax, rdx
nop
cmp rcx, 0xffffffffffffffff
je 0x6467cd
cqo
idiv rcx
jmp 0x6467d2
neg rax
xor edx, edx
lea r10, [rdx + rsi]
inc r10
mov rcx, qword [rsp + 0xd0]
add r10, rcx
test rdi, rdi
jne 0x64691e
cmp r10, rbx
jg 0x64691e
test rcx, rcx
jle 0x646884
mov rdx, qword [rsp + 0x98]
cmp rcx, rdx
ja 0x646f4f
mov rsi, qword [rsp + 0xd8]
mov r8, qword [rsi + 0x28]
mov rax, qword [rsp + 0x120]
mov rbx, qword [rsp + 0x108]
mov rdi, rdx
call r8
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x90]
cmp rax, rcx
ja 0x646f4a
mov r11, qword [rsp + 0x158]
sub r11, rax
mov r9, qword [rsp + 0x160]
sub r9, rax
add r9, 0xfffffffffffffffb
mov r10, r9
neg r9
sar r9, 0x3f
and rax, r9
mov r12, qword [rsp + 0x108]
lea r9, [r12 + rax]
add r11, 0xfffffffffffffffb
jmp 0x646897
mov r10, qword [rsp + 0x98]
mov r11, rbx
mov r9, qword [rsp + 0x108]
mov qword [rsp + 0x110], r9
mov qword [rsp + 0xa8], r10
mov qword [rsp + 0xa0], r11
mov rdx, qword [rsp + 0xd8]
mov rdx, qword [rdx + 0x20]
mov rax, qword [rsp + 0x120]
mov rbx, r9
mov rcx, r11
mov rdi, r10
mov rsi, rbx
mov r8, rcx
mov r9, rdi
call rdx
mov rax, qword [rsp + 0x110]
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xa8]
call fcn.00646480
mov rcx, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0x110]
mov esi, ebx
xor edi, edi
xor r8d, r8d
xor r9d, r9d
mov rbx, rax
mov rax, qword [rsp + 0xa8]
jmp 0x646b51
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
lea rsi, [0x00b9a200]
lea r8, [0x00993240]
mov rbp, qword [rsp + 0x138]
add rsp, 0x140
ret
mov rcx, qword [rsp + 0xd0]
mov r10, qword [rsp + 0x90]
cmp rcx, r10
jg 0x646c05
mov rdx, qword [rsp + 0x98]
cmp rcx, rdx
ja 0x646f45
test rcx, rcx
jne 0x64698c
mov r9, qword [rsp + 0x148]
lea rdx, [r9 + 0x40]
mov esi, 8
mov edi, 8
jmp 0x6469a2
mov r9, qword [rsp + 0x148]
mov rsi, rdx
mov rdi, rcx
mov rdx, qword [rsp + 0x108]
mov r10, qword [rsp + 0x160]
mov r11, r10
sub r10, rcx
add r10, 0xfffffffffffffffb
mov qword [rsp + 0xa8], r10
mov r12, r10
neg r10
sar r10, 0x3f
and r10, rcx
mov r13, qword [rsp + 0x108]
add r10, r13
mov qword [rsp + 0x110], r10
mov r13, qword [rsp + 0x158]
sub r13, rcx
cmp word [r9 + 0x18], 0x304
jne 0x646a05
mov ecx, 5
mov r8, qword [rsp + 0x150]
nop dword [rax]
jmp 0x646ad4
mov qword [rsp + 0x128], rbx
mov qword [rsp + 0xc0], rsi
mov qword [rsp + 0xb8], rdi
mov qword [rsp + 0x118], rdx
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xf0], r13
mov rcx, qword [r9 + 0x40]
mov qword [r9 + 0x48], rcx
mov rcx, qword [rsp + 0x150]
movzx edx, word [rcx]
movzx esi, byte [rcx + 2]
mov word [r9 + 0x50], dx
mov byte [r9 + 0x52], sil
mov rdx, qword [rax + 0x28]
mov rax, rbx
call rdx
mov rcx, qword [rsp + 0xf0]
mov rdx, rcx
sub rcx, rax
mov rbx, qword [rsp + 0x148]
lea r10, [rbx + 0x48]
lea r11, [rcx - 5]
mov r12, r11
sar r11, 8
mov byte [r10 + 0xb], r11b
mov byte [r10 + 0xc], r12b
mov rax, qword [rsp + 0xe0]
mov rbx, qword [rsp + 0x128]
mov rsi, qword [rsp + 0xc0]
mov rdi, qword [rsp + 0xb8]
mov r12, qword [rsp + 0xa8]
mov r13, rdx
mov r11d, 0xd
mov ecx, 0xd
mov r8, r10
mov rdx, qword [rsp + 0x118]
mov r10, qword [rsp + 0x110]
mov r15, qword [rax + 0x20]
mov qword [rsp], r10
add r13, 0xfffffffffffffffb
mov qword [rsp + 0xa0], r13
mov qword [rsp + 8], r13
mov qword [rsp + 0x10], r12
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], r11
mov rax, rbx
mov rbx, r10
xor ecx, ecx
mov r8, rdi
mov r9, rsi
mov rdi, r12
mov rsi, rdx
call r15
nop dword [rax + rax]
test rdi, rdi
jne 0x646bde
mov rdx, qword [rsp + 0x110]
mov esi, 0xffffffff
mov rdi, rbx
mov r8, rax
mov r9, rcx
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
xor ebx, ebx
mov r10, qword [rsp + 0x148]
cmp word [r10 + 0x18], 0x304
jne 0x646bd3
movzx r11d, byte [rsp + 0x8f]
cmp r11b, 0x17
jne 0x646bac
cmp rdi, 0x4001
jg 0x646b85
lea r11, [rdi - 1]
nop
jmp 0x646eed
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
lea rsi, [0x00b9a200]
lea r8, [0x00993250]
mov rbp, qword [rsp + 0x138]
add rsp, 0x140
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
lea rsi, [0x00b9a200]
lea r8, [0x009931f0]
mov rbp, qword [rsp + 0x138]
add rsp, 0x140
ret
movzx r11d, byte [rsp + 0x8f]
jmp 0x646c2c
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
lea rsi, [0x00b9a200]
lea r8, [0x00993240]
mov rbp, qword [rsp + 0x138]
add rsp, 0x140
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
lea rsi, [0x00b9a200]
lea r8, [0x00993240]
mov rbp, qword [rsp + 0x138]
add rsp, 0x140
ret
mov r12, qword [r10 + 0x30]
mov r13, qword [r10 + 0x38]
test r12, r12
je 0x646e50
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xa0], rcx
mov qword [rsp + 0x110], rdx
mov byte [rsp + 0x8d], r11b
mov byte [rsp + 0x8e], sil
mov qword [rsp + 0xb0], rbx
mov rcx, qword [r12 + 0x28]
mov rax, r13
call rcx
mov rcx, qword [rsp + 0xa0]
nop
cmp rax, rcx
jg 0x646dc4
mov r11, rcx
sub rcx, rax
mov r12, qword [rsp + 0xb0]
sub rcx, r12
mov r12, rcx
shr ecx, 0x1f
lea r13, [rcx - 1]
and r13, r12
mov r12, r13
sar r13, 8
mov r15, qword [rsp + 0x150]
mov byte [r15 + 3], r13b
mov byte [r15 + 4], r12b
lea rcx, [r12 + rax]
mov rdx, qword [rsp + 0xa8]
cmp rdx, rcx
jb 0x646ee5
cmp r12, rcx
ja 0x646ed9
mov r13, r12
sub r12, rdx
sar r12, 0x3f
and r12, r13
mov rbx, rdx
mov rdx, qword [rsp + 0x110]
add r12, rdx
nop word [rax + rax]
cmp r11, rcx
jb 0x646ece
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xf0], r13
mov qword [rsp + 0x100], r12
mov r8, qword [rsp + 0x148]
mov rax, qword [r8 + 0x30]
mov r12, qword [r8 + 0x38]
mov qword [rsp], r15
mov qword [rsp + 8], 5
mov r15, qword [rsp + 0x160]
mov qword [rsp + 0x10], r15
mov qword [rsp + 0x18], rdx
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x28], rbx
sub rbx, rcx
mov rsi, rbx
neg rbx
sar rbx, 0x3f
and rbx, rcx
add rdx, rbx
mov qword [rsp + 0x30], rdx
sub r11, rcx
mov qword [rsp + 0x38], r11
mov qword [rsp + 0x40], rsi
lea rcx, [r8 + 0x48]
lea rdx, [r8 + 0x40]
mov rbx, r12
mov esi, 0xd
mov r9d, 8
mov r10, r9
xor edi, edi
mov r8, rdx
nop dword [rax]
call fcn.00643ac0
mov rdx, qword [rsp + 0xc8]
cmp rbx, rdx
je 0x646db6
xor edx, edx
jmp 0x646e11
mov rdx, qword [rsp + 0x100]
xor ecx, ecx
xor esi, esi
jmp 0x646e02
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
lea rsi, [0x00b9a200]
lea r8, [0x00993240]
mov rbp, qword [rsp + 0x138]
add rsp, 0x140
ret
lea r9, [rcx + 1]
movzx r10d, byte [rax + rcx]
movzx r11d, byte [rcx + rdx]
xor r10d, r11d
or esi, r10d
mov rcx, r9
cmp rbx, rcx
jg 0x646deb
nop
movzx edx, sil
dec edx
shr edx, 0x1f
movzx r9d, byte [rsp + 0x8e]
movzx r9d, r9b
and r9, rdx
cmp r9, 1
jne 0x646e57
mov r10, qword [rsp + 0x148]
movzx r11d, byte [rsp + 0x8d]
mov r9, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xf0]
mov r8, qword [rsp + 0x110]
mov eax, 7
jmp 0x646e81
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
lea rsi, [0x00b9a200]
lea r8, [0x00993240]
mov rbp, qword [rsp + 0x138]
add rsp, 0x140
ret
dec rax
test rax, rax
jl 0x646ebb
movzx edx, byte [r10 + rax + 0x40]
lea r12d, [rdx + 1]
mov byte [r10 + rax + 0x40], r12b
cmp dl, 0xff
je 0x646e7e
mov rax, r8
mov rbx, rdi
mov rcx, r9
mov edi, r11d
xor esi, esi
xor r8d, r8d
mov rbp, qword [rsp + 0x138]
add rsp, 0x140
ret
lea rax, [0x00a16860]
lea rbx, [0x00b97db0]
call fcn.00438220
mov rax, rcx
mov rcx, r11
call fcn.004689a0
mov rax, r12
nop dword [rax]
call fcn.004689a0
call fcn.00468960
dec r11
test r11, r11
jl 0x646f2c
movzx r12d, byte [r8 + r11]
test r12b, r12b
jne 0x646f35
nop dword [rax]
test r11, r11
jne 0x646eea
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
lea rsi, [0x00b9a200]
lea r8, [0x009931f0]
mov rbp, qword [rsp + 0x138]
add rsp, 0x140
ret
mov r12d, 0x17
mov r11, rdi
mov rdi, r11
mov r11d, r12d
nop dword [rax + rax]
jmp 0x646c2c
call fcn.00468960
call fcn.004689a0
call fcn.00468960
call fcn.00436c60
lea rax, [0x00a16860]
lea rbx, [0x00b97dc0]
call fcn.00438220
mov eax, 5
call fcn.004689a0
xor eax, eax
mov rcx, rax
nop dword [rax + rax]
call fcn.004688e0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00466260
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.00646540