Function at 0x51bc70
Capabilities:
Delete file

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x508
mov rsi, rcx
lea rcx, [rsp + 0x270]
lea rbx, [rsp + 0x168]
call fcn.005c40b0
mov rax, qword [rsi + 0x18]
mov qword [rsp + 0x98], rax
lea rax, [rsi + 8]
mov qword [rsp + 0x78], rax
mov rdx, qword [rsp + 0x98]
cmp qword [rsp + 0x78], rdx
je 0x51c351
lea rax, [rsp + 0x2d0]
add rdx, 0x20
mov rcx, rax
mov qword [rsp + 0x30], rax
call fcn.005ccea0
lea r15, [rsp + 0xc8]
mov rdx, qword [rsp + 0x30]
mov rcx, r15
call fcn.005d8360
lea rax, [rsp + 0x298]
lea rdx, [rsp + 0x2f0]
mov rcx, rax
mov qword [rsp + 0x50], rax
call fcn.0052db70
mov rcx, qword [0x0062bc60]
mov rdx, r15
call fcn.005fef20
mov rcx, rax
call fcn.005fc1f0
lea r12, [rsp + 0x328]
lea r8, [0x00615a70]
lea rdx, [0x0066e6c0]
mov rcx, r12
call fcn.005ff440
lea r14, [rsp + 0xe8]
mov r8, r15
mov rdx, r12
mov rcx, r14
call fcn.005ff300
mov rcx, r12
call fcn.005d5f80
mov rdx, r14
mov rcx, r12
call fcn.0040600c
mov rcx, r12
call fcn.0059a0f0
mov edi, eax
mov rcx, r12
call fcn.00405940
test dil, dil
jne 0x51bd9e
mov rdx, r14
mov rcx, r12
call fcn.0040600c
mov rcx, r12
call fcn.00597780
mov rcx, r12
call fcn.00405940
mov rax, qword [rsp + 0x2a0]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x298]
mov qword [rsp + 0x40], rax
mov rdi, qword [rsp + 0x70]
cmp qword [rsp + 0x40], rdi
je 0x51c31b
lea r13, [rsp + 0x108]
mov rdx, qword [rsp + 0x40]
mov rcx, r13
call fcn.005d8360
mov rcx, qword [0x0062bc60]
mov rdx, r13
call fcn.005fef20
mov rcx, rax
call fcn.005fc1f0
or r8, 0xffffffffffffffff
lea rdx, [0x00615a70]
mov rcx, r13
call fcn.005467b0
cmp rax, 0xffffffffffffffff
je 0x51c303
lea rbp, [rsp + 0x128]
or r9, 0xffffffffffffffff
lea r8, [rax + 1]
mov rdx, r13
mov rcx, rbp
call fcn.00546fd0
lea r8, [0x00615a70]
mov rdx, r14
mov rcx, r12
call fcn.005ff440
lea rax, [rsp + 0x148]
mov r8, rbp
mov rdx, r12
mov rcx, rax
mov qword [rsp + 0x38], rax
call fcn.005ff300
mov rcx, r12
call fcn.005d5f80
mov rdx, qword [rsp + 0x38]
mov rcx, r12
call fcn.0040600c
mov rcx, r12
call fcn.0059a0f0
mov ebp, eax
mov rcx, r12
call fcn.00405940
test bpl, bpl
jne 0x51bea2
mov rdx, qword [rsp + 0x38]
mov rcx, r12
call fcn.0040600c
mov rcx, r12
call fcn.00597780
mov rcx, r12
call fcn.00405940
lea r8, str.History
mov rdx, r13
mov rcx, r12
call fcn.005ff440
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0xb0]
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x88], 1
call fcn.004062a6
mov rcx, r12
call fcn.005d5f80
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x48], rax
jmp 0x51bf4e
mov rdx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.005d8360
mov rdx, rbx
mov rcx, r12
call fcn.0040600c
mov rcx, r12
call fcn.0059a0f0
mov ebp, eax
mov rcx, r12
call fcn.00405940
test bpl, bpl
jne 0x51bf5f
mov rcx, rbx
call fcn.005d5f80
add qword [rsp + 0x48], 0x20
mov rdi, qword [rsp + 0x68]
cmp qword [rsp + 0x48], rdi
jne 0x51bf11
jmp 0x51c2df
mov rdx, rbx
mov rcx, r12
call fcn.005d8360
lea rcx, [rsp + 0x188]
mov rdx, r12
call fcn.00404224
mov rcx, r12
call fcn.005d5f80
mov rcx, qword [0x0062bc60]
lea rdx, str.Database_copied_from_::
call fcn.005fecb0
mov rcx, rax
mov rdx, rbx
call fcn.005fef20
mov rcx, rax
lea rdx, str._to_::
call fcn.005fecb0
lea rbp, [rsp + 0x188]
mov rcx, rax
mov rdx, rbp
call fcn.005fef20
mov rcx, rax
call fcn.005fc1f0
mov rcx, qword [0x0062bc60]
lea rdx, [rsp + 0x108]
call fcn.005fef20
mov rcx, rax
call fcn.005fc1f0
mov rcx, qword [rsp + 0x188]
lea rdx, [rsp + 0xa0]
call fcn.004bdfc0
mov r13d, eax
test eax, eax
je 0x51c030
mov rcx, qword [0x0062bc60]
lea rdx, str.Fail_opening_database__sqlite3_code:
call fcn.005fecb0
mov rcx, rax
mov edx, r13d
call fcn.00591610
mov rcx, rax
call fcn.005fc1f0
mov rcx, rbp
jmp 0x51c2d5
mov rcx, qword [0x0062bc60]
lea rdx, str.Database_opened
call fcn.005fecb0
mov rcx, rax
call fcn.005fc1f0
mov rdx, qword [rsi + 0x60]
mov rcx, qword [rsp + 0xa0]
or r8d, 0xffffffff
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xa8]
call fcn.004cc380
lea r13, [rsp + 0x248]
lea rdx, [rsp + 0x148]
lea r8, str.History.txt
mov rcx, r13
call fcn.005ff440
lea rcx, [rsp + 0x328]
mov r8d, 0x10
mov rdx, r13
call fcn.005c1690
mov rcx, r13
lea rbp, [rsp + 0x1a8]
lea rdi, [rsp + 0x1c8]
call fcn.005d5f80
lea rax, [rsp + 0x1e8]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0xa8]
call fcn.004dcbc0
cmp eax, 0x64
jne 0x51c29a
mov rcx, qword [rsp + 0xa8]
xor edx, edx
call fcn.00444a90
mov rdx, rax
mov rcx, rbp
call fcn.00405b00
mov rcx, qword [rsp + 0xa8]
mov edx, 1
call fcn.00444a90
mov rdx, rax
mov rcx, rdi
call fcn.00405b00
mov rcx, qword [rsp + 0xa8]
mov edx, 2
call fcn.00444a90
mov rcx, qword [rsp + 0x58]
mov rdx, rax
call fcn.00405b00
mov rcx, qword [rsp + 0xa8]
mov edx, 3
call fcn.00444a90
mov rdx, rax
lea rcx, [rsp + 0x208]
call fcn.00405b00
mov rcx, qword [rsp + 0xa8]
mov edx, 4
call fcn.00444a90
mov rdx, rax
lea rcx, [rsp + 0x228]
call fcn.00405b00
mov rcx, qword [rsp + 0xa8]
mov edx, 5
call fcn.00444a90
mov rdx, rax
mov rcx, r13
call fcn.00405b00
lea rcx, [rsp + 0x328]
lea rdx, str.ID_:
call fcn.005fecb0
mov rcx, rax
mov rdx, rbp
call fcn.005fef20
mov rcx, rax
lea rdx, str.__URL_:
call fcn.005fecb0
mov rcx, rax
mov rdx, rdi
call fcn.005fef20
mov rcx, rax
lea rdx, str.__TITLE_:
call fcn.005fecb0
mov rdx, qword [rsp + 0x58]
mov rcx, rax
call fcn.005fef20
mov rcx, rax
lea rdx, str.__VISIT_COUNT_:
call fcn.005fecb0
mov rcx, rax
lea rdx, [rsp + 0x208]
call fcn.005fef20
mov rcx, rax
lea rdx, str.__Last_Visited_Time__Timestamp__:
call fcn.005fecb0
mov rcx, rax
lea rax, [rsp + 0x228]
mov rdx, rax
mov qword [rsp + 0x60], rax
call fcn.005fef20
mov rcx, rax
lea rdx, str.__Display_Cunt_:
call fcn.005fecb0
mov rcx, rax
mov rdx, r13
call fcn.005fef20
mov rcx, rax
lea rdx, [0x00615b47]
call fcn.005fecb0
mov rcx, r13
call fcn.005d5f80
mov rcx, qword [rsp + 0x60]
call fcn.005d5f80
lea rcx, [rsp + 0x208]
call fcn.005d5f80
mov rcx, qword [rsp + 0x58]
call fcn.005d5f80
mov rcx, rdi
call fcn.005d5f80
mov rcx, rbp
call fcn.005d5f80
jmp 0x51c0cb
lea r13, [rsp + 0x328]
mov rcx, r13
call fcn.005c1260
mov rcx, qword [rsp + 0xa0]
call fcn.0048dc50
mov rcx, qword [rsp + 0x188]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, r13
call fcn.005c1dc0
lea rcx, [rsp + 0x188]
call fcn.005d5f80
jmp 0x51bf40
lea rcx, [rsp + 0xb0]
call fcn.00406120
mov rcx, qword [rsp + 0x38]
call fcn.005d5f80
lea rcx, [rsp + 0x128]
call fcn.005d5f80
lea rcx, [rsp + 0x108]
call fcn.005d5f80
add qword [rsp + 0x40], 0x20
jmp 0x51bdb8
mov rcx, r14
call fcn.005d5f80
mov rcx, qword [rsp + 0x50]
call fcn.00406142
mov rcx, r15
call fcn.005d5f80
mov rcx, qword [rsp + 0x30]
call fcn.00406160
lea rcx, [rsp + 0x98]
call fcn.005c82f0
jmp 0x51bcb0
lea rcx, [rsp + 0x268]
call fcn.00406180
nop
add rsp, 0x508
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret