Function at 0x140049a50
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x240], rbx
mov rax, qword [0x140225e48]
xor rax, rsp
mov qword [rbp + 0xe8], rax
mov r13, r8
mov r15, rdx
mov r14, rcx
xor edi, edi
mov dword [rsp + 0x30], edi
lea r8, [rsp + 0x30]
lea edx, [rdi + 1]
call fcn.140049440
mov ebx, eax
lea edx, [rax - 0x64]
cmp edx, 1
jbe 0x140049be3
test eax, eax
je 0x140049be3
mov edx, 0xd2
lea rcx, [rsp + 0x68]
call fcn.14004af40
nop
mov r8, rax
lea rdx, str.Recovery_called_by_Database__
lea rcx, [rbp + 0x28]
call fcn.14003eff0
nop
mov r8, qword [rbp - 0x80]
cmp r8, 8
jb 0x140049aff
inc r8
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x68]
call fcn.14000c3a0
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], di
mov edx, ebx
lea rcx, [rbp + 0x88]
call fcn.14004af40
nop
mov r8, rax
lea rdx, str._._Error_code_
lea rcx, [rbp - 0x78]
call fcn.14003eff0
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0x28]
call fcn.14000ca10
nop
mov r8, qword [rbp - 0x60]
cmp r8, 8
jb 0x140049b62
inc r8
mov rdx, qword [rbp - 0x78]
lea rcx, [rbp - 0x78]
call fcn.14000c3a0
mov qword [rbp - 0x68], rdi
mov qword [rbp - 0x60], 7
mov word [rbp - 0x78], di
mov r8, qword [rbp + 0xa0]
cmp r8, 8
jb 0x140049b95
inc r8
mov rdx, qword [rbp + 0x88]
lea rcx, [rbp + 0x88]
call fcn.14000c3a0
mov rcx, qword [0x14022c0d0]
test rcx, rcx
jne 0x140049bbf
lea r8d, [rcx + 0x3e]
lea rdx, str.d:qba1workspace2210_sse_storage_ngsaimplementation_source_serviceOptaneService.h
lea rcx, str.mInstance
call fcn.14011eac4
mov rcx, qword [0x14022c0d0]
lea rdx, [rbp + 0x28]
call fcn.140053390
nop
mov r8, qword [rbp + 0x40]
cmp r8, 8
jb 0x140049be3
inc r8
mov rdx, qword [rbp + 0x28]
lea rcx, [rbp + 0x28]
call fcn.14000c3a0
mov r9d, dword [rsp + 0x30]
mov eax, r9d
cdq
idiv dword [r14 + 0x68]
lea r12d, [rax + 1]
lea rax, [0x140226b10]
mov rcx, qword [0x140226b10]
cmp rcx, rax
je 0x140049c2d
test byte [rcx + 0x1c], 0x80
je 0x140049c2d
cmp byte [rcx + 0x19], 5
jb 0x140049c2d
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov dword [rsp + 0x20], r12d
lea r8, [0x1401b82a0]
mov rcx, qword [rcx + 0x10]
call fcn.14001f280
mov esi, edi
test r12d, r12d
jle 0x14004a08e
lea rax, str.UPDATE_FILES_SET_DIRTY_metric_phase_clean_WHERE_FILE_ID_IN__SELECT_FILE_ID_FROM_FILES_WHERE_DIRTY_metric_phase_dirty_ORDER_BY_FILE_ID_ASC_LIMIT__max_limit_
nop
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov edi, dword [r14 + 0x68]
lea rcx, [rsp + 0x38]
call fcn.14000cde0
mov ebx, eax
test eax, eax
jne 0x140049c7d
xor r8d, r8d
lea edx, [rax + 1]
mov rcx, qword [rsp + 0x50]
call fcn.140064bf0
mov ebx, eax
mov r8d, 1
mov edx, ebx
lea rcx, [rsp + 0x38]
call fcn.14000ce60
test ebx, ebx
jne 0x140049d50
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x140049cbb
add eax, 0xfffffffe
cmp eax, 2
ja 0x140049ccb
mov rcx, qword [rsp + 0x50]
call fcn.140056910
mov dword [rsp + 0x38], 1
jmp 0x140049ccb
lea rcx, [rsp + 0x38]
call fcn.14000cde0
mov ebx, eax
test eax, eax
jne 0x140049ce0
mov edx, 2
lea r8d, [rdx - 1]
mov rcx, qword [rsp + 0x50]
call fcn.140064bf0
mov ebx, eax
mov r8d, 2
mov edx, ebx
lea rcx, [rsp + 0x38]
call fcn.14000ce60
test ebx, ebx
jne 0x140049d50
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x140049d1a
add eax, 0xfffffffe
cmp eax, 2
ja 0x140049d2a
mov rcx, qword [rsp + 0x50]
call fcn.140056910
mov dword [rsp + 0x38], 1
jmp 0x140049d2a
lea rcx, [rsp + 0x38]
call fcn.14000cde0
mov ebx, eax
test eax, eax
jne 0x140049d3e
mov r8d, edi
mov edx, 3
mov rcx, qword [rsp + 0x50]
call fcn.140064bf0
mov ebx, eax
mov r8d, 3
mov edx, ebx
lea rcx, [rsp + 0x38]
call fcn.14000ce60
cmp ebx, 0x65
je 0x140049e8d
test ebx, ebx
je 0x140049e8d
cmp ebx, 0x64
je 0x140049e8d
mov edx, 0xdf
lea rcx, [rbp - 0x58]
call fcn.14004af40
nop
mov r8, rax
lea rdx, str.Recovery_called_by_Database__
lea rcx, [rbp + 0x48]
call fcn.14003eff0
nop
mov r8, qword [rbp - 0x40]
cmp r8, 8
jb 0x140049da7
inc r8
mov rdx, qword [rbp - 0x58]
lea rcx, [rbp - 0x58]
call fcn.14000c3a0
xor edi, edi
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], di
mov edx, ebx
lea rcx, [rbp + 0xa8]
call fcn.14004af40
nop
mov r8, rax
lea rdx, str._._Error_code_
lea rcx, [rbp - 0x38]
call fcn.14003eff0
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0x48]
call fcn.14000ca10
nop
mov r8, qword [rbp - 0x20]
cmp r8, 8
jb 0x140049e0a
inc r8
mov rdx, qword [rbp - 0x38]
lea rcx, [rbp - 0x38]
call fcn.14000c3a0
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], di
mov r8, qword [rbp + 0xc0]
cmp r8, 8
jb 0x140049e3d
inc r8
mov rdx, qword [rbp + 0xa8]
lea rcx, [rbp + 0xa8]
call fcn.14000c3a0
mov rcx, qword [0x14022c0d0]
test rcx, rcx
jne 0x140049e67
lea r8d, [rcx + 0x3e]
lea rdx, str.d:qba1workspace2210_sse_storage_ngsaimplementation_source_serviceOptaneService.h
lea rcx, str.mInstance
call fcn.14011eac4
mov rcx, qword [0x14022c0d0]
lea rdx, [rbp + 0x48]
call fcn.140053390
nop
mov r8, qword [rbp + 0x60]
cmp r8, 8
jb 0x140049e8f
inc r8
mov rdx, qword [rbp + 0x48]
lea rcx, [rbp + 0x48]
call fcn.14000c3a0
jmp 0x140049e8f
xor edi, edi
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x140049eb3
add eax, 0xfffffffd
cmp eax, 1
ja 0x140049ec3
mov rcx, qword [rsp + 0x50]
call fcn.140056910
mov dword [rsp + 0x38], 1
jmp 0x140049ec3
lea rcx, [rsp + 0x38]
call fcn.14000cde0
mov ebx, eax
test eax, eax
jne 0x140049f03
mov rcx, qword [rsp + 0x50]
call fcn.140055990
mov ebx, eax
mov ecx, eax
sub ecx, 0x64
je 0x140049efb
cmp ecx, 1
je 0x140049ef1
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.14000ce70
mov dword [rsp + 0x38], 3
jmp 0x140049f03
mov dword [rsp + 0x38], 4
jmp 0x140049f03
mov dword [rsp + 0x38], 2
cmp ebx, 0x65
je 0x14004a03f
test ebx, ebx
je 0x14004a03f
cmp ebx, 0x64
je 0x14004a03f
mov edx, 0xe1
lea rcx, [rbp - 0x18]
call fcn.14004af40
nop
mov r8, rax
lea rdx, str.Recovery_called_by_Database__
lea rcx, [rbp + 0x68]
call fcn.14003eff0
nop
mov r8, qword [rbp]
cmp r8, 8
jb 0x140049f5a
inc r8
mov rdx, qword [rbp - 0x18]
lea rcx, [rbp - 0x18]
call fcn.14000c3a0
mov qword [rbp - 8], rdi
mov qword [rbp], 7
mov word [rbp - 0x18], di
mov edx, ebx
lea rcx, [rbp + 0xc8]
call fcn.14004af40
nop
mov r8, rax
lea rdx, str._._Error_code_
lea rcx, [rbp + 8]
call fcn.14003eff0
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0x68]
call fcn.14000ca10
nop
mov r8, qword [rbp + 0x20]
cmp r8, 8
jb 0x140049fbb
inc r8
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 8]
call fcn.14000c3a0
mov qword [rbp + 0x18], rdi
mov qword [rbp + 0x20], 7
mov word [rbp + 8], di
mov r8, qword [rbp + 0xe0]
cmp r8, 8
jb 0x140049fee
inc r8
mov rdx, qword [rbp + 0xc8]
lea rcx, [rbp + 0xc8]
call fcn.14000c3a0
mov rcx, qword [0x14022c0d0]
test rcx, rcx
jne 0x14004a018
lea r8d, [rcx + 0x3e]
lea rdx, str.d:qba1workspace2210_sse_storage_ngsaimplementation_source_serviceOptaneService.h
lea rcx, str.mInstance
call fcn.14011eac4
mov rcx, qword [0x14022c0d0]
lea rdx, [rbp + 0x68]
call fcn.140053390
nop
mov r8, qword [rbp + 0x80]
cmp r8, 8
jb 0x14004a03f
inc r8
mov rdx, qword [rbp + 0x68]
lea rcx, [rbp + 0x68]
call fcn.14000c3a0
movzx eax, byte [r13]
test al, al
jne 0x14004a07d
movsxd rcx, dword [r14 + 0x68]
mov rax, qword [r15]
cmp rax, rcx
jb 0x14004a05c
sub rax, rcx
mov qword [r15], rax
jmp 0x14004a05f
mov qword [r15], rdi
mov rcx, qword [rsp + 0x50]
call fcn.140056340
inc esi
cmp esi, r12d
lea rax, str.UPDATE_FILES_SET_DIRTY_metric_phase_clean_WHERE_FILE_ID_IN__SELECT_FILE_ID_FROM_FILES_WHERE_DIRTY_metric_phase_dirty_ORDER_BY_FILE_ID_ASC_LIMIT__max_limit_
jl 0x140049c40
jmp 0x14004a08e
mov rcx, qword [rsp + 0x50]
call fcn.140056340
mov eax, 0x3e3
jmp 0x14004a090
mov eax, ebx
mov rcx, qword [rbp + 0xe8]
xor rcx, rsp
call fcn.1400eb3e0
mov rbx, qword [rsp + 0x240]
add rsp, 0x1f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret