Function at 0x180003d91
Capabilities:
Reference sql statements

Disassembly:
jmp 0x1800dbf90
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x3f]
sub rsp, 0x98
mov rsi, rcx
mov rdi, r9
add rcx, 0x48
mov rbx, r8
call fcn.1800046dd
test eax, eax
je 0x1800dbfcc
mov eax, 0x80004005
add rsp, 0x98
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov qword [rsp + 0xc8], r12
lea rax, str.SELECT_ModulePath__COUNT___FROM_AllocationGroup_WHERE_Snapshot_id___
mov qword [rsp + 0xd8], r14
mov qword [rsp + 0x90], r15
xor r15d, r15d
mov qword [rsi + 0x30], rbx
mov ebx, r15d
nop word [rax + rax]
inc ebx
lea rax, [rax + 2]
cmp r15w, word [rax]
jne 0x1800dc000
lea edx, [rbx + 0x100]
xor ecx, ecx
add rdx, rdx
lea r14d, [rbx + 0xff]
call fcn.180005df3
lea r8d, [rbx + 1]
mov rcx, rax
add r8, r8
lea rdx, str.SELECT_ModulePath__COUNT___FROM_AllocationGroup_WHERE_Snapshot_id___
mov r12, rax
call fcn.180004e58
mov edx, 0x200
mov qword [rbp - 0x19], r15
xor ecx, ecx
mov dword [rbp - 0xd], 0xff
call fcn.180005df3
mov qword [rbp - 0x19], rax
lea r9, [rsi + 0x38]
mov dword [rbp - 0x11], r15d
lea r8, [rbp - 0x19]
mov edx, 1
mov rcx, rdi
mov word [rax], r15w
call fcn.1800011ef
mov edi, eax
test eax, eax
jne 0x1800dc481
mov qword [rsp + 0xd0], r13
cmp dword [rbp - 0x11], r15d
je 0x1800dc125
mov edi, r15d
lea rax, str._AND
nop word [rax + rax]
lea rax, [rax + 2]
lea edi, [rdi + 1]
cmp r15w, word [rax]
jne 0x1800dc0a0
lea esi, [rdi + rbx]
cmp esi, r14d
jb 0x1800dc0d0
lea edx, [rsi + 0x100]
mov rcx, r12
add rdx, rdx
lea r14d, [rsi + 0xff]
call fcn.180005df3
mov r12, rax
lea r8d, [rdi + 1]
add r8, r8
lea rcx, [r12 + rbx*2]
lea rdx, str._AND
call fcn.180004e58
mov edi, dword [rbp - 0x11]
lea ebx, [rsi + rdi]
cmp ebx, r14d
jb 0x1800dc10d
lea edx, [rbx + 0x100]
mov rcx, r12
add rdx, rdx
lea r14d, [rbx + 0xff]
call fcn.180005df3
mov r12, rax
mov rdx, qword [rbp - 0x19]
lea r8d, [rdi + 1]
add r8, r8
lea rcx, [r12 + rsi*2]
call fcn.180004e58
mov rsi, qword [rbp + 0x67]
mov edi, r15d
lea rax, str._GROUP_BY_ModulePath_ORDER_BY_2_DESC
nop
lea rax, [rax + 2]
lea edi, [rdi + 1]
cmp r15w, word [rax]
jne 0x1800dc130
lea eax, [rbx + rdi]
cmp eax, r14d
jb 0x1800dc159
lea edx, [rax + 0x100]
mov rcx, r12
add rdx, rdx
call fcn.180005df3
mov r12, rax
lea r8d, [rdi + 1]
add r8, r8
lea rcx, [r12 + rbx*2]
lea rdx, str._GROUP_BY_ModulePath_ORDER_BY_2_DESC
call fcn.180004e58
lea rax, [rsi + 0x58]
mov qword [rbp + 0x17], rax
test r12, r12
jne 0x1800dc1a2
mov edx, 0x200
mov dword [rbp + 0x2b], 0xff
xor ecx, ecx
call fcn.180005df3
mov qword [rbp - 0x21], rax
mov qword [rbp + 0x1f], rax
mov dword [rbp + 0x27], r15d
mov word [rax], r15w
jmp 0x1800dc1f2
mov ebx, r15d
mov rax, r12
cmp r15w, word [r12]
je 0x1800dc1bc
nop
inc ebx
lea rax, [rax + 2]
cmp r15w, word [rax]
jne 0x1800dc1b0
lea eax, [rbx + 0xff]
xor ecx, ecx
lea edx, [rbx + 0x100]
mov dword [rbp + 0x2b], eax
add rdx, rdx
call fcn.180005df3
lea r8d, [rbx + 1]
mov qword [rbp - 0x21], rax
add r8, r8
mov qword [rbp + 0x1f], rax
mov rcx, rax
mov dword [rbp + 0x27], ebx
mov rdx, r12
call fcn.180004e58
mov dword [rbp - 0x29], r15d
lea r15, [rbp + 0x17]
nop word [rax + rax]
mov rbx, qword [r15]
mov r14, qword [r15 + 8]
mov r13, qword [rsi + 0x50]
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800dc21e
call qword [0x1802495e0]
xor ecx, ecx
mov qword [rbx], rcx
test r14, r14
jne 0x1800dc239
mov edx, 0x200
xor ecx, ecx
call fcn.180005df3
xor ecx, ecx
mov rsi, rax
mov word [rax], cx
jmp 0x1800dc276
mov edi, ecx
mov rax, r14
cmp cx, word [r14]
je 0x1800dc24f
inc edi
lea rax, [rax + 2]
cmp cx, word [rax]
jne 0x1800dc244
lea edx, [rdi + 0x100]
xor ecx, ecx
add rdx, rdx
call fcn.180005df3
lea r8d, [rdi + 1]
mov rdx, r14
add r8, r8
mov rcx, rax
mov rsi, rax
call fcn.180004e58
xor ecx, ecx
test rsi, rsi
jne 0x1800dc2a7
cmp dword [rbx + 0x24], esi
ja 0x1800dc299
mov rcx, qword [rbx + 0x18]
mov edx, 0x200
mov dword [rbx + 0x24], 0xff
call fcn.180005df3
mov qword [rbx + 0x18], rax
xor edi, edi
mov dword [rbx + 0x20], edi
mov rax, qword [rbx + 0x18]
mov word [rax], di
jmp 0x1800dc2fd
mov edi, ecx
mov rax, rsi
cmp cx, word [rsi]
je 0x1800dc2bc
inc edi
lea rax, [rax + 2]
cmp cx, word [rax]
jne 0x1800dc2b1
cmp edi, dword [rbx + 0x24]
jb 0x1800dc2dd
mov rcx, qword [rbx + 0x18]
lea eax, [rdi + 0xff]
lea edx, [rax + 1]
mov dword [rbx + 0x24], eax
add rdx, rdx
call fcn.180005df3
mov qword [rbx + 0x18], rax
mov dword [rbx + 0x20], edi
lea r8d, [rdi + 1]
mov rcx, qword [rbx + 0x18]
add r8, r8
mov rdx, rsi
call fcn.180004e58
mov rcx, rsi
call fcn.180003427
xor edi, edi
mov rcx, r14
mov qword [rbx + 8], r13
call qword [0x180259130]
mov r9, rbx
mov qword [rsp + 0x20], rdi
mov rdx, r14
mov rcx, r13
lea r8d, [rax + rax]
call qword [0x1802495f0]
mov dword [rbx + 0x10], eax
test eax, eax
je 0x1800dc3cc
cmp eax, 0x65
je 0x1800dc3cc
mov rcx, r13
call qword [0x180249668]
cmp dword [0x1802492d4], 0
mov rdi, rax
je 0x1800dc42d
xor edx, edx
lea rcx, [rbp - 9]
call fcn.1800047e1
mov rcx, rax
lea rdx, str.DeleakerSDK::SQLiteWrappers::CStmt::Prepare
call fcn.180002621
mov rcx, rax
lea rdx, str.:_sqlite3_prepare16__
call fcn.180001faa
mov rcx, rax
mov rdx, r14
call fcn.180001faa
mov rcx, rax
lea rdx, str.___failed__error_
call fcn.180002621
mov edx, dword [rbx + 0x10]
mov rcx, rax
call fcn.1800010a0
mov rcx, rax
lea rdx, str.__message:__
call fcn.180002621
mov rcx, rax
mov rdx, rdi
call fcn.180001faa
mov rcx, rax
lea rdx, [0x180158e9c]
call fcn.180002621
lea rcx, [rbp - 9]
jmp 0x1800dc428
cmp dword [0x1802492d4], 0
je 0x1800dc42d
cmp dword [0x1802492d8], 4
jb 0x1800dc42d
mov edx, 4
lea rcx, [rbp + 7]
call fcn.1800047e1
mov rcx, rax
lea rdx, str.DeleakerSDK::SQLiteWrappers::CStmt::Prepare
call fcn.180002621
mov rcx, rax
lea rdx, str.:_sqlite3_prepare16__
call fcn.180001faa
mov rcx, rax
mov rdx, r14
call fcn.180001faa
mov rcx, rax
lea rdx, str.___returned_OK_r_n
call fcn.180002621
lea rcx, [rbp + 7]
call fcn.18000561e
cmp dword [rbx + 0x10], 0
jne 0x1800dc463
mov eax, dword [rbp - 0x29]
add r15, 0x18
mov rsi, qword [rbp + 0x67]
inc eax
mov dword [rbp - 0x29], eax
cmp eax, 1
jb 0x1800dc200
mov rcx, rsi
mov rax, qword [rcx]
call qword [rax + 0x20]
mov edi, eax
test eax, eax
jne 0x1800dc468
xor r15d, r15d
mov edi, r15d
jmp 0x1800dc46b
mov edi, 0x80004005
xor r15d, r15d
mov rcx, qword [rbp - 0x21]
mov r13, qword [rsp + 0xd0]
test rcx, rcx
je 0x1800dc481
call fcn.180003427
mov rcx, qword [rbp - 0x19]
mov r14, qword [rsp + 0xd8]
test rcx, rcx
je 0x1800dc4a3
call fcn.180003427
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], 0
mov r15, qword [rsp + 0x90]
test r12, r12
je 0x1800dc4b8
mov rcx, r12
call fcn.180003427
mov r12, qword [rsp + 0xc8]
mov eax, edi
add rsp, 0x98
pop rdi
pop rsi
pop rbx
pop rbp
ret