Function at 0x5256e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea r12, [rsp - 0x80]
cmp r12, qword [r14 + 0x10]
jbe 0x525cb6
push rbp
mov rbp, rsp
sub rsp, 0xf8
movq qword [rsp + 0xf0], xmm15
mov qword [rsp + 0x108], rax
mov qword [rsp + 0x110], rbx
mov qword [rsp + 0x120], rdi
mov byte [rsp + 0x2b], 0
mov ebx, 0xc0
call sym.modernc.org_libc._TLS_.Alloc
mov qword [rsp + 0x58], rax
lea rcx, [sym.modernc.org_sqlite_lib._timediffFunc.deferwrap1]
mov qword [rsp + 0x70], rcx
mov rcx, qword [rsp + 0x108]
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x70]
mov qword [rsp + 0xf0], rdx
mov byte [rsp + 0x2b], 1
mov rbx, qword [rsp + 0x110]
mov rdi, qword [rsp + 0x120]
mov rsi, rax
mov rax, rcx
mov ecx, 1
call sym.modernc.org_sqlite_lib._isDate
nop dword [rax + rax]
test eax, eax
jne 0x525957
mov rdi, qword [rsp + 0x120]
add rdi, 8
mov rsi, qword [rsp + 0x58]
lea rdx, [rsi + 0x30]
mov qword [rsp + 0x60], rdx
mov rax, qword [rsp + 0x108]
mov rbx, qword [rsp + 0x110]
mov ecx, 1
mov rsi, rdx
call sym.modernc.org_sqlite_lib._isDate
nop
test eax, eax
jne 0x52593c
mov rax, qword [rsp + 0x108]
mov rbx, qword [rsp + 0x58]
call sym.modernc.org_sqlite_lib._computeYMD_HMS
mov rax, qword [rsp + 0x108]
mov rbx, qword [rsp + 0x60]
call sym.modernc.org_sqlite_lib._computeYMD_HMS
mov rbx, qword [rsp + 0x58]
mov rcx, rbx
mov rdx, qword [rcx]
mov rsi, qword [rsp + 0x60]
mov rdi, rsi
nop
cmp qword [rsi], rdx
jg 0x5258a6
mov ecx, dword [rcx + 8]
mov edx, dword [rsi + 8]
mov r8d, ecx
sub ecx, edx
test ecx, ecx
je 0x525842
mov dword [rsp + 0x2c], ecx
mov dword [rsi + 8], r8d
mov rbx, rdi
mov byte [rdi + 0x28], 0
mov rax, qword [rsp + 0x108]
call sym.modernc.org_sqlite_lib._computeJD
mov ecx, dword [rsp + 0x2c]
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov rdx, rbx
mov edx, dword [rdx + 0xc]
mov rsi, rdi
mov r8d, dword [rdi + 0xc]
mov r9d, edx
sub edx, r8d
lea r8d, [rcx - 1]
lea r10d, [rdx + 0xc]
test edx, edx
cmovl edx, r10d
cmovl ecx, r8d
test edx, edx
je 0x525c37
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], ecx
mov dword [rdi + 0xc], r9d
mov rbx, rsi
mov byte [rsi + 0x28], 0
mov rax, qword [rsp + 0x108]
call sym.modernc.org_sqlite_lib._computeJD
mov ecx, dword [rsp + 0x34]
mov edx, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
jmp 0x525c37
mov edx, dword [rsi + 8]
mov ecx, dword [rcx + 8]
sub edx, ecx
test edx, edx
je 0x5258db
mov dword [rsp + 0x2c], edx
mov dword [rsi + 8], ecx
mov rbx, rdi
mov byte [rdi + 0x28], 0
mov rax, qword [rsp + 0x108]
call sym.modernc.org_sqlite_lib._computeJD
mov edx, dword [rsp + 0x2c]
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
mov esi, dword [rdi + 0xc]
mov r8, rbx
mov r8d, dword [r8 + 0xc]
sub esi, r8d
lea r9d, [rdx - 1]
lea r10d, [rsi + 0xc]
test esi, esi
cmovl esi, r10d
cmovl edx, r9d
nop dword [rax]
test esi, esi
je 0x525999
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x34], edx
mov dword [rdi + 0xc], r8d
mov rbx, rcx
mov byte [rcx + 0x28], 0
mov rax, qword [rsp + 0x108]
call sym.modernc.org_sqlite_lib._computeJD
mov rcx, qword [rsp + 0x60]
mov edx, dword [rsp + 0x34]
mov rbx, qword [rsp + 0x58]
mov esi, dword [rsp + 0x30]
jmp 0x525999
mov byte [rsp + 0x2b], 0
mov rdx, qword [rsp + 0xf0]
mov rax, qword [rdx]
call rax
add rsp, 0xf8
pop rbp
ret
mov byte [rsp + 0x2b], 0
mov rdx, qword [rsp + 0xf0]
mov rax, qword [rdx]
call rax
add rsp, 0xf8
pop rbp
ret
mov rbx, r8
mov byte [r8 + 0x28], 0
mov rax, qword [rsp + 0x108]
call sym.modernc.org_sqlite_lib._computeJD
mov rcx, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
mov edx, dword [rsp + 0x2c]
mov esi, dword [rsp + 0x30]
mov rdi, rbx
mov r8, qword [rdi]
mov r9, rcx
mov r10, qword [rcx]
cmp r10, r8
jge 0x5259e7
inc dword [rcx + 0xc]
lea ecx, [rsi - 1]
lea esi, [rdx - 1]
mov rdi, r9
test ecx, ecx
cmovl edx, esi
mov dword [rsp + 0x2c], edx
mov esi, 0xb
cmovl ecx, esi
mov dword [rsp + 0x30], ecx
cmp dword [r9 + 0xc], 0xc
jle 0x5259e2
mov dword [r9 + 0xc], 1
mov r8, rdi
inc dword [rdi + 8]
jmp 0x525972
mov r8, rdi
jmp 0x525972
sub r10, r8
mov qword [rdi], r10
mov rcx, rbx
movabs rdi, 0x873dcf4ec200
add qword [rcx], rdi
mov eax, 0x2d
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x2c], edx
lea rcx, [rbx + 0x60]
mov qword [rsp + 0x50], rcx
lea rdi, [rbx + 0x88]
mov qword [rsp + 0x60], rdi
movsx r8, al
mov dword [rsp + 0x34], r8d
mov r9, rbx
nop
mov byte [r9 + 0x29], 0
mov r9, rbx
mov byte [r9 + 0x2a], 0
mov r9, rbx
mov dword [r9 + 0x1c], 0
mov rax, qword [rsp + 0x108]
call sym.modernc.org_sqlite_lib._computeYMD_HMS
mov rcx, qword [rsp + 0x50]
mov rdx, rcx
mov qword [rcx + 8], 0
mov rcx, rdx
mov qword [rdx], 0
mov rdx, rcx
mov dword [rcx + 0x10], 0
mov rcx, rdx
mov dword [rdx + 0x14], 0x64
mov rdx, rcx
mov dword [rcx + 0x18], 0
mov rcx, rdx
mov byte [rdx + 0x1c], 0
mov byte [rcx + 0x1d], 0
lea rdi, [rsp + 0x80]
lea rdi, [rdi - 0x10]
mov qword [rsp - 0x10], rbp
lea rbp, [rsp - 0x10]
call fcn.00471526
mov rbp, qword [rbp]
mov ecx, dword [rsp + 0x34]
mov dword [rsp + 0x4c], ecx
lea rcx, [0x00728b40]
mov qword [rsp + 0x80], rcx
lea rsi, [rsp + 0x4c]
mov qword [rsp + 0x88], rsi
mov esi, dword [rsp + 0x2c]
mov dword [rsp + 0x48], esi
mov qword [rsp + 0x90], rcx
lea rsi, [rsp + 0x48]
mov qword [rsp + 0x98], rsi
mov esi, dword [rsp + 0x30]
mov dword [rsp + 0x44], esi
mov qword [rsp + 0xa0], rcx
lea rsi, [rsp + 0x44]
mov qword [rsp + 0xa8], rsi
mov rsi, qword [rsp + 0x58]
mov rdi, rsi
mov esi, dword [rsi + 0x10]
dec esi
mov dword [rsp + 0x40], esi
mov qword [rsp + 0xb0], rcx
lea rsi, [rsp + 0x40]
mov qword [rsp + 0xb8], rsi
mov rsi, rdi
mov edi, dword [rdi + 0x14]
mov dword [rsp + 0x3c], edi
mov qword [rsp + 0xc0], rcx
lea rdi, [rsp + 0x3c]
mov qword [rsp + 0xc8], rdi
mov rdi, rsi
mov esi, dword [rsi + 0x18]
mov dword [rsp + 0x38], esi
mov qword [rsp + 0xd0], rcx
lea rcx, [rsp + 0x38]
mov qword [rsp + 0xd8], rcx
movsd xmm0, qword [rdi + 0x20]
movsd qword [rsp + 0x68], xmm0
lea rcx, [0x00728dc0]
mov qword [rsp + 0xe0], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0xe8], rcx
mov rax, qword [rsp + 0x60]
lea rbx, [rsp + 0x80]
mov ecx, 7
mov rdi, rcx
call sym.modernc.org_libc.VaList
mov rcx, qword [0x00a30e10]
add rcx, 0x5ad
mov rbx, qword [rsp + 0x50]
mov rdi, rax
mov rax, qword [rsp + 0x108]
call sym.modernc.org_sqlite_lib.Xsqlite3_str_vappendf
mov rax, qword [rsp + 0x108]
mov rbx, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x50]
call sym.modernc.org_sqlite_lib._sqlite3ResultStrAccum
mov byte [rsp + 0x2b], 0
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rdx]
call rcx
add rsp, 0xf8
pop rbp
ret
mov rbx, r8
mov byte [r8 + 0x28], 0
mov rax, qword [rsp + 0x108]
nop
call sym.modernc.org_sqlite_lib._computeJD
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x2c]
mov edx, dword [rsp + 0x30]
mov rdi, rbx
mov r8, qword [rdi]
mov r9, rsi
mov r10, qword [rsi]
cmp r10, r8
jle 0x525c84
dec dword [rsi + 0xc]
dec edx
lea esi, [rcx - 1]
mov rdi, r9
test edx, edx
cmovl ecx, esi
mov dword [rsp + 0x2c], ecx
mov esi, 0xb
cmovl edx, esi
mov dword [rsp + 0x30], edx
cmp dword [r9 + 0xc], 0
jg 0x525c7f
mov dword [r9 + 0xc], 0xc
mov r8, rdi
dec dword [rdi + 8]
jmp 0x525c0e
mov r8, rdi
jmp 0x525c0e
sub r8, r10
mov qword [rdi], r8
mov rdi, rbx
movabs r8, 0x873dcf4ec200
add qword [rdi], r8
mov eax, 0x2b
mov esi, edx
mov edx, ecx
jmp 0x525a02
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x18], ecx
mov qword [rsp + 0x20], rdi
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov ecx, dword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp sym.modernc.org_sqlite_lib._timediffFunc