Function at 0x140030170
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x310]
sub rsp, 0x410
mov rax, qword [0x1403ceac0]
xor rax, rsp
mov qword [rbp + 0x308], rax
mov r13, rcx
mov r12d, 1
mov ecx, r12d
call fcn.1400de610
lea rcx, str.CPEFServiceModule::databaseInit
lea rdx, str.E:BT3304243d_d858_4efc_85b8_b3526d9f21d2PEFAppSrcPEFServicePEFServiceModule.cpp
test eax, eax
je 0x1400301e8
lea rax, str.SERVICEMODULE:_Database_initialization
mov qword [rsp + 0x20], rax
mov r9d, GetAltMonthNames
mov r8, rcx
mov ecx, r12d
call fcn.140028a20
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x2f0], xmm0
mov qword [rbp + 0x300], rax
lea ecx, [rax + 0x20]
call fcn.140296fc8
mov r15, rax
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
lea rax, vtable.CPEFRegConfig.0
mov qword [r15], rax
lea rcx, [r15 + 8]
call fcn.140049b40
nop
mov qword [rsp + 0x40], r15
mov ecx, 0x18
call fcn.140296fc8
mov rdi, rax
mov qword [rbp - 0x38], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], r12d
mov dword [rax + 0xc], r12d
lea rax, vtable.std::_Ref_count_class_CPEFRegConfig_.0
mov qword [rdi], rax
mov qword [rdi + 0x10], r15
lea rax, vtable.CPEFSettings.0
mov qword [rbp + 0x2f0], rax
lock inc dword [rdi + 8]
mov qword [rbp + 0x2f8], r15
mov qword [rbp + 0x300], rdi
mov r14d, 0xffffffff
mov eax, r14d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1400302ad
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, r14d
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x1400302ad
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
xor esi, esi
mov qword [rbp + 0x2d0], rsi
mov qword [rbp + 0x2d8], 7
mov word [rbp + 0x2c0], si
mov rax, qword [r15]
mov rbx, qword [rax + 0x20]
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], si
xor r8d, r8d
lea rdx, [case.0x1400bf494.25]
lea rcx, [rsp + 0x68]
call fcn.14002b640
nop
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], si
lea r8d, [rsi + 6]
lea rdx, str.DBPath
lea rcx, [rsp + 0x48]
call fcn.14002b640
nop
lea r9, [rsp + 0x68]
lea r8, [rbp + 0x2c0]
lea rdx, [rsp + 0x48]
mov rcx, r15
call rbx
nop
lea rcx, [rsp + 0x48]
call fcn.14002ce60
nop
lea rcx, [rsp + 0x68]
call fcn.14002ce60
mov r8, r12
lea rdx, [0x1403484fc]
lea rcx, [rbp + 0x2c0]
call fcn.140030de0
lea r8d, [rsi + 0xb]
lea rdx, str.pefdata.dat
lea rcx, [rbp + 0x2c0]
call fcn.140030de0
cmp qword [rbp + 0x2d0], rsi
jne 0x1400304b5
mov qword [rbp + 0x38], rsi
mov qword [rbp + 0x40], 7
mov word [rbp + 0x28], si
mov qword [rbp + 0x58], rsi
mov qword [rbp + 0x60], 7
mov word [rbp + 0x48], si
mov edx, r12d
lea rcx, [rbp + 0x70]
call fcn.140029460
nop
nop dword [rax]
nop word [rax + rax]
xor eax, eax
lock cmpxchg dword [0x1403e3090], r12d
test eax, eax
je 0x1400303de
cmp eax, 1
jne 0x1400303fd
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400303c0
call fcn.14002b3e0
mov qword [0x1403e3098], rax
neg rax
sbb ecx, ecx
and ecx, 2
mov eax, r12d
lock cmpxchg dword [0x1403e3090], ecx
mov rcx, qword [0x1403e3098]
mov qword [rbp + 0x168], rcx
add rcx, 0x28
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbp + 0x168]
mov dword [rax + 8], 4
mov rax, qword [rbp + 0x168]
mov dword [rax + 0x10], 0x14e
lea rbx, str.CPEFServiceModule::databaseInit
mov qword [rax + 0x18], rbx
lea r15, str.E:BT3304243d_d858_4efc_85b8_b3526d9f21d2PEFAppSrcPEFServicePEFServiceModule.cpp
mov qword [rax + 0x20], r15
mov dword [rbp + 0x20], 0x14e
mov r8d, 0x56
mov rdx, r15
lea rcx, [rbp + 0x28]
call fcn.14002b640
mov dword [rbp + 0x68], 4
mov r8d, 0x1f
mov rdx, rbx
lea rcx, [rbp + 0x48]
call fcn.14002b640
nop
lea rdx, str.Database_path_cant_be_empty_._Major_issue
lea rcx, [rbp - 0x20]
call fcn.1400270c0
nop
mov rdx, rax
lea rcx, [rbp + 0x20]
call fcn.14002be60
nop
lea rcx, [rbp - 0x20]
call fcn.14002ce60
nop
lea rcx, [rbp + 0x20]
call fcn.140028cd0
mov esi, 0x54f
jmp 0x14003076c
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x2e0], xmm1
mov rax, qword [r15]
mov rbx, qword [rax + 0x18]
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], si
xor r8d, r8d
lea rdx, [case.0x1400bf494.25]
lea rcx, [rbp - 0x58]
call fcn.14002b640
nop
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x60], 7
mov word [rbp - 0x78], si
mov r8d, 9
lea rdx, str.DataStore
lea rcx, [rbp - 0x78]
call fcn.14002b640
nop
lea r9, [rbp - 0x58]
lea r8, [rbp + 0x2e0]
lea rdx, [rbp - 0x78]
mov rcx, r15
call rbx
mov ebx, eax
lea rcx, [rbp - 0x78]
call fcn.14002ce60
nop
lea rcx, [rbp - 0x58]
call fcn.14002ce60
test ebx, ebx
je 0x14003059d
mov ecx, r12d
call fcn.1400de610
lea rbx, str.CPEFServiceModule::databaseInit
lea r15, str.E:BT3304243d_d858_4efc_85b8_b3526d9f21d2PEFAppSrcPEFServicePEFServiceModule.cpp
test eax, eax
je 0x140030579
lea rax, str.Database_key_is_missing_deleting_old_db_file_and_recreating_the_key___file.
mov qword [rsp + 0x20], rax
mov r9d, 0x155
mov r8, rbx
mov rdx, r15
mov ecx, r12d
call fcn.140028a20
lea rcx, [rbp + 0x2c0]
cmp qword [rbp + 0x2d8], 8
cmovae rcx, qword [rbp + 0x2c0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.140049790
jmp 0x1400305ab
lea rbx, str.CPEFServiceModule::databaseInit
lea r15, str.E:BT3304243d_d858_4efc_85b8_b3526d9f21d2PEFAppSrcPEFServicePEFServiceModule.cpp
lea rcx, [rbp + 0x2c0]
cmp qword [rbp + 0x2d8], 8
cmovae rcx, qword [rbp + 0x2c0]
mov qword [rsp + 0x30], rsi
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 [r13 + 0x120], rax
test rax, rax
jne 0x140030734
mov qword [rbp + 0x188], rsi
mov qword [rbp + 0x190], 7
mov word [rbp + 0x178], si
mov qword [rbp + 0x1a8], rsi
mov qword [rbp + 0x1b0], 7
mov word [rbp + 0x198], si
mov edx, r12d
lea rcx, [rbp + 0x1c0]
call fcn.140029460
nop
nop dword [rax + rax]
xor eax, eax
lock cmpxchg dword [0x1403e3090], r12d
test eax, eax
je 0x14003065e
cmp eax, 1
jne 0x14003067d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140030640
call fcn.14002b3e0
mov qword [0x1403e3098], rax
neg rax
sbb ecx, ecx
and ecx, 2
mov eax, r12d
lock cmpxchg dword [0x1403e3090], ecx
mov rcx, qword [0x1403e3098]
mov qword [rbp + 0x2b8], rcx
add rcx, 0x28
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbp + 0x2b8]
mov dword [rax + 8], 4
mov rax, qword [rbp + 0x2b8]
mov dword [rax + 0x10], 0x15c
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], r15
mov dword [rbp + 0x170], 0x15c
mov r8d, 0x56
mov rdx, r15
lea rcx, [rbp + 0x178]
call fcn.14002b640
mov dword [rbp + 0x1b8], 4
mov r8d, 0x1f
mov rdx, rbx
lea rcx, [rbp + 0x198]
call fcn.14002b640
nop
lea rdx, str.FAILED_to_load_database_read_only_handle_._Major_issue
lea rcx, [rbp]
call fcn.1400270c0
nop
mov rdx, rax
lea rcx, [rbp + 0x170]
call fcn.14002be60
nop
lea rcx, [rbp]
call fcn.14002ce60
nop
lea rcx, [rbp + 0x170]
call fcn.140028cd0
mov esi, 0x54f
mov rbx, qword [rbp + 0x2e8]
test rbx, rbx
je 0x14003076c
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14003076c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14003076c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rbp + 0x2c0]
call fcn.14002ce60
nop
mov eax, r14d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1400307a3
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx]
lock xadd dword [rdi + 0xc], r14d
cmp r14d, 1
jne 0x1400307a3
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
mov eax, esi
mov rcx, qword [rbp + 0x308]
xor rcx, rsp
call fcn.140296f70
lea r11, [rsp + 0x410]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret