Function at 0x180037530
Capabilities:
Check if file exists
Reference sql statements

Disassembly:
push rbp
push rbx
push rdi
push r14
push r15
lea rbp, [rsp - 0xc40]
sub rsp, 0xd40
mov rax, qword [0x180080238]
xor rax, rsp
mov qword [rbp + 0xc20], rax
mov r15d, r8d
mov r14, rdx
mov r8, rcx
mov rbx, rcx
lea rcx, [rsp + 0x40]
mov edx, 0x104
call fcn.18003fcc8
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea r8, [rsp + 0x40]
mov edx, 0x104
lea rcx, [rbp + 0x360]
call fcn.18003fcc8
lea r8, str..svn
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 0x180037634
lea rcx, [rbp + 0x360]
call qword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x1800376a9
lea r8, [0x180062728]
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.18003fcc8
lea r8, str..svn
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 0x1800375c0
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 0x180037998
call fcn.180037a20
test al, al
jne 0x1800376ec
mov rcx, qword [0x1800818d0]
lea r8, [0x18005dc60]
xor r9d, r9d
lea rdx, str.Failed_to_initialize_SQLite___operation_aborted.
call qword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
jmp 0x1800376ce
xor dil, dil
mov rcx, qword [0x1800818d0]
lea r8, [0x18005dc60]
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.180037cc0
add rsp, 0xd40
pop r15
pop r14
pop rdi
pop rbx
pop rbp
ret
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x40]
call qword [0x1800833f0]
test eax, eax
jne 0x1800376ac
mov qword [rsp + 0xd38], rsi
lea rcx, [rbp + 0x150]
mov qword [rsp + 0xd30], r12
mov r8, rbx
xor r12d, r12d
mov edx, 0x104
mov word [rsp + 0x40], r12w
call fcn.18003fcc8
lea rcx, [rbp + 0x150]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], r12w
jne 0x180037740
sub eax, 1
mov ebx, 0x2f
movsxd rcx, eax
js 0x180037779
nop word [rax + rax]
cmp word [rbp + rcx*2 + 0x150], 0x5c
jne 0x180037773
mov word [rbp + rcx*2 + 0x150], bx
sub rcx, 1
jns 0x180037760
lea r8, [rbp + 0x360]
mov edx, 0x104
lea rcx, [rbp + 0x570]
call fcn.18003fcc8
lea rcx, [rbp + 0x570]
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [rcx + rax*2], r12w
jne 0x1800377a0
sub eax, 1
movsxd rcx, eax
js 0x1800377cb
cmp word [rbp + rcx*2 + 0x570], 0x5c
jne 0x1800377c5
mov word [rbp + rcx*2 + 0x570], bx
sub rcx, 1
jns 0x1800377b2
lea rax, [rbp + 0x570]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], r12w
jne 0x1800377e0
movsxd rsi, ebx
lea rdx, [rbp + 0x570]
mov r8, rsi
lea rcx, [rbp + 0x150]
call fcn.1800433e0
test eax, eax
jne 0x180037832
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.18003fcc8
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.1800017b0
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
mov r8d, 0xffffffff
mov qword [rsp + 0x20], r12
lea rdx, [rbp + 0x990]
call qword [0x1800833f8]
mov r12, qword [rsp + 0xd30]
mov rsi, qword [rsp + 0xd38]
test eax, eax
jne 0x18003797f
mov rcx, qword [rsp + 0x30]
call qword [0x180083400]
cmp eax, 0x64
jne 0x180037974
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [0x180083408]
cmp word [rax], 0
je 0x180037974
mov r9d, 2
lea rbx, [rax + 0xc]
mov r8, rbx
lea rcx, [rbp + 0x150]
lea edx, [r9 + 0x7e]
call fcn.1800432fc
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.18003fcc8
lea r8, [rbp + 0x150]
lea rdx, [rbp + 0x780]
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.1800430f0
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180037974
mov rdx, r15
lea r8, [rsp + 0x40]
mov rcx, r14
call fcn.18003fcc8
mov dil, 1
mov rcx, qword [rsp + 0x30]
call qword [0x180083410]
mov rcx, qword [rsp + 0x38]
call qword [0x180083418]
test dil, dil
jne 0x1800376ca
jmp 0x1800376ac
lea r8, str.text_base
lea rdx, [rbp + 0x780]
lea rcx, [rbp + 0x360]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
mov rcx, rbx
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.1800430f0
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1800376ac
mov rdx, r15
lea r8, [rsp + 0x40]
mov rcx, r14
call fcn.18003fcc8
mov dil, 1
jmp 0x1800376ca