Function at 0x1800378c0
Capabilities:
Check if file exists
Link many functions at runtime
Reference sql statements

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0xc30]
sub rsp, 0xd30
mov rax, qword [0x18007d010]
xor rax, rsp
mov qword [rbp + 0xc20], rax
mov r14, rdx
mov rsi, rcx
mov r8, rcx
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.180040238
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea r8, [rsp + 0x40]
mov edx, 0x104
lea rcx, [rbp + 0x360]
call fcn.180040238
lea r8, [0x180071fb0]
lea rdx, [rbp + 0x360]
lea rcx, [rbp + 0x150]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rcx, [rbp + 0x150]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1800379c4
nop dword [rax]
lea rcx, [rbp + 0x360]
call qword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x180037e28
lea r8, [0x18006df14]
lea rdx, [rbp + 0x360]
lea rcx, [rbp + 0x150]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea r8, [rbp + 0x150]
mov edx, 0x104
lea rcx, [rbp + 0x360]
call fcn.180040238
lea r8, [0x180071fb0]
lea rdx, [rbp + 0x360]
lea rcx, [rbp + 0x150]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rcx, [rbp + 0x150]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x180037950
lea r8, str..svn
xor dil, dil
lea rdx, [rbp + 0x360]
lea rcx, [rbp + 0x780]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea r8, str.wc.db
lea rdx, [rbp + 0x780]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180037e4f
cmp byte [0x180082f10], dil
jne 0x180037b4c
lea rcx, [0x180072cb0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180037e2d
mov r8d, 0x104
lea rdx, [rbp + 0x570]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rbp + 0x570]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea r8, str.libs_sqlite3.dll
mov edx, 0x104
lea rcx, [rbp + 0x570]
call fcn.180043690
lea rcx, [rbp + 0x570]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x180037e2d
lea rdx, str.sqlite3_open16
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180080618], rax
test rax, rax
je 0x180037e2d
lea rdx, str.sqlite3_prepare16_v2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180080628], rax
test rax, rax
je 0x180037e2d
lea rdx, str.sqlite3_step
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180080610], rax
test rax, rax
je 0x180037e2d
lea rdx, str.sqlite3_column_text16
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180080638], rax
test rax, rax
je 0x180037e2d
lea rdx, str.sqlite3_finalize
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180080630], rax
test rax, rax
je 0x180037e2d
lea rdx, str.sqlite3_close
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180080620], rax
test rax, rax
je 0x180037e2d
mov byte [0x180082f10], 1
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x40]
call qword [0x180080618]
test eax, eax
jne 0x180037de9
mov qword [rsp + 0xd70], r15
lea rcx, [rbp + 0x150]
xor r15d, r15d
mov r8, rsi
mov edx, 0x104
mov word [rsp + 0x40], r15w
call fcn.180040238
lea rcx, [rbp + 0x150]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], r15w
jne 0x180037ba0
sub eax, 1
mov ebx, 0x2f
movsxd rcx, eax
js 0x180037bd9
nop word [rax + rax]
cmp word [rbp + rcx*2 + 0x150], 0x5c
jne 0x180037bd3
mov word [rbp + rcx*2 + 0x150], bx
sub rcx, 1
jns 0x180037bc0
lea r8, [rbp + 0x360]
mov edx, 0x104
lea rcx, [rbp + 0x570]
call fcn.180040238
lea rcx, [rbp + 0x570]
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [rcx + rax*2], r15w
jne 0x180037c00
sub eax, 1
movsxd rcx, eax
js 0x180037c2b
cmp word [rbp + rcx*2 + 0x570], 0x5c
jne 0x180037c25
mov word [rbp + rcx*2 + 0x570], bx
sub rcx, 1
jns 0x180037c12
lea rax, [rbp + 0x570]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], r15w
jne 0x180037c40
movsxd rsi, ebx
lea rdx, [rbp + 0x570]
mov r8, rsi
lea rcx, [rbp + 0x150]
call fcn.1800438e0
test eax, eax
jne 0x180037c92
cmp word [rbp + rsi*2 + 0x150], 0x2f
lea eax, [rbx + 1]
lea r8, [rbp + 0x150]
mov edx, 0x104
cmovne eax, ebx
lea rcx, [rsp + 0x40]
cdqe
lea r8, [r8 + rax*2]
call fcn.180040238
lea rax, [rsp + 0x40]
mov edx, 0x144
lea r9, str.SELECT_checksum_FROM_nodes_current_WHERE_local_relpath_s_
mov qword [rsp + 0x20], rax
mov r8, 0xffffffffffffffff
lea rcx, [rbp + 0x990]
call fcn.180001540
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
mov r8d, 0xffffffff
mov qword [rsp + 0x20], r15
lea rdx, [rbp + 0x990]
call qword [0x180080628]
mov r15, qword [rsp + 0xd70]
test eax, eax
jne 0x180037dd9
mov rcx, qword [rsp + 0x30]
call qword [0x180080610]
cmp eax, 0x64
jne 0x180037dce
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [0x180080638]
cmp word [rax], 0
je 0x180037dce
mov r9d, 2
lea rbx, [rax + 0xc]
mov r8, rbx
lea rcx, [rbp + 0x150]
lea edx, [r9 + 0x7e]
call fcn.18004390c
lea r8, str.pristine
lea rdx, [rbp + 0x780]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea r8, [rbp + 0x150]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x780]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
mov r8, rbx
lea rcx, [rbp + 0x150]
mov edx, 0x80
call fcn.180040238
lea r8, [rbp + 0x150]
lea rdx, [rbp + 0x780]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea r8, [0x1800720e0]
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.180043690
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180037dce
lea r8, [rsp + 0x40]
mov edx, 0x104
mov rcx, r14
call fcn.180040238
mov dil, 1
mov rcx, qword [rsp + 0x30]
call qword [0x180080630]
mov rcx, qword [rsp + 0x38]
call qword [0x180080620]
test dil, dil
jne 0x180037e07
mov rcx, qword [0x180080590]
lea r8, [0x18006d908]
xor r9d, r9d
lea rdx, str.No_SVN_data_found.
call qword [sym.imp.USER32.dll_MessageBoxW]
movzx eax, dil
mov rcx, qword [rbp + 0xc20]
xor rcx, rsp
call fcn.1800383a0
add rsp, 0xd30
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
xor dil, dil
jmp 0x180037de9
mov rcx, qword [0x180080590]
lea r8, [0x18006d908]
xor r9d, r9d
lea rdx, str.Failed_to_initialize_SQLite___operation_aborted.
call qword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
jmp 0x180037e0b
lea r8, str.text_base
lea rdx, [rbp + 0x780]
lea rcx, [rbp + 0x360]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov r8, rax
lea rdx, [rbp + 0x360]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea r8, str..svn_base
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.180043690
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180037de9
lea r8, [rsp + 0x40]
mov edx, 0x104
mov rcx, r14
call fcn.180040238
mov dil, 1
jmp 0x180037e07