Function at 0x140031a90
Capabilities:
Delete file

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x2a8]
sub rsp, 0x390
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1403ddfb8]
xor rax, rsp
mov qword [rbp + 0x288], rax
mov rdi, rcx
mov eax, dword [0x1403f2658]
mov dword [rsp + 0x20], eax
mov r9, qword [str._no_host]
mov r8, qword [0x1403f2b80]
mov rdx, qword [str._no_group]
mov rcx, qword [0x1403f2660]
call fcn.140033d60
lea r15, str.PEFServiceModule.cpp
test rax, rax
je 0x140031b43
mov rcx, qword [rax]
test rcx, rcx
je 0x140031b43
mov rax, qword [rcx]
mov edx, 1
call qword [rax + 0x50]
test eax, eax
je 0x140031b43
lea rax, str.SERVICEMODULE:_Database_initialization
mov qword [rsp + 0x20], rax
mov r9d, pe_nt_image_headers64
lea r8, str.CPEFServiceModule::databaseInit
mov rdx, r15
mov ecx, 1
call fcn.140029450
mov ecx, 0x20
call fcn.14026d8c0
mov rbx, rax
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
lea rax, vtable.CPEFRegConfig.0
mov qword [rbx], rax
lea rcx, [rbx + 8]
call fcn.1400536b0
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140032220
lea rax, vtable.CPEFSettings.0
mov qword [rbp + 0x260], rax
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x268], xmm0
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x140031bb9
lock inc dword [rbx + 8]
mov rbx, qword [rsp + 0x48]
mov r8, rbx
mov rdx, qword [rsp + 0x40]
lea rcx, [rbp + 0x268]
call fcn.14002f180
nop
or esi, 0xffffffff
test rbx, rbx
je 0x140031c07
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140031c07
mov rbx, qword [rsp + 0x48]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140031c07
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov qword [rbp + 0x258], 7
xor r14d, r14d
mov qword [rbp + 0x250], r14
mov word [rbp + 0x240], r14w
lea rdx, [rbp + 0x240]
lea rcx, [rbp + 0x260]
call fcn.140051420
cmp qword [rbp + 0x250], r14
jne 0x140031cb1
lea rdx, str.Database_path_cant_be_empty_._Major_issue
lea rcx, [rsp + 0x58]
call fcn.140027a80
mov rbx, rax
mov qword [rsp + 0x20], r15
lea r9, str.CPEFServiceModule::databaseInit
lea edx, [r14 + 4]
mov r8d, 0x14e
lea rcx, [rbp - 0x60]
call fcn.14002c550
nop
mov rdx, rbx
mov rcx, rax
call fcn.14002cda0
nop
lea rcx, [rbp - 0x60]
call fcn.1400298d0
nop
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x140031ca7
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.14002e610
mov edi, 0x54f
jmp 0x140031e20
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x278], xmm0
lea rdx, [rbp + 0x278]
lea rcx, [rbp + 0x260]
call fcn.140051530
test eax, eax
je 0x140031d29
mov ecx, 1
call fcn.1400294e0
test eax, eax
je 0x140031d07
lea rax, str.Database_key_is_missing_deleting_old_db_file_and_recreating_the_key___file.
mov qword [rsp + 0x20], rax
mov r9d, 0x155
lea r8, str.CPEFServiceModule::databaseInit
mov rdx, r15
mov ecx, 1
call fcn.140029450
lea rcx, [rbp + 0x240]
cmp qword [rbp + 0x258], 8
cmovae rcx, qword [rbp + 0x240]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.140052f50
lea rcx, [rbp + 0x240]
cmp qword [rbp + 0x258], 8
cmovae rcx, qword [rbp + 0x240]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 0x120], rax
test rax, rax
jne 0x140031de7
lea rdx, str.FAILED_to_load_database_read_only_handle_._Major_issue
lea rcx, [rsp + 0x78]
call fcn.140027a80
mov rbx, rax
mov qword [rsp + 0x20], r15
lea r9, str.CPEFServiceModule::databaseInit
mov edx, 4
mov r8d, 0x15c
lea rcx, [rbp + 0xf0]
call fcn.14002c550
nop
mov rdx, rbx
mov rcx, rax
call fcn.14002cda0
nop
lea rcx, [rbp + 0xf0]
call fcn.1400298d0
nop
mov r8, qword [rbp - 0x70]
cmp r8, 8
jb 0x140031de0
inc r8
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x78]
call fcn.14002e610
mov edi, 0x54f
jmp 0x140031dea
mov edi, r14d
mov rbx, qword [rbp + 0x280]
test rbx, rbx
je 0x140031e20
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140031e20
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140031e20
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov r8, qword [rbp + 0x258]
cmp r8, 8
jb 0x140031e43
inc r8
mov rdx, qword [rbp + 0x240]
lea rcx, [rbp + 0x240]
call fcn.14002e610
mov qword [rbp + 0x258], 7
mov qword [rbp + 0x250], r14
mov word [rbp + 0x240], r14w
mov rcx, qword [rbp + 0x270]
test rcx, rcx
je 0x140031e9c
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140031e9c
mov rbx, qword [rbp + 0x270]
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x140031e9c
mov rcx, qword [rbp + 0x270]
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
nop
mov eax, edi
mov rcx, qword [rbp + 0x288]
xor rcx, rsp
call fcn.14026d870
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret