Function at 0x1400197d8
Capabilities:
Delete file

Disassembly:
mov byte [rsp + 0x10], dl
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x58
mov rax, qword gs:[0x58]
mov r14, rcx
mov ecx, 8
mov dil, dl
mov r8, qword [rax]
lea rax, str.TieringJetSession::OpenJetTable
mov qword [rcx + r8], rax
lea rcx, [rbp - 0x18]
call fcn.140008b4c
xor r15d, r15d
mov byte [rbp + 0x58], r15b
mov byte [rbp + 0x48], r15b
cmp byte [r14], r15b
jne 0x14001a4fe
mov rbx, qword [r14 + 0x28]
mov rbx, qword [rbx]
add rbx, 0x18
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockExclusive]
mov rcx, qword [r14 + 0x28]
cmp byte [rcx + 0x4d], r15b
je 0x1400198a4
mov edi, 0x800401ff
mov dword [rbp - 0x10], edi
mov rax, qword [0x140049138]
lea r13, [0x140049138]
cmp rax, r13
je 0x1400199b7
lea r12d, [r15 + 1]
test byte [rax + 0x1c], r12b
je 0x1400199b7
cmp byte [rax + 0x19], 2
jb 0x1400199b7
mov r9, qword [rcx + 0x70]
lea edx, [r15 + 0x50]
mov rcx, qword [rax + 0x10]
lea r8, [0x1400417e8]
mov dword [rsp + 0x20], edi
call fcn.1400040b8
jmp 0x1400199b7
test dil, dil
je 0x14001991c
cmp byte [rcx + 0x28], r15b
jne 0x140019922
test rbx, rbx
je 0x1400198c1
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
mov rcx, qword [r14 + 0x28]
mov rcx, qword [rcx + 0x68]
lea rsi, [r14 + 8]
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rcx]
call qword [sym.imp.ESENT.dll_JetBeginSessionW]
mov r8d, eax
test eax, eax
je 0x140019a51
cmp eax, 0xfffffdef
je 0x1400199ea
cmp eax, 0xfffffbbc
je 0x1400199ea
cmp eax, 0xfffff8f0
je 0x1400199ea
cmp eax, 0xfffffc0d
jne 0x1400199ce
mov edi, 0x8007000e
jmp 0x1400199f6
cmp byte [rcx + 8], r15b
je 0x1400198af
test dil, dil
je 0x140019944
mov byte [rcx + 0x28], r15b
mov rcx, qword [r14 + 0x28]
mov rax, qword [rcx + 0x30]
mov qword [r14 + 8], rax
mov eax, dword [rcx + 0x38]
mov dword [r14 + 0x10], eax
mov rax, qword [rcx + 0x40]
jmp 0x14001995f
mov byte [rcx + 8], r15b
mov rcx, qword [r14 + 0x28]
mov rax, qword [rcx + 0x10]
mov qword [r14 + 8], rax
mov eax, dword [rcx + 0x18]
mov dword [r14 + 0x10], eax
mov rax, qword [rcx + 0x20]
mov qword [r14 + 0x18], rax
lea r13, [0x140049138]
mov rcx, qword [0x140049138]
mov r12d, 1
cmp rcx, r13
je 0x1400199a5
test byte [rcx + 0x1c], r12b
je 0x1400199a5
cmp byte [rcx + 0x19], 4
jb 0x1400199a5
mov r9, qword [r14 + 0x28]
lea edx, [r12 + 0x50]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400417e8]
mov r9, qword [r9 + 0x70]
call fcn.140003e9c
mov byte [r14 + 0x21], dil
mov edi, r15d
mov byte [r14], r12b
mov byte [r14 + 0x20], r12b
mov dword [rbp - 0x10], r15d
test rbx, rbx
je 0x14001a4fb
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
jmp 0x14001a4fb
cdq
mov ecx, 0x8e5e0000
xor eax, edx
sub eax, edx
movzx edi, ax
test r8d, r8d
mov eax, 0xe5e0000
cmovs eax, ecx
or edi, eax
jmp 0x1400199f6
mov ecx, 0x70
call fcn.140003cb8
mov edi, eax
mov dword [rbp - 0x10], edi
mov rcx, qword [0x140049138]
lea r13, [0x140049138]
cmp rcx, r13
je 0x14001a4fb
mov r12d, 1
test byte [rcx + 0x1c], r12b
je 0x14001a4fb
cmp byte [rcx + 0x19], 2
jb 0x14001a4fb
mov r9, qword [r14 + 0x28]
lea edx, [r12 + 0x51]
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x20], r8d
lea r8, [0x1400417e8]
mov r9, qword [r9 + 0x70]
call fcn.1400040b8
jmp 0x14001a4fb
mov rbx, qword [r14 + 0x28]
mov r12d, 1
mov byte [rbp + 0x60], r12b
mov rbx, qword [rbx]
add rbx, 0x18
mov rcx, rbx
mov qword [rbp - 0x20], rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockExclusive]
mov rcx, qword [0x140049138]
lea r13, [0x140049138]
lea rdi, [0x1400417e8]
cmp rcx, r13
je 0x140019ab2
test byte [rcx + 0x1c], r12b
je 0x140019ab2
cmp byte [rcx + 0x19], 5
jb 0x140019ab2
mov r9, qword [r14 + 0x28]
lea edx, [r12 + 0x52]
mov rcx, qword [rcx + 0x10]
mov r8, rdi
mov r9, qword [r9 + 0x70]
call fcn.140003e9c
mov rax, qword [r14 + 0x28]
cmp dword [rax + 0x60], r12d
jne 0x140019d28
mov dword [rbp - 0x28], r15d
jmp 0x140019aca
lea rsi, [r14 + 8]
mov rdx, qword [r14 + 0x28]
mov r9d, 0x10
mov rcx, qword [rsi]
xor r8d, r8d
mov rdx, qword [rdx + 0x70]
call qword [sym.imp.ESENT.dll_JetAttachDatabase2W]
mov r10d, dword [rbp - 0x28]
mov esi, eax
cmp r10d, 2
jae 0x140019c01
test eax, eax
je 0x140019c43
cmp eax, 0xfffffdef
je 0x140019c01
cmp eax, 0xfffffbbc
je 0x140019c01
cmp eax, 0xfffff8f0
je 0x140019c01
cmp eax, 0x3ef
je 0x140019c01
cmp eax, 0xfffffc10
je 0x140019c01
cmp eax, 0xfffffe07
je 0x140019c01
cmp eax, 0xfffffb4e
je 0x140019c01
mov rcx, qword [0x140049138]
cmp rcx, r13
je 0x140019b8a
test byte [rcx + 0x1c], r12b
je 0x140019b8a
cmp byte [rcx + 0x19], 2
jb 0x140019b8a
mov rax, qword [r14 + 0x28]
mov edx, 0x54
mov rcx, qword [rcx + 0x10]
mov r9d, r10d
mov dword [rsp + 0x28], esi
mov r8, rdi
mov rax, qword [rax + 0x70]
mov qword [rsp + 0x20], rax
call fcn.14001687c
mov r10d, dword [rbp - 0x28]
mov rax, qword [r14 + 0x28]
add r10d, r12d
mov edx, r10d
mov dword [rbp - 0x28], r10d
mov rcx, qword [rax]
mov byte [rcx + 0xa3], r12b
mov rcx, qword [r14 + 0x28]
call fcn.140035ce8
mov ecx, eax
mov r10, qword [0x140049138]
cmp r10, r13
je 0x140019bf3
test byte [r10 + 0x1c], r12b
je 0x140019bf3
cmp byte [r10 + 0x19], 3
jb 0x140019bf3
mov rax, qword [r14 + 0x28]
mov edx, 0x55
mov r9d, dword [rbp - 0x28]
mov r8, rdi
mov rax, qword [rax + 0x70]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov rcx, qword [r10 + 0x10]
call fcn.1400167e0
mov r10, qword [0x140049138]
mov eax, dword [rbp - 0x28]
cmp eax, 2
jbe 0x140019ac6
jmp 0x140019c4d
test esi, esi
je 0x140019c43
cmp esi, 0x3ef
je 0x140019c43
mov r10, qword [0x140049138]
cmp r10, r13
je 0x140019c4a
test byte [r10 + 0x1c], r12b
je 0x140019c4a
cmp byte [r10 + 0x19], 2
jb 0x140019c4a
mov r9, qword [r14 + 0x28]
mov edx, 0x56
mov rcx, qword [r10 + 0x10]
mov r8, rdi
mov dword [rsp + 0x20], esi
mov r9, qword [r9 + 0x70]
call fcn.1400040b8
mov r10, qword [0x140049138]
mov eax, dword [rbp - 0x28]
cmp eax, 2
jne 0x140019cb3
cmp r10, r13
je 0x140019c82
test byte [r10 + 0x1c], r12b
je 0x140019c82
cmp byte [r10 + 0x19], al
jb 0x140019c82
mov rax, qword [r14 + 0x28]
mov edx, 0x57
mov rcx, qword [r10 + 0x10]
mov r8, rdi
mov r9, qword [rax]
mov r9, qword [r9 + 0x258]
call fcn.140003e9c
mov rax, qword [r14 + 0x28]
mov rcx, qword [rax]
mov rdx, qword [rcx + 0x258]
lea rax, [0x140041778]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call fcn.14003536c
mov esi, 0xfffff8ed
mov r10, qword [0x140049138]
mov al, r15b
cmp esi, 0xfffff8ed
je 0x140019e3a
cmp esi, 0xfffffb4d
je 0x140019e3a
test esi, esi
je 0x14001a072
cmp esi, 0xfffffdda
je 0x14001a072
cmp esi, 0x3ef
je 0x14001a072
cmp esi, 0xfffffdef
je 0x140019fa2
cmp esi, 0xfffffbbc
je 0x140019fa2
cmp esi, 0xfffff8f0
je 0x140019fa2
cmp esi, 0xfffffc0d
jne 0x140019f86
mov edi, 0x8007000e
jmp 0x140019fae
mov rdx, qword [rax + 0x70]
xor r8d, r8d
cmp dword [rax + 0x60], 3
mov r9d, 0x10
mov rcx, qword [rsi]
jne 0x140019d92
call qword [sym.imp.ESENT.dll_JetAttachDatabase2W]
mov esi, eax
test eax, eax
jns 0x140019cac
mov rcx, qword [0x140049138]
cmp rcx, r13
je 0x140019d7f
test byte [rcx + 0x1c], r12b
je 0x140019d7f
cmp byte [rcx + 0x19], 2
jb 0x140019d7f
mov r9, qword [r14 + 0x28]
mov edx, 0x58
mov rcx, qword [rcx + 0x10]
mov r8, rdi
mov r9, qword [r9 + 0x70]
call fcn.140003e9c
mov rcx, qword [r14 + 0x28]
mov rcx, qword [rcx + 0x70]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
jmp 0x140019ca7
call qword [sym.imp.ESENT.dll_JetAttachDatabase2W]
mov esi, eax
cmp eax, 0xfffffdda
jne 0x140019f31
mov rcx, qword [0x140049138]
cmp rcx, r13
je 0x140019dd6
test byte [rcx + 0x1c], r12b
je 0x140019dd6
cmp byte [rcx + 0x19], 4
jb 0x140019dd6
mov r9, qword [r14 + 0x28]
mov edx, 0x59
mov rcx, qword [rcx + 0x10]
mov r8, rdi
mov r9, qword [r9 + 0x70]
call fcn.140003e9c
mov rdx, qword [r14 + 0x28]
lea r9, [r14 + 0x10]
mov rcx, qword [r14 + 8]
xor r8d, r8d
mov dword [rsp + 0x20], r15d
mov rdx, qword [rdx + 0x70]
call qword [sym.imp.ESENT.dll_JetOpenDatabaseW]
mov esi, eax
cmp eax, 0xfffffb4d
jne 0x140019ee7
mov r10, qword [0x140049138]
cmp r10, r13
je 0x140019e65
test byte [r10 + 0x1c], r12b
je 0x140019e3a
cmp byte [r10 + 0x19], 4
jb 0x140019e3a
mov r9, qword [r14 + 0x28]
mov edx, 0x5a
mov rcx, qword [r10 + 0x10]
mov r8, rdi
mov r9, qword [r9 + 0x70]
call fcn.140003e9c
mov r10, qword [0x140049138]
cmp r10, r13
je 0x140019e65
test byte [r10 + 0x1c], r12b
je 0x140019e65
cmp byte [r10 + 0x19], 5
jb 0x140019e65
mov r9, qword [r14 + 0x28]
mov edx, 0x5d
mov rcx, qword [r10 + 0x10]
mov r8, rdi
mov r9, qword [r9 + 0x70]
call fcn.140003e9c
mov rdx, qword [r14 + 0x28]
lea r9, [r14 + 0x10]
mov rcx, qword [r14 + 8]
xor r8d, r8d
mov eax, dword [rdx + 0x60]
mov rdx, qword [rdx + 0x70]
sub eax, r12d
test eax, 0xfffffffd
je 0x14001a0d8
mov dword [rsp + 0x20], 0x200
call qword [sym.imp.ESENT.dll_JetCreateDatabase2W]
mov esi, eax
test eax, eax
jne 0x14001a0f0
mov r9, qword [r14 + 0x28]
cmp dword [r9 + 0x60], 2
jne 0x14001a03b
test byte [0x140049c80], 2
je 0x14001a002
mov r9, qword [r9]
lea rdx, [0x1400409f0]
movzx r8d, word [r9 + 0x2b8]
mov r9, qword [r9 + 0x2c0]
shr r8w, 1
call fcn.14000a084
mov r9d, eax
jmp 0x14001a005
test eax, eax
jne 0x140019cac
mov r10, qword [0x140049138]
cmp r10, r13
je 0x140019f26
test byte [r10 + 0x1c], r12b
je 0x140019f26
cmp byte [r10 + 0x19], 4
jb 0x140019f26
mov r9, qword [r14 + 0x28]
lea edx, [rax + 0x5b]
mov rcx, qword [r10 + 0x10]
mov r8, rdi
mov r9, qword [r9 + 0x70]
call fcn.140003e9c
mov r10, qword [0x140049138]
mov al, r12b
mov byte [rbp + 0x48], al
jmp 0x140019cb6
cmp eax, 0xfffffb4a
jne 0x140019cac
mov rcx, qword [0x140049138]
cmp rcx, r13
je 0x140019f73
test byte [rcx + 0x1c], r12b
je 0x140019f73
cmp byte [rcx + 0x19], 2
jb 0x140019f73
mov rax, qword [r14 + 0x28]
mov edx, 0x5c
mov rcx, qword [rcx + 0x10]
mov r8, rdi
mov r9, qword [rax]
mov r9, qword [r9 + 0x270]
call fcn.140003e9c
mov rax, qword [r14 + 0x28]
mov rcx, qword [rax]
mov rdx, qword [rcx + 0x270]
jmp 0x140019c90
mov eax, esi
cdq
xor eax, edx
sub eax, edx
movzx edi, ax
mov eax, esi
and eax, 0x8e5e0000
or edi, eax
mov eax, 0xe5e0000
or edi, eax
jmp 0x140019fae
mov ecx, 0x70
call fcn.140003cb8
mov edi, eax
mov dword [rbp - 0x10], edi
cmp r10, r13
je 0x140019feb
test byte [r10 + 0x1c], r12b
je 0x140019feb
cmp byte [r10 + 0x19], 2
jb 0x140019feb
mov edx, 0x61
mov r9, qword [r14 + 0x28]
lea r8, [0x1400417e8]
mov rcx, qword [r10 + 0x10]
mov dword [rsp + 0x20], esi
mov r9, qword [r9 + 0x70]
call fcn.1400040b8
mov r10, qword [0x140049138]
test rbx, rbx
je 0x14001a46d
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
jmp 0x14001a466
mov r9d, r15d
mov rcx, qword [0x140049138]
cmp rcx, r13
je 0x14001a06c
test byte [rcx + 0x1c], r12b
je 0x14001a042
cmp byte [rcx + 0x19], 4
jb 0x14001a042
mov rax, qword [r14 + 0x28]
mov edx, 0x5e
mov rcx, qword [rcx + 0x10]
mov r8, rdi
mov rax, qword [rax + 0x70]
mov qword [rsp + 0x20], rax
call fcn.140003d90
mov rcx, qword [0x140049138]
cmp rcx, r13
je 0x14001a06c
test byte [rcx + 0x1c], r12b
je 0x14001a06c
cmp byte [rcx + 0x19], 4
jb 0x14001a06c
mov r9, qword [r14 + 0x28]
mov edx, 0x60
mov rcx, qword [rcx + 0x10]
mov r8, rdi
mov r9, qword [r9 + 0x70]
call fcn.140003e9c
mov al, r12b
mov byte [rbp + 0x48], al
test al, al
jne 0x14001a22f
mov rdx, qword [r14 + 0x28]
lea r9, [r14 + 0x10]
mov rcx, qword [r14 + 8]
xor r8d, r8d
mov dword [rsp + 0x20], r15d
mov rdx, qword [rdx + 0x70]
call qword [sym.imp.ESENT.dll_JetOpenDatabaseW]
mov esi, eax
test eax, eax
je 0x14001a1fa
cmp eax, 0xfffffdef
je 0x14001a18c
cmp eax, 0xfffffbbc
je 0x14001a18c
cmp eax, 0xfffff8f0
je 0x14001a18c
cmp eax, 0xfffffc0d
jne 0x14001a171
mov edi, 0x8007000e
jmp 0x14001a198
mov dword [rsp + 0x20], 0x208
call qword [sym.imp.ESENT.dll_JetCreateDatabase2W]
mov esi, eax
test eax, eax
je 0x14001a03b
cmp esi, 0xfffffdef
je 0x14001a133
cmp esi, 0xfffffbbc
je 0x14001a133
cmp esi, 0xfffff8f0
je 0x14001a133
cmp esi, 0xfffffc0d
jne 0x14001a117
mov edi, 0x8007000e
jmp 0x14001a13f
mov eax, esi
cdq
xor eax, edx
sub eax, edx
movzx edi, ax
mov eax, esi
and eax, 0x8e5e0000
or edi, eax
mov eax, 0xe5e0000
or edi, eax
jmp 0x14001a13f
mov ecx, 0x70
call fcn.140003cb8
mov edi, eax
mov dword [rbp - 0x10], edi
mov r10, qword [0x140049138]
cmp r10, r13
je 0x140019feb
test byte [r10 + 0x1c], r12b
je 0x140019feb
cmp byte [r10 + 0x19], 2
jb 0x140019feb
mov edx, 0x5f
jmp 0x140019fc8
cdq
mov ecx, 0x8e5e0000
xor eax, edx
sub eax, edx
movzx edi, ax
test esi, esi
mov eax, 0xe5e0000
cmovs eax, ecx
or edi, eax
jmp 0x14001a198
mov ecx, 0x70
call fcn.140003cb8
mov edi, eax
mov dword [rbp - 0x10], edi
mov r10, qword [0x140049138]
cmp r10, r13
je 0x14001a1dc
test byte [r10 + 0x1c], r12b
je 0x14001a1dc
cmp byte [r10 + 0x19], 2
jb 0x14001a1dc
mov r9, qword [r14 + 0x28]
lea r8, [0x1400417e8]
mov rcx, qword [r10 + 0x10]
mov edx, 0x62
mov dword [rsp + 0x20], esi
mov r9, qword [r9 + 0x70]
call fcn.1400040b8
mov r10, qword [0x140049138]
test rbx, rbx
je 0x14001a4c0
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
mov r10, qword [0x140049138]
jmp 0x14001a4c0
mov rcx, qword [0x140049138]
cmp rcx, r13
je 0x14001a22b
test byte [rcx + 0x1c], r12b
je 0x14001a22b
cmp byte [rcx + 0x19], 4
jb 0x14001a22b
mov r9, qword [r14 + 0x28]
mov edx, 0x63
mov rcx, qword [rcx + 0x10]
mov r8, rdi
mov r9, qword [r9 + 0x70]
call fcn.140003e9c
mov byte [rbp + 0x48], r12b
mov bl, byte [rbp + 0x50]
lea rdi, [r14 + 0x18]
mov rax, qword [r14 + 8]
lea rdx, [rbp + 0x58]
mov r9d, dword [r14 + 0x10]
mov r8b, bl
mov qword [rsp + 0x28], rdi
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.14001a524
mov r8, qword [r14 + 0x28]
cmp byte [r8 + 0x94], r15b
jne 0x14001a236
mov rbx, qword [rbp - 0x20]
test esi, esi
je 0x14001a316
cmp esi, 0xfffffdef
je 0x14001a2b3
cmp esi, 0xfffffbbc
je 0x14001a2b3
cmp esi, 0xfffff8f0
je 0x14001a2b3
cmp esi, 0xfffffc0d
jne 0x14001a297
mov edi, 0x8007000e
jmp 0x14001a2bf
mov eax, esi
cdq
xor eax, edx
sub eax, edx
movzx edi, ax
mov eax, esi
and eax, 0x8e5e0000
or edi, eax
mov eax, 0xe5e0000
or edi, eax
jmp 0x14001a2bf
mov ecx, 0x70
call fcn.140003cb8
mov edi, eax
mov dword [rbp - 0x10], edi
mov r10, qword [0x140049138]
cmp r10, r13
je 0x14001a2ff
test byte [r10 + 0x1c], r12b
je 0x14001a2ff
cmp byte [r10 + 0x19], 2
jb 0x14001a2ff
mov r9, qword [r8 + 0x70]
mov edx, 0x64
mov rcx, qword [r10 + 0x10]
lea r8, [0x1400417e8]
mov dword [rsp + 0x20], esi
call fcn.1400040b8
mov r10, qword [0x140049138]
test rbx, rbx
je 0x14001a423
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
jmp 0x14001a41c
test rbx, rbx
je 0x14001a328
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
mov r8, qword [r14 + 0x28]
mov eax, dword [r8 + 0x60]
mov rdx, qword [rdi]
sub eax, 2
mov rcx, qword [r14 + 8]
cmp eax, r12d
jbe 0x14001a356
mov bl, byte [rbp + 0x50]
test bl, bl
je 0x14001a34d
xor r8d, r8d
call qword [sym.imp.ESENT.dll_JetSetCurrentIndexW]
jmp 0x14001a366
lea r8, str.ByFileIdOffset
jmp 0x14001a345
lea r8, str.ByFileId
call qword [sym.imp.ESENT.dll_JetSetCurrentIndexW]
mov bl, byte [rbp + 0x50]
mov r8d, eax
test eax, eax
je 0x14001a3fe
cmp eax, 0xfffffdef
je 0x14001a3b2
cmp eax, 0xfffffbbc
je 0x14001a3b2
cmp eax, 0xfffff8f0
je 0x14001a3b2
cmp eax, 0xfffffc0d
jne 0x14001a394
mov edi, 0x8007000e
jmp 0x14001a3be
mov eax, r8d
cdq
xor eax, edx
sub eax, edx
movzx edi, ax
mov eax, r8d
and eax, 0x8e5e0000
or edi, eax
mov eax, 0xe5e0000
or edi, eax
jmp 0x14001a3be
mov ecx, 0x70
call fcn.140003cb8
mov edi, eax
mov dword [rbp - 0x10], edi
mov r10, qword [0x140049138]
cmp r10, r13
je 0x14001a423
test byte [r10 + 0x1c], r12b
je 0x14001a423
cmp byte [r10 + 0x19], 2
jb 0x14001a423
mov r9, qword [r14 + 0x28]
mov edx, 0x65
mov rcx, qword [r10 + 0x10]
mov dword [rsp + 0x20], r8d
lea r8, [0x1400417e8]
mov r9, qword [r9 + 0x70]
call fcn.1400040b8
jmp 0x14001a41c
mov edi, r15d
mov dword [rbp - 0x10], r15d
mov byte [r14], r12b
mov byte [r14 + 0x20], r15b
mov byte [r14 + 0x21], bl
mov byte [rbp + 0x60], r15b
mov byte [rbp + 0x48], r15b
mov byte [rbp + 0x58], r15b
mov r10, qword [0x140049138]
cmp byte [rbp + 0x58], r15b
je 0x14001a46d
cmp r10, r13
je 0x14001a458
test byte [r10 + 0x1c], r12b
je 0x14001a458
cmp byte [r10 + 0x19], 4
jb 0x14001a458
mov r9, qword [r14 + 0x28]
lea r8, [0x1400417e8]
mov rcx, qword [r10 + 0x10]
mov edx, 0x66
mov r9, qword [r9 + 0x70]
call fcn.140003e9c
mov rdx, qword [r14 + 0x18]
mov rcx, qword [r14 + 8]
call qword [sym.imp.ESENT.dll_JetCloseTable]
mov r10, qword [0x140049138]
cmp byte [rbp + 0x48], r15b
je 0x14001a4ba
cmp r10, r13
je 0x14001a4a2
test byte [r10 + 0x1c], r12b
je 0x14001a4a2
cmp byte [r10 + 0x19], 4
jb 0x14001a4a2
mov r9, qword [r14 + 0x28]
lea r8, [0x1400417e8]
mov rcx, qword [r10 + 0x10]
mov edx, 0x67
mov r9, qword [r9 + 0x70]
call fcn.140003e9c
mov edx, dword [r14 + 0x10]
xor r8d, r8d
mov rcx, qword [r14 + 8]
call qword [sym.imp.ESENT.dll_JetCloseDatabase]
mov r10, qword [0x140049138]
cmp byte [rbp + 0x60], r15b
je 0x14001a4fb
cmp r10, r13
je 0x14001a4ef
test byte [r10 + 0x1c], r12b
je 0x14001a4ef
cmp byte [r10 + 0x19], 4
jb 0x14001a4ef
mov r9, qword [r14 + 0x28]
lea r8, [0x1400417e8]
mov rcx, qword [r10 + 0x10]
mov edx, 0x68
mov r9, qword [r9 + 0x70]
call fcn.140003e9c
mov rcx, qword [r14 + 8]
xor edx, edx
call qword [sym.imp.ESENT.dll_JetEndSession]
mov r15d, edi
lea rcx, [rbp - 0x18]
call fcn.1400089a4
mov eax, r15d
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret