Function at 0x1400589e0
Capabilities:
Check if file exists

Disassembly:
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1b80
call fcn.14017fcc0
sub rsp, rax
mov qword [rsp + 0x428], 0xfffffffffffffffe
mov qword [rsp + 0x1bb8], rbx
mov qword [rsp + 0x1bc0], rsi
mov rax, qword [0x140232230]
xor rax, rsp
mov qword [rsp + 0x1b70], rax
movzx edi, dl
mov r14, rcx
add rcx, 0x50
mov qword [rsp + 0xd8], rcx
mov byte [rsp + 0xe0], 0
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0xe0], 1
mov eax, dword [0x14023a9f4]
test al, 1
jne 0x140058a6c
or eax, 1
mov dword [0x14023a9f4], eax
mov eax, dword [0x140239ba8]
mov dword [0x14023a9f8], eax
mov byte [rsp + 0x40], 0
cmp qword [r14 + 0xa0], 0
je 0x14005a360
lea rsi, [0x140239d80]
mov qword [rsp + 0x70], rsi
mov word [rsp + 0x78], 1
mov byte [rsp + 0x7a], 0
lea rcx, [0x140239d88]
call qword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
setne bl
mov byte [rsp + 0x7a], bl
test bl, bl
je 0x140058ac5
lea rdx, str.begin_
mov rcx, rsi
call fcn.14008c470
mov byte [rsp + 0x79], 1
test dil, dil
je 0x140058af3
test bl, bl
jne 0x140058afb
lea rcx, [0x140239d88]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov word [rsp + 0x79], 0x101
lea rdx, str.begin_
mov rcx, rsi
call fcn.14008c470
jmp 0x140058afb
test bl, bl
je 0x14005a355
mov qword [rsp + 0xf0], rsi
xor r12d, r12d
mov dword [rsp + 0x100], r12d
mov qword [rsp + 0x1d8], r12
lea rax, [rsp + 0x1d8]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
xor r9d, r9d
or rdi, 0xffffffffffffffff
mov r8d, edi
lea rdx, str.select_id_from_t_names_where_name__
mov rcx, qword [0x140239d80]
call fcn.1400e6cb0
test eax, eax
je 0x140058bb3
mov rcx, qword [0x140239d80]
call fcn.1401062d0
mov qword [rsp + 0x1b8], rax
lea rdx, [rsp + 0x1b8]
lea rcx, [rsp + 0x2e0]
call int.14016707c
nop
lea rax, vtable.std::runtime_error.0
mov qword [rsp + 0x2e0], rax
lea rax, vtable.sqlite3x::database_error.0
mov qword [rsp + 0x2e0], rax
lea rdx, [0x14022e0f8]
lea rcx, [rsp + 0x2e0]
call fcn.140170da8
int3
mov rax, qword [rsp + 0xf8]
test rax, rax
je 0x140058bc6
movzx ecx, word [rax + 0x48]
jmp 0x140058bc9
mov ecx, r12d
mov dword [rsp + 0x104], ecx
mov qword [rsp + 0x108], rsi
mov dword [rsp + 0x118], r12d
mov qword [rsp + 0x168], r12
lea rax, [rsp + 0x168]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x110]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov r8d, edi
lea rdx, str.insert_into_t_names_name__values____
mov rcx, qword [0x140239d80]
call fcn.1400e6cb0
test eax, eax
je 0x140058c81
mov rcx, qword [0x140239d80]
call fcn.1401062d0
mov qword [rsp + 0x190], rax
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x310]
call int.14016707c
nop
lea rax, vtable.std::runtime_error.0
mov qword [rsp + 0x310], rax
lea rax, vtable.sqlite3x::database_error.0
mov qword [rsp + 0x310], rax
lea rdx, [0x14022e0f8]
lea rcx, [rsp + 0x310]
call fcn.140170da8
int3
mov rax, qword [rsp + 0x110]
test rax, rax
je 0x140058c94
movzx ecx, word [rax + 0x48]
jmp 0x140058c97
mov ecx, r12d
mov dword [rsp + 0x11c], ecx
mov qword [rsp + 0xa8], rsi
mov dword [rsp + 0xb8], r12d
mov qword [rsp + 0x1c0], r12
lea rax, [rsp + 0x1c0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov r8d, edi
lea rdx, str.insert_into_t_history_values_julianday____unixepoch_________________
mov rcx, qword [0x140239d80]
call fcn.1400e6cb0
test eax, eax
je 0x140058d4f
mov rcx, qword [0x140239d80]
call fcn.1401062d0
mov qword [rsp + 0x120], rax
lea rdx, [rsp + 0x120]
lea rcx, [rsp + 0x2c8]
call int.14016707c
nop
lea rax, vtable.std::runtime_error.0
mov qword [rsp + 0x2c8], rax
lea rax, vtable.sqlite3x::database_error.0
mov qword [rsp + 0x2c8], rax
lea rdx, [0x14022e0f8]
lea rcx, [rsp + 0x2c8]
call fcn.140170da8
int3
mov rax, qword [rsp + 0xb0]
test rax, rax
je 0x140058d62
movzx ecx, word [rax + 0x48]
jmp 0x140058d65
mov ecx, r12d
mov dword [rsp + 0xbc], ecx
nop dword [rax]
cmp qword [r14 + 0xa0], 0
je 0x140058fba
lea rdx, [rsp + 0x4b0]
lea rcx, [r14 + 0x80]
call fcn.14005f980
mov rdx, rax
mov rax, qword [rax]
test rax, rax
jne 0x140058da2
mov rax, r12
jmp 0x140058da5
mov rax, qword [rax]
mov rcx, qword [rax + 0x10]
dec rcx
and rcx, qword [rdx + 0x10]
mov rax, qword [rax + 8]
mov rbx, qword [rax + rcx*8]
lea r8, [rbx + 8]
lea rcx, [rsp + 0xf0]
call fcn.14008cad0
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0xf0]
call fcn.14008cb70
nop
lea rcx, [rsp + 0x68]
call fcn.14008be10
lea rcx, [rsp + 0x68]
test al, al
je 0x140058e0e
call fcn.14008c070
mov rdi, rax
mov qword [rsp + 0x1e0], rax
lea rcx, [rsp + 0x68]
call fcn.14008bde0
jmp 0x140058e9a
call fcn.14008bde0
lea r8, [rbx + 8]
lea rcx, [rsp + 0x108]
call fcn.14008cad0
lea rcx, [rsp + 0x108]
call fcn.14008cba0
mov rdi, qword [0x140239d80]
test rdi, rdi
jne 0x140058e8e
lea rax, [0x1401df578]
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x2f8]
call int.14016707c
nop
lea rax, vtable.std::runtime_error.0
mov qword [rsp + 0x2f8], rax
lea rax, vtable.sqlite3x::database_error.0
mov qword [rsp + 0x2f8], rax
lea rdx, [0x14022e0f8]
lea rcx, [rsp + 0x2f8]
call fcn.140170da8
mov rdi, qword [rdi + 0x30]
mov qword [rsp + 0x1e0], rdi
mov r8d, dword [rbx]
mov edx, 1
lea rcx, [rsp + 0xa8]
call fcn.14008c9e0
mov r8, rdi
mov edx, 2
lea rcx, [rsp + 0xa8]
call fcn.14008ca60
mov r8d, dword [rbx + 0x28]
mov edx, 3
lea rcx, [rsp + 0xa8]
call fcn.14008c9e0
movzx r8d, word [rbx + 0x30]
mov edx, 4
lea rcx, [rsp + 0xa8]
call fcn.14008c9e0
mov r8d, dword [rbx + 0x2c]
mov edx, 5
lea rcx, [rsp + 0xa8]
call fcn.14008c9e0
movzx r8d, word [rbx + 0x32]
mov edx, 6
lea rcx, [rsp + 0xa8]
call fcn.14008c9e0
mov r8d, dword [rbx + 0x34]
mov edx, 7
lea rcx, [rsp + 0xa8]
call fcn.14008c9e0
mov r8d, r12d
cmp byte [rbx + 0x38], r8b
setne r8b
mov edx, 8
lea rcx, [rsp + 0xa8]
call fcn.14008c9e0
lea rcx, [rsp + 0xa8]
call fcn.14008cba0
inc dword [0x14023a9f8]
lea rcx, [rsp + 0x68]
call fcn.14008bde0
nop
lea rcx, [r14 + 0x80]
call fcn.14005f600
jmp 0x140058d70
cmp byte [0x140239b56], 0
jne 0x140058fd0
cmp byte [0x140239b55], 0
je 0x14005a2ad
cmp dword [0x140239b70], 0
je 0x14005a2ad
cmp qword [0x140239ba0], 0
jle 0x14005a2ad
mov eax, dword [0x140239ba8]
cmp dword [0x14023a9f8], eax
jb 0x14005a2ad
lea rax, [rsp + 0x1e8]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x200], 7
mov qword [rsp + 0x1f8], r12
mov word [rsp + 0x1e8], r12w
mov r8d, select
lea rdx, str.checking__tstat64
lea rcx, [rsp + 0x1e8]
call fcn.14000dc20
nop
mov r8d, 5
lea rdx, [rsp + 0x1e8]
call fcn.140078560
mov edx, 0x104
lea rcx, [rsp + 0x1340]
lea r8, str.history.db
lea rax, [rsp + 0x1340]
sub r8, rax
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140059098
movzx eax, word [rcx + r8]
test ax, ax
je 0x140059098
mov word [rcx], ax
add rcx, 2
dec rdx
jne 0x140059074
jmp 0x14005909d
test rdx, rdx
jne 0x1400590a1
sub rcx, 2
mov word [rcx], r12w
lea rcx, [rsp + 0xce0]
call fcn.140007df0
mov rcx, rax
lea r8, [rsp + 0x1340]
lea rdx, [rsp + 0x1760]
call fcn.140007bf0
lea rdx, [rsp + 0x10f0]
mov rcx, rax
call fcn.14016c4a0
test eax, eax
jne 0x14005a1fd
lea rax, [rsp + 0x288]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x2a0], 7
mov qword [rsp + 0x298], r12
mov word [rsp + 0x288], r12w
mov r8d, 0x1e
lea rdx, str.checking_filesize_against_user
lea rcx, [rsp + 0x288]
call fcn.14000dc20
nop
mov r8d, 5
lea rdx, [rsp + 0x288]
call fcn.140078560
mov rax, qword [0x140239ba0]
cmp qword [rsp + 0x1108], rax
jle 0x14005a2a6
lea rax, [rsp + 0x248]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x260], 7
mov qword [rsp + 0x258], r12
mov word [rsp + 0x248], r12w
mov r8d, 0x26
lea rdx, str.filesize_is_bigger_than_user_specified
lea rcx, [rsp + 0x248]
call fcn.14000dc20
nop
mov r8d, 5
lea rdx, [rsp + 0x248]
call fcn.140078560
mov rdi, r12
mov qword [rsp + 0xd0], r12
lea rcx, [rsp + 0x500]
call fcn.14002b520
nop
lea rdx, str.select_max_ROWID______max_ROWID____min_ROWID_____2__from_t_history_
lea rcx, [rsp + 0x500]
call fcn.14002e520
lea rdx, [rsp + 0xf30]
lea rcx, [rsp + 0x500]
call fcn.14002b6a0
nop
mov r8, rax
lea rcx, [rsp + 0x380]
call fcn.14008c8e0
nop
cmp qword [rsp + 0xf48], 0x10
jb 0x140059213
mov rcx, qword [rsp + 0xf30]
call fcn.1401669a0
mov qword [rsp + 0xf48], 0xf
mov qword [rsp + 0xf40], r12
mov byte [rsp + 0xf30], 0
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x380]
call fcn.14008cb70
nop
lea rcx, [rsp + 0x58]
call fcn.14008be10
test al, al
je 0x140059265
lea rcx, [rsp + 0x58]
call fcn.14008c070
mov rdi, rax
mov qword [rsp + 0xd0], rax
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140059287
dec dword [rcx + 0x10]
jne 0x140059282
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx + 8]
call fcn.1400b4580
mov qword [rsp + 0x58], r12
mov rcx, qword [rsp + 0x388]
call fcn.1400b44b0
nop
lea rcx, [rsp + 0x588]
call fcn.14002b610
lea rax, [rsp + 0x588]
mov qword [rsp + 0x60], rax
lea r14, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov qword [rsp + 0x588], r14
lea rsi, vtable.std::ios_base.0
mov qword [rsp + 0x588], rsi
lea rcx, [rsp + 0x588]
call fcn.140145b98
cmp dword [0x140239b70], 2
jne 0x14005a00e
lea rax, [rsp + 0x80]
mov qword [rsp + 0x438], rax
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x88], r12
mov qword [rsp + 0x90], r12
mov qword [rsp + 0x98], r12
mov qword [rsp + 0xa0], r12
mov ecx, reloc.WS2_32.dll_recv
call fcn.140166ea4
mov qword [rsp + 0x3e8], rax
test rax, rax
jne 0x14005933b
call fcn.140144f28
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x468], rax
mov qword [rsp + 0x3f8], rax
mov qword [rax], r12
mov qword [rax + 8], r12
lea rcx, [rsp + 0x80]
mov rax, qword [rsp + 0x80]
mov qword [rax], rcx
lea rcx, [rsp + 0x5f0]
call fcn.14002b520
nop
lea rdx, str.select_distinct_date_time__localtime__from_t_history_where_ROWID__
lea rcx, [rsp + 0x5f0]
call fcn.14002e520
mov rcx, rax
mov rdx, rdi
call fcn.14005f360
mov rcx, rax
lea rdx, [0x1401bab44]
call fcn.14002e520
lea rdx, [rsp + 0x1090]
lea rcx, [rsp + 0x5f0]
call fcn.14002b6a0
nop
mov r8, rax
lea rcx, [rsp + 0x3a0]
call fcn.14008c8e0
nop
cmp qword [rsp + 0x10a8], 0x10
jb 0x1400593e8
mov rcx, qword [rsp + 0x1090]
call fcn.1401669a0
mov qword [rsp + 0x10a8], 0xf
mov qword [rsp + 0x10a0], r12
mov byte [rsp + 0x1090], 0
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x3a0]
call fcn.14008cb70
nop
nop word [rax + rax]
lea rcx, [rsp + 0xc8]
call fcn.14008be10
test al, al
je 0x140059498
xor r8d, r8d
lea rdx, [rsp + 0xfb0]
lea rcx, [rsp + 0xc8]
call fcn.14008c150
mov qword [rsp + 0x448], rax
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.14005f750
nop
cmp qword [rsp + 0xfc8], 0x10
jb 0x14005947a
mov rcx, qword [rsp + 0xfb0]
call fcn.1401669a0
mov qword [rsp + 0xfc8], 0xf
mov qword [rsp + 0xfc0], r12
mov byte [rsp + 0xfb0], 0
jmp 0x140059420
lea rcx, [rsp + 0xc8]
call fcn.14008bde0
nop
mov rcx, qword [rsp + 0x3a8]
call fcn.1400b44b0
nop
lea rcx, [rsp + 0x678]
call fcn.14002b610
lea rax, [rsp + 0x678]
mov qword [rsp + 0x418], rax
mov qword [rsp + 0x678], r14
mov qword [rsp + 0x678], rsi
lea rcx, [rsp + 0x678]
call fcn.140145b98
lea r15, [0x140000000]
mov rax, qword [rsp + 0xa0]
nop dword [rax]
test rax, rax
je 0x140059f5c
lea rax, [rsp + 0x198]
mov qword [rsp + 0x328], rax
mov qword [rsp + 0x1a8], r12
mov qword [rsp + 0x1b0], r12
mov qword [rsp + 0x1b0], 7
mov qword [rsp + 0x1a8], r12
mov word [rsp + 0x198], r12w
mov r8d, reloc.WS2_32.dll_listen
lea rdx, str.getting_dates
lea rcx, [rsp + 0x198]
call fcn.14000dc20
nop
mov r8d, 5
lea rdx, [rsp + 0x198]
call fcn.140078560
lea r9, [rsp + 0x1130]
lea rcx, [rsp + 0x1130]
lea rdx, [0x140239840]
mov rax, rdx
or rax, rcx
and eax, 0xf
jne 0x1400595f9
mov eax, 4
nop dword [rax + rax]
movaps xmm0, xmmword [rdx]
movaps xmmword [rcx], xmm0
movaps xmm1, xmmword [rdx + 0x10]
movaps xmmword [rcx + 0x10], xmm1
movaps xmm0, xmmword [rdx + 0x20]
movaps xmmword [rcx + 0x20], xmm0
movaps xmm1, xmmword [rdx + 0x30]
movaps xmmword [rcx + 0x30], xmm1
movaps xmm0, xmmword [rdx + 0x40]
movaps xmmword [rcx + 0x40], xmm0
movaps xmm1, xmmword [rdx + 0x50]
movaps xmmword [rcx + 0x50], xmm1
movaps xmm0, xmmword [rdx + 0x60]
movaps xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movaps xmm1, xmmword [rdx + 0x70]
movaps xmmword [rcx - 0x10], xmm1
lea rdx, [rdx + 0x80]
dec rax
jne 0x1400595a0
mov rax, qword [rdx]
mov qword [rcx], rax
jmp 0x14005960e
mov r8d, 0x208
lea rdx, [0x140239840]
mov rcx, r9
call fcn.1401669c0
lea rcx, [rsp + 0x1130]
call qword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
cmp eax, 1
jne 0x1400596d7
lea rcx, [rsp + 0xad0]
call fcn.140007df0
mov rcx, rax
lea r8, [rsp + 0x1130]
lea rdx, [rsp + 0x8c0]
call fcn.140007bf0
mov rdx, rax
lea r9, [rsp + 0x1130]
lea rcx, [rsp + 0x1130]
or rax, rcx
and eax, 0xf
jne 0x1400596c9
mov eax, 4
nop word [rax + rax]
movaps xmm0, xmmword [rdx]
movaps xmmword [rcx], xmm0
movaps xmm1, xmmword [rdx + 0x10]
movaps xmmword [rcx + 0x10], xmm1
movaps xmm0, xmmword [rdx + 0x20]
movaps xmmword [rcx + 0x20], xmm0
movaps xmm1, xmmword [rdx + 0x30]
movaps xmmword [rcx + 0x30], xmm1
movaps xmm0, xmmword [rdx + 0x40]
movaps xmmword [rcx + 0x40], xmm0
movaps xmm1, xmmword [rdx + 0x50]
movaps xmmword [rcx + 0x50], xmm1
movaps xmm0, xmmword [rdx + 0x60]
movaps xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movaps xmm1, xmmword [rdx + 0x70]
movaps xmmword [rcx - 0x10], xmm1
lea rdx, [rdx + 0x80]
dec rax
jne 0x140059670
mov rax, qword [rdx]
mov qword [rcx], rax
jmp 0x1400596d7
mov r8d, 0x208
mov rcx, r9
call fcn.1401669c0
lea rcx, [rsp + 0x1130]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x1400596f7
lea rcx, [rsp + 0x1130]
call fcn.14003b5d0
lea rdx, [rsp + 0x4e0]
lea rcx, [rsp + 0x80]
call fcn.14005f980
mov rdx, rax
mov qword [rsp + 0x3f0], rax
mov rax, qword [rax]
test rax, rax
jne 0x140059724
mov rax, r12
jmp 0x140059727
mov rax, qword [rax]
mov qword [rsp + 0x330], rax
mov rcx, qword [rax + 0x10]
dec rcx
and rcx, qword [rdx + 0x10]
mov qword [rsp + 0x338], rcx
mov rax, qword [rax + 8]
mov rdx, qword [rax + rcx*8]
mov qword [rsp + 0x348], rdx
lea rcx, [rsp + 0xff0]
call fcn.140022470
nop
lea r8, str..log
mov rdx, rax
lea rcx, [rsp + 0xfd0]
call fcn.1400183b0
mov qword [rsp + 0x358], rax
cmp qword [rax + 0x18], 8
jb 0x140059789
mov rax, qword [rax]
mov r8, rax
mov edx, 0x208
lea rcx, [rsp + 0x1550]
call fcn.140007f00
lea rdx, [rsp + 0x1550]
lea rcx, [rsp + 0x1130]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
nop
cmp qword [rsp + 0xfe8], 8
jb 0x1400597cd
mov rcx, qword [rsp + 0xfd0]
call fcn.1401669a0
mov qword [rsp + 0xfe8], 7
mov qword [rsp + 0xfe0], r12
mov word [rsp + 0xfd0], r12w
cmp qword [rsp + 0x1008], 8
jb 0x140059802
mov rcx, qword [rsp + 0xff0]
call fcn.1401669a0
mov qword [rsp + 0x1008], 7
mov qword [rsp + 0x1000], r12
mov word [rsp + 0xff0], r12w
lea rdx, [rsp + 0x1010]
lea rcx, [rsp + 0x1130]
call fcn.140021800
mov qword [rsp + 0x368], rax
cmp qword [rax + 0x18], 8
jb 0x140059846
mov rax, qword [rax]
lea rdx, [0x1401d1734]
mov rcx, rax
call fcn.140167854
mov r13, rax
mov qword [rsp + 0x460], rax
cmp qword [rsp + 0x1028], 8
jb 0x140059878
mov rcx, qword [rsp + 0x1010]
call fcn.1401669a0
mov qword [rsp + 0x1028], 7
mov qword [rsp + 0x1020], r12
mov word [rsp + 0x1010], r12w
test r13, r13
je 0x140059ec0
mov qword [rsp + 0x1c8], r13
lea r8, [fcn.1401679bc]
mov rdx, r13
lea rcx, [rsp + 0x1d0]
call fcn.140019520
nop
mov r8, r13
mov rdx, r13
lea rcx, [rsp + 0x1c8]
call fcn.140009ce0
nop
lea rcx, [rsp + 0x6e0]
call fcn.14002b520
nop
lea rdx, [rsp + 0x4c8]
lea rcx, [rsp + 0x80]
call fcn.14005f980
mov rdx, rax
mov qword [rsp + 0x470], rax
mov rax, qword [rax]
test rax, rax
jne 0x14005990d
mov rax, r12
jmp 0x140059910
mov rax, qword [rax]
mov qword [rsp + 0x480], rax
mov rcx, qword [rax + 0x10]
dec rcx
and rcx, qword [rdx + 0x10]
mov qword [rsp + 0x490], rcx
mov rax, qword [rax + 8]
mov r8, qword [rax + rcx*8]
mov qword [rsp + 0x458], r8
lea rdx, str.select_time_time__localtime__name_source_sourceport_destination_destport_protocol_action_from_t_history_t_names_where_time_julianday_
lea rcx, [rsp + 0xf90]
call fcn.140001270
nop
lea r8, str.__utc__and_time_julianday_
mov rdx, rax
lea rcx, [rsp + 0xf50]
call fcn.14005fd10
mov rbx, rax
lea rdx, [rsp + 0x498]
lea rcx, [rsp + 0x80]
call fcn.14005f980
mov rdx, rax
mov qword [rsp + 0x3e0], rax
mov rax, qword [rax]
test rax, rax
jne 0x140059997
mov rax, r12
jmp 0x14005999a
mov rax, qword [rax]
mov qword [rsp + 0x408], rax
mov rcx, qword [rax + 0x10]
dec rcx
and rcx, qword [rdx + 0x10]
mov qword [rsp + 0x488], rcx
mov rax, qword [rax + 8]
mov r8, qword [rax + rcx*8]
mov qword [rsp + 0x378], r8
mov rdx, rbx
lea rcx, [rsp + 0x1070]
call fcn.140047060
nop
lea r8, str.__1_days__utc__and_t_history.ROWID_
mov rdx, rax
lea rcx, [rsp + 0x10d0]
call fcn.14005fd10
nop
mov rdx, rax
lea rcx, [rsp + 0x6e0]
call fcn.14002e830
mov rcx, rax
mov rdx, rdi
call fcn.14005f360
mov rcx, rax
lea rdx, str._and_t_names.idnameid_
call fcn.14002e520
nop
cmp qword [rsp + 0x10e8], 0x10
jb 0x140059a31
mov rcx, qword [rsp + 0x10d0]
call fcn.1401669a0
mov qword [rsp + 0x10e8], 0xf
mov qword [rsp + 0x10e0], r12
mov byte [rsp + 0x10d0], 0
cmp qword [rsp + 0x1088], 0x10
jb 0x140059a65
mov rcx, qword [rsp + 0x1070]
call fcn.1401669a0
mov qword [rsp + 0x1088], 0xf
mov qword [rsp + 0x1080], r12
mov byte [rsp + 0x1070], 0
cmp qword [rsp + 0xf68], 0x10
jb 0x140059a99
mov rcx, qword [rsp + 0xf50]
call fcn.1401669a0
mov qword [rsp + 0xf68], 0xf
mov qword [rsp + 0xf60], r12
mov byte [rsp + 0xf50], 0
cmp qword [rsp + 0xfa8], 0x10
jb 0x140059acd
mov rcx, qword [rsp + 0xf90]
call fcn.1401669a0
mov qword [rsp + 0xfa8], 0xf
mov qword [rsp + 0xfa0], r12
mov byte [rsp + 0xf90], 0
lea rdx, [rsp + 0x10b0]
lea rcx, [rsp + 0x6e0]
call fcn.14002b6a0
nop
mov r8, rax
lea rcx, [rsp + 0x3c0]
call fcn.14008c8e0
nop
cmp qword [rsp + 0x10c8], 0x10
jb 0x140059b28
mov rcx, qword [rsp + 0x10b0]
call fcn.1401669a0
mov qword [rsp + 0x10c8], 0xf
mov qword [rsp + 0x10c0], r12
mov byte [rsp + 0x10b0], 0
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x3c0]
call fcn.14008cb70
nop
nop word [rax + rax]
lea rcx, [rsp + 0x48]
call fcn.14008be10
test al, al
je 0x140059e16
xor r8d, r8d
lea rdx, [rsp + 0xef0]
lea rcx, [rsp + 0x48]
call fcn.14008c150
nop
mov r8d, 1
lea rdx, [rsp + 0xf10]
lea rcx, [rsp + 0x48]
call fcn.14008c150
nop
mov edx, 6
lea rcx, [rsp + 0x48]
call fcn.14008bf20
dec eax
cmp eax, 0x4c
ja case.0x140059bcd.9
cdqe
movzx eax, byte [r15 + rax + 0x5a3cc]
mov ecx, dword [r15 + rax*4 + 0x5a3a8]
add rcx, r15
jmp rcx
lea rdi, [0x1401bab64]
jmp 0x140059c1e
lea rdi, [0x1401bab6c]
jmp 0x140059c1e
lea rdi, [0x1401bab78]
jmp 0x140059c1e
lea rdi, [0x1401bab84]
jmp 0x140059c1e
lea rdi, [0x1401bab88]
jmp 0x140059c1e
lea rdi, [0x1401bab8c]
jmp 0x140059c1e
lea rdi, [0x1401bab90]
jmp 0x140059c1e
lea rdi, [0x1401bab98]
jmp 0x140059c1e
lea rdi, [0x1401baba0]
mov qword [rsp + 0x50], rdi
mov edx, 5
lea rcx, [rsp + 0x48]
call fcn.14008bf20
mov ebx, eax
mov edx, 4
lea rcx, [rsp + 0x48]
call fcn.14008bf20
mov edx, eax
movzx r8d, bx
lea rcx, [rsp + 0x1030]
call fcn.140057570
mov r15, rax
mov qword [rsp + 0x400], rax
mov edx, 3
lea rcx, [rsp + 0x48]
call fcn.14008bf20
mov ebx, eax
mov edx, 2
lea rcx, [rsp + 0x48]
call fcn.14008bf20
mov edx, eax
movzx r8d, bx
lea rcx, [rsp + 0x1050]
call fcn.140057570
mov r14, rax
mov qword [rsp + 0x340], rax
cmp qword [r15 + 0x18], 0x10
jb 0x140059ca9
mov r15, qword [r15]
cmp qword [rax + 0x18], 0x10
jb 0x140059cb3
mov r14, qword [rax]
cmp qword [rsp + 0xf28], 0x10
jb 0x140059cc8
mov rsi, qword [rsp + 0xf10]
jmp 0x140059cd0
lea rsi, [rsp + 0xf10]
cmp qword [rsp + 0xf08], 0x10
jb 0x140059ce5
mov rbx, qword [rsp + 0xef0]
jmp 0x140059ced
lea rbx, [rsp + 0xef0]
mov edx, 7
lea rcx, [rsp + 0x48]
call fcn.14008bf20
lea rcx, str.Allowed
test eax, eax
lea rax, str.Blocked
cmovne rcx, rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r14
mov r9, rsi
mov r8, rbx
lea rdx, str._s___s___s___s___s___s_n
mov rcx, r13
call fcn.14016c928
nop
cmp qword [rsp + 0x1068], 0x10
jb 0x140059d52
mov rcx, qword [rsp + 0x1050]
call fcn.1401669a0
mov qword [rsp + 0x1068], 0xf
mov qword [rsp + 0x1060], r12
mov byte [rsp + 0x1050], 0
cmp qword [rsp + 0x1048], 0x10
jb 0x140059d86
mov rcx, qword [rsp + 0x1030]
call fcn.1401669a0
mov qword [rsp + 0x1048], 0xf
mov qword [rsp + 0x1040], r12
mov byte [rsp + 0x1030], 0
cmp qword [rsp + 0xf28], 0x10
jb 0x140059dba
mov rcx, qword [rsp + 0xf10]
call fcn.1401669a0
mov qword [rsp + 0xf28], 0xf
mov qword [rsp + 0xf20], r12
mov byte [rsp + 0xf10], 0
cmp qword [rsp + 0xf08], 0x10
jb 0x140059dee
mov rcx, qword [rsp + 0xef0]
call fcn.1401669a0
mov qword [rsp + 0xf08], 0xf
mov qword [rsp + 0xf00], r12
mov byte [rsp + 0xef0], 0
lea r15, [0x140000000]
jmp 0x140059b60
lea rcx, [rsp + 0x48]
call fcn.14008bde0
nop
mov rcx, qword [rsp + 0x3c8]
call fcn.1400b44b0
nop
lea rcx, [rsp + 0x768]
call fcn.14002b610
lea rax, [rsp + 0x768]
mov qword [rsp + 0x410], rax
lea r14, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov qword [rsp + 0x768], r14
lea rsi, vtable.std::ios_base.0
mov qword [rsp + 0x768], rsi
lea rcx, [rsp + 0x768]
call fcn.140145b98
nop
mov rcx, qword [rsp + 0x1d0]
test rcx, rcx
je 0x140059eb8
mov qword [rsp + 0xe8], rcx
lock dec dword [rcx + 8]
jne 0x140059eb8
mov rbx, qword [rsp + 0xe8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
lock dec dword [rbx + 0xc]
jne 0x140059eb8
mov rcx, qword [rsp + 0xe8]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rdi, qword [rsp + 0xd0]
mov rax, qword [rsp + 0xa0]
test rax, rax
je 0x140059f57
mov rbx, qword [rsp + 0x90]
dec rbx
and rbx, qword [rsp + 0x98]
mov qword [rsp + 0x350], rbx
mov rax, qword [rsp + 0x88]
mov rbx, qword [rax + rbx*8]
mov qword [rsp + 0x420], rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140059f17
mov rcx, qword [rbx]
mov qword [rsp + 0x360], rcx
call fcn.1401669a0
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rbx + 0x10], r12
cmp qword [rbx + 0x18], 0x10
jb 0x140059f2d
mov rbx, qword [rbx]
mov byte [rbx], 0
mov rax, qword [rsp + 0xa0]
dec rax
mov qword [rsp + 0xa0], rax
jne 0x140059f4f
mov qword [rsp + 0x98], r12
jmp 0x140059f57
inc qword [rsp + 0x98]
jmp 0x140059500
lea rax, [rsp + 0x128]
mov qword [rsp + 0x430], rax
mov qword [rsp + 0x138], r12
mov qword [rsp + 0x140], r12
mov qword [rsp + 0x140], 7
mov qword [rsp + 0x138], r12
mov word [rsp + 0x128], r12w
mov r8d, reloc.WS2_32.dll_listen
lea rdx, str.Cleaned_up_db
lea rcx, [rsp + 0x128]
call fcn.14000dc20
nop
mov r8d, 5
lea rdx, [rsp + 0x128]
call fcn.140078560
nop
lea rax, [rsp + 0x80]
mov qword [rsp + 0x370], rax
lea rcx, [rsp + 0x80]
call fcn.14005f820
nop
mov rcx, qword [rsp + 0x80]
call fcn.1401669a0
mov qword [rsp + 0x80], r12
jmp 0x14005a00e
mov eax, dword [0x140239b70]
dec eax
cmp eax, 1
ja 0x14005a2a6
lea rcx, [rsp + 0x7d0]
call fcn.14002b520
nop
lea rdx, str.delete_from_t_history_where_ROWID__
lea rcx, [rsp + 0x7d0]
call fcn.14002e520
mov rcx, rax
mov rdx, qword [rsp + 0xd0]
call fcn.14005f360
mov rcx, rax
lea rdx, [0x1401bab44]
call fcn.14002e520
lea rdx, [rsp + 0xf70]
lea rcx, [rsp + 0x7d0]
call fcn.14002b6a0
nop
mov rdx, rax
call fcn.14008c5f0
nop
cmp qword [rsp + 0xf88], 0x10
jb 0x14005a097
mov rcx, qword [rsp + 0xf70]
call fcn.1401669a0
mov qword [rsp + 0xf88], 0xf
mov qword [rsp + 0xf80], r12
mov byte [rsp + 0xf70], 0
lea rax, [rsp + 0x148]
mov qword [rsp + 0x450], rax
mov qword [rsp + 0x158], r12
mov qword [rsp + 0x160], r12
mov qword [rsp + 0x160], 7
mov qword [rsp + 0x158], r12
mov word [rsp + 0x148], r12w
mov r8d, setsockopt
lea rdx, str.removed_from_history
lea rcx, [rsp + 0x148]
call fcn.14000dc20
nop
mov r8d, 5
lea rdx, [rsp + 0x148]
call fcn.140078560
xorps xmm1, xmm1
cvtsi2sd xmm1, qword [rsp + 0x1108]
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [0x140239ba0]
mulsd xmm0, qword [0x1401e9b30]
comisd xmm1, xmm0
jbe 0x14005a1b5
lea rax, [rsp + 0x170]
mov qword [rsp + 0x398], rax
mov qword [rsp + 0x180], r12
mov qword [rsp + 0x188], r12
mov qword [rsp + 0x188], 7
mov qword [rsp + 0x180], r12
mov word [rsp + 0x170], r12w
mov r8d, listen
lea rdx, str.need_vacuum
lea rcx, [rsp + 0x170]
call fcn.14000dc20
nop
mov r8d, 5
lea rdx, [rsp + 0x170]
call fcn.140078560
mov byte [rsp + 0x40], 1
lea rcx, [rsp + 0x858]
call fcn.14002b610
lea rax, [rsp + 0x858]
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0x858], r14
mov qword [rsp + 0x858], rsi
lea rcx, [rsp + 0x858]
call fcn.140145b98
nop
jmp 0x14005a2a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str._tstat64_failed:__d
mov edx, 0xff
lea rcx, [rsp + 0x1970]
call fcn.140167410
lea rax, [rsp + 0x268]
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0x280], 7
mov qword [rsp + 0x278], r12
mov word [rsp + 0x268], r12w
cmp word [rsp + 0x1970], 0
jne 0x14005a25c
mov rdi, r12
jmp 0x14005a27a
lea rax, [rsp + 0x1970]
or rdi, 0xffffffffffffffff
nop dword [rax + rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14005a270
mov r8, rdi
lea rdx, [rsp + 0x1970]
lea rcx, [rsp + 0x268]
call fcn.14000dc20
nop
mov r8d, 5
lea rdx, [rsp + 0x268]
call fcn.140078560
mov dword [0x14023a9f8], r12d
lea rdx, str.commit_
mov rcx, qword [rsp + 0x70]
call fcn.14008c470
mov byte [rsp + 0x79], 0
cmp byte [rsp + 0x40], 0
je 0x14005a32b
call fcn.14008c530
lea rax, [rsp + reloc.SHELL32.dll_IsUserAnAdmin]
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0x2c0], 7
mov qword [rsp + 0x2b8], r12
mov word [rsp + reloc.SHELL32.dll_IsUserAnAdmin], r12w
mov r8d, 0x25
lea rdx, str.vacuumed_history.db_as_it_was_too_big
lea rcx, [rsp + reloc.SHELL32.dll_IsUserAnAdmin]
call fcn.14000dc20
nop
mov r8d, 5
lea rdx, [rsp + reloc.SHELL32.dll_IsUserAnAdmin]
call fcn.140078560
nop
mov rcx, qword [rsp + 0xb0]
call fcn.1400b44b0
nop
mov rcx, qword [rsp + 0x110]
call fcn.1400b44b0
nop
mov rcx, qword [rsp + 0xf8]
call fcn.1400b44b0
nop
lea rcx, [rsp + 0x70]
call fcn.140030240
nop
cmp byte [rsp + 0xe0], 0
je 0x14005a378
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x1b70]
xor rcx, rsp
call fcn.140166980
lea r11, [rsp + 0x1b80]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret