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

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x521465
push rbp
mov rbp, rsp
sub rsp, 0x70
movq qword [rsp + 0x68], xmm15
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x90], rcx
mov byte [rsp + 0x33], 0
mov dword [rsp + 0x34], 0
mov ebx, 0x60
call sym.modernc.org_libc._TLS_.Alloc
mov qword [rsp + 0x40], rax
lea rcx, [sym.modernc.org_sqlite_lib._toLocaltime.deferwrap1]
mov qword [rsp + 0x58], rcx
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x60], rcx
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x68], rdx
mov byte [rsp + 0x33], 1
lea rbx, [rax + 8]
mov qword [rsp + 0x50], rbx
mov edi, 0x24
mov rax, rcx
xor ecx, ecx
call sym.modernc.org_libc.Xmemset
mov rax, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
nop dword [rax]
call sym.modernc.org_sqlite_lib._computeJD
mov rcx, qword [rsp + 0x88]
mov rsi, qword [rcx]
movabs rdi, 0xffff4037c1acde00
add rdi, rsi
movabs r8, 0x1f3fa27e800
cmp r8, rdi
jb 0x52121c
mov rbx, qword [rsp + 0x40]
mov rdi, rbx
movabs rax, 0x4189374bc6a7ef9e
imul rsi
sar rdx, 8
movabs rsi, 0xffffffcee75c96c0
add rdx, rsi
mov qword [rdi], rdx
xor eax, eax
jmp 0x5212d7
movups xmm0, xmmword [rcx]
mov rbx, qword [rsp + 0x40]
lea rdx, [rbx + 0x30]
mov qword [rsp + 0x48], rdx
mov rsi, rdx
movups xmmword [rdx], xmm0
movups xmm0, xmmword [rcx + 0x10]
movups xmmword [rdx + 0x10], xmm0
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rdx + 0x20], xmm0
mov rax, qword [rsp + 0x80]
mov rbx, rsi
call sym.modernc.org_sqlite_lib._computeYMD_HMS
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
mov edx, dword [rcx + 8]
mov esi, edx
sar edx, 0x1f
shr edx, 0x1e
add edx, esi
and edx, 0xfffffffc
lea edi, [rdx - 0x7d0]
mov dword [rsp + 0x3c], edi
sub esi, edx
lea edx, [rsi + 0x7d0]
mov dword [rcx + 8], edx
mov rcx, rbx
mov byte [rcx + 0x28], 0
mov rax, qword [rsp + 0x80]
call sym.modernc.org_sqlite_lib._computeJD
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
mov rdx, qword [rsp + 0x48]
mov rdx, qword [rdx]
movabs rax, 0x4189374bc6a7ef9e
mov rsi, rdx
imul rdx
sar rdx, 8
sar rsi, 0x3f
sub rdx, rsi
movabs rsi, 0xffffffcee75c96c0
add rdx, rsi
mov qword [rcx], rdx
mov ecx, dword [rsp + 0x3c]
neg ecx
mov eax, ecx
mov dword [rsp + 0x38], eax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x80]
call sym.modernc.org_sqlite_lib._osLocaltime
test eax, eax
je 0x521356
mov rcx, qword [0x00a30e10]
add rcx, 0x4c1
mov rdx, qword [rsp + 0x90]
mov r9, rdx
mov dword [rdx + 0x24], 1
mov rbx, qword [r9]
mov rax, qword [rsp + 0x80]
mov rdi, 0xffffffffffffffff
mov esi, 1
mov r8, 0xffffffffffffffff
call sym.modernc.org_sqlite_lib._sqlite3VdbeMemSetStr
mov dword [rsp + 0x34], 1
mov byte [rsp + 0x33], 0
mov rdx, qword [rsp + 0x68]
mov r9, qword [rdx]
call r9
mov eax, dword [rsp + 0x34]
add rsp, 0x70
pop rbp
ret
mov rcx, qword [rsp + 0x88]
mov rbx, rcx
mov rsi, qword [rsp + 0x50]
mov rdi, rsi
mov esi, dword [rsi + 0x14]
mov r8d, dword [rsp + 0x38]
sub esi, r8d
add esi, 0x76c
mov dword [rcx + 8], esi
mov rcx, rbx
mov rsi, rdi
mov edi, dword [rdi + 0x10]
inc edi
mov dword [rbx + 0xc], edi
mov rbx, rcx
mov rdi, rsi
mov esi, dword [rsi + 0xc]
mov dword [rcx + 0x10], esi
mov rcx, rbx
mov rsi, rdi
mov edi, dword [rdi + 8]
mov dword [rbx + 0x14], edi
mov rbx, rcx
mov rdi, rsi
mov esi, dword [rsi + 4]
mov dword [rcx + 0x18], esi
mov rcx, rbx
mov esi, dword [rdi]
xorps xmm0, xmm0
cvtsi2sd xmm0, esi
mov rsi, qword [rbx]
movabs rax, 0x4189374bc6a7ef9e
imul rsi
sar rdx, 8
mov rdi, rsi
sar rsi, 0x3f
sub rdx, rsi
imul rsi, rdx, 0x3e8
sub rdi, rsi
xorps xmm1, xmm1
cvtsi2sd xmm1, rdi
movsd xmm2, qword [0x007caae8]
mulsd xmm1, xmm2
addsd xmm0, xmm1
movsd qword [rbx + 0x20], xmm0
mov rbx, rcx
mov byte [rcx + 0x29], 1
mov rcx, rbx
mov byte [rbx + 0x2a], 1
mov rbx, rcx
mov byte [rcx + 0x28], 0
lea rcx, [rbx + 0x2c]
mov rsi, rcx
movzx edi, byte [rcx]
and edi, 0xfffffffe
mov byte [rcx], dil
mov dword [rbx + 0x1c], 0
movzx ecx, byte [rsi]
and ecx, 0xfffffffd
nop
mov byte [rsi], cl
mov dword [rsp + 0x34], 0
mov byte [rsp + 0x33], 0
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rdx]
call rcx
mov eax, dword [rsp + 0x34]
add rsp, 0x70
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp sym.modernc.org_sqlite_lib._toLocaltime