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

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x108
mov rax, qword [0x1401b7098]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov dword [rsp + 0x20], 1
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x118]
movzx eax, byte [rcx + rax]
lea rcx, [0x1401820c0]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
sub eax, 0x2b
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0x4c
ja case.0x1400a096d.44
movsxd rax, dword [rsp + 0x34]
lea rcx, [0x140000000]
movzx eax, byte [rcx + rax + 0xa1628]
mov eax, dword [rcx + rax*4 + 0xa1608]
add rax, rcx
jmp rax
lea rdx, str.auto
mov rcx, qword [rsp + 0x118]
call sym.sqlite3.exe_sqlite3_stricmp
test eax, eax
jne 0x1400a0a78
cmp dword [rsp + 0x130], 1
jle 0x1400a099f
mov eax, 1
jmp 0x1400a15ef
mov rax, qword [rsp + 0x128]
movsx eax, byte [rax + 0x29]
test eax, eax
je 0x1400a09bf
mov rax, qword [rsp + 0x128]
movsx eax, byte [rax + 0x28]
test eax, eax
je 0x1400a09d8
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x128]
mov byte [rax + 0x29], 0
jmp 0x1400a0a78
mov rax, qword [rsp + 0x128]
movsd xmm0, qword [rax + 0x20]
comisd xmm0, xmmword [0x140186a90]
jb 0x1400a0a78
mov rax, qword [rsp + 0x128]
movsd xmm0, qword [0x140186a28]
comisd xmm0, xmmword [rax + 0x20]
jb 0x1400a0a78
mov rax, qword [rsp + 0x128]
movsd xmm0, qword [rax + 0x20]
mulsd xmm0, qword [0x1401869c0]
addsd xmm0, qword [0x140186a30]
movsd qword [rsp + 0x28], xmm0
mov rcx, qword [rsp + 0x128]
call fcn.1400a05f0
movsd xmm0, qword [rsp + 0x28]
addsd xmm0, qword [0x14017f7b0]
cvttsd2si rax, xmm0
mov rcx, qword [rsp + 0x128]
mov qword [rcx], rax
mov rax, qword [rsp + 0x128]
mov byte [rax + 0x28], 1
mov rax, qword [rsp + 0x128]
mov byte [rax + 0x29], 0
mov dword [rsp + 0x20], 0
jmp case.0x1400a096d.44
lea rdx, str.julianday
mov rcx, qword [rsp + 0x118]
call sym.sqlite3.exe_sqlite3_stricmp
test eax, eax
jne 0x1400a0add
cmp dword [rsp + 0x130], 1
jle 0x1400a0aa9
mov eax, 1
jmp 0x1400a15ef
mov rax, qword [rsp + 0x128]
movsx eax, byte [rax + 0x28]
test eax, eax
je 0x1400a0add
mov rax, qword [rsp + 0x128]
movsx eax, byte [rax + 0x29]
test eax, eax
je 0x1400a0add
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x128]
mov byte [rax + 0x29], 0
jmp case.0x1400a096d.44
lea rdx, str.localtime
mov rcx, qword [rsp + 0x118]
call sym.sqlite3.exe_sqlite3_stricmp
test eax, eax
jne 0x1400a0b24
mov rcx, qword [rsp + 0x110]
call fcn.14004d740
test eax, eax
je 0x1400a0b24
mov rdx, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x128]
call fcn.1400a0680
mov dword [rsp + 0x20], eax
jmp case.0x1400a096d.44
lea rdx, str.unixepoch
mov rcx, qword [rsp + 0x118]
call sym.sqlite3.exe_sqlite3_stricmp
test eax, eax
jne 0x1400a0c00
mov rax, qword [rsp + 0x128]
movsx eax, byte [rax + 0x29]
test eax, eax
je 0x1400a0c00
cmp dword [rsp + 0x130], 1
jle 0x1400a0b6d
mov eax, 1
jmp 0x1400a15ef
mov rax, qword [rsp + 0x128]
movsd xmm0, qword [rax + 0x20]
mulsd xmm0, qword [0x1401869c0]
addsd xmm0, qword [0x140186a30]
movsd qword [rsp + 0x28], xmm0
movsd xmm0, qword [rsp + 0x28]
comisd xmm0, xmmword [0x14017f7a0]
jb 0x1400a0bfb
movsd xmm0, qword [0x140186a38]
comisd xmm0, xmmword [rsp + 0x28]
jbe 0x1400a0bfb
mov rcx, qword [rsp + 0x128]
call fcn.1400a05f0
movsd xmm0, qword [rsp + 0x28]
addsd xmm0, qword [0x14017f7b0]
cvttsd2si rax, xmm0
mov rcx, qword [rsp + 0x128]
mov qword [rcx], rax
mov rax, qword [rsp + 0x128]
mov byte [rax + 0x28], 1
mov rax, qword [rsp + 0x128]
mov byte [rax + 0x29], 0
mov dword [rsp + 0x20], 0
jmp 0x1400a0d74
lea rdx, [0x1401aaabc]
mov rcx, qword [rsp + 0x118]
call sym.sqlite3.exe_sqlite3_stricmp
test eax, eax
jne 0x1400a0d74
mov rcx, qword [rsp + 0x110]
call fcn.14004d740
test eax, eax
je 0x1400a0d74
mov rax, qword [rsp + 0x128]
movsx eax, byte [rax + 0x2d]
test eax, eax
jne 0x1400a0d6c
mov dword [rsp + 0x38], 0
mov rcx, qword [rsp + 0x128]
call fcn.14009fd50
mov rax, qword [rsp + 0x128]
mov rax, qword [rax]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x68], 0
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0xc0]
call fcn.140159140
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xc0], rax
mov byte [rsp + 0xe8], 1
mov rdx, qword [rsp + 0x110]
lea rcx, [rsp + 0xc0]
call fcn.1400a0680
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1400a0ce5
mov eax, dword [rsp + 0x20]
jmp 0x1400a15ef
lea rcx, [rsp + 0xc0]
call fcn.14009fd50
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0xc0]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x1400a0d2f
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x60], 3
jl 0x1400a0c7d
mov r8d, 0x30
xor edx, edx
mov rcx, qword [rsp + 0x128]
call fcn.140159140
mov rax, qword [rsp + 0x128]
mov rcx, qword [rsp + 0x48]
mov qword [rax], rcx
mov rax, qword [rsp + 0x128]
mov byte [rax + 0x28], 1
mov rax, qword [rsp + 0x128]
mov byte [rax + 0x2d], 1
mov dword [rsp + 0x20], 0
jmp case.0x1400a096d.44
mov r8d, 8
lea rdx, str.weekday
mov rcx, qword [rsp + 0x118]
call sym.sqlite3.exe_sqlite3_strnicmp
test eax, eax
jne 0x1400a0ef4
mov eax, 1
imul rax, rax, 8
mov rcx, qword [rsp + 0x118]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140051ce0
mov ecx, 1
imul rcx, rcx, 8
mov rdx, qword [rsp + 0x118]
add rdx, rcx
mov rcx, rdx
mov r9b, 1
mov r8d, eax
lea rdx, [rsp + 0x28]
call fcn.14007e260
test eax, eax
jle 0x1400a0ef4
movsd xmm0, qword [rsp + 0x28]
comisd xmm0, xmmword [0x14017f7a0]
jb 0x1400a0ef4
movsd xmm0, qword [0x140186968]
comisd xmm0, xmmword [rsp + 0x28]
jbe 0x1400a0ef4
cvttsd2si eax, qword [rsp + 0x28]
mov dword [rsp + 0x120], eax
cvtsi2sd xmm0, dword [rsp + 0x120]
ucomisd xmm0, qword [rsp + 0x28]
jp 0x1400a0ef4
jne 0x1400a0ef4
mov rcx, qword [rsp + 0x128]
call fcn.1400a05c0
mov rax, qword [rsp + 0x128]
mov byte [rax + 0x2c], 0
mov rax, qword [rsp + 0x128]
mov byte [rax + 0x28], 0
mov rcx, qword [rsp + 0x128]
call fcn.14009fd50
mov rax, qword [rsp + 0x128]
mov rax, qword [rax]
add rax, 0x7b98a00
cqo
mov ecx, 0x5265c00
idiv rcx
cqo
mov ecx, 7
idiv rcx
mov rax, rdx
mov qword [rsp + 0x50], rax
movsxd rax, dword [rsp + 0x120]
cmp qword [rsp + 0x50], rax
jle 0x1400a0eb5
mov rax, qword [rsp + 0x50]
sub rax, 7
mov qword [rsp + 0x50], rax
movsxd rax, dword [rsp + 0x120]
sub rax, qword [rsp + 0x50]
imul rax, rax, 0x5265c00
mov rcx, qword [rsp + 0x128]
add rax, qword [rcx]
mov rcx, qword [rsp + 0x128]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x128]
call fcn.1400a05f0
mov dword [rsp + 0x20], 0
jmp case.0x1400a096d.44
mov r8d, 9
lea rdx, str.start_of
mov rcx, qword [rsp + 0x118]
call sym.sqlite3.exe_sqlite3_strnicmp
test eax, eax
je 0x1400a0f1c
jmp case.0x1400a096d.44
mov rax, qword [rsp + 0x128]
movsx eax, byte [rax + 0x28]
test eax, eax
jne 0x1400a0f51
mov rax, qword [rsp + 0x128]
movsx eax, byte [rax + 0x2a]
test eax, eax
jne 0x1400a0f51
mov rax, qword [rsp + 0x128]
movsx eax, byte [rax + 0x2b]
test eax, eax
jne 0x1400a0f51
jmp case.0x1400a096d.44
mov rax, qword [rsp + 0x118]
add rax, 9
mov qword [rsp + 0x118], rax
mov rcx, qword [rsp + 0x128]
call fcn.1400a02b0
mov rax, qword [rsp + 0x128]
mov byte [rax + 0x2b], 1
mov rax, qword [rsp + 0x128]
mov dword [rax + 0x18], 0
mov rax, qword [rsp + 0x128]
mov dword [rax + 0x14], 0
mov rax, qword [rsp + 0x128]
xorps xmm0, xmm0
movsd qword [rax + 0x20], xmm0
mov rax, qword [rsp + 0x128]
mov byte [rax + 0x29], 0
mov rax, qword [rsp + 0x128]
mov byte [rax + 0x2c], 0
mov rax, qword [rsp + 0x128]
mov byte [rax + 0x28], 0
lea rdx, str.month
mov rcx, qword [rsp + 0x118]
call sym.sqlite3.exe_sqlite3_stricmp
test eax, eax
jne 0x1400a1001
mov rax, qword [rsp + 0x128]
mov dword [rax + 0x10], 1
mov dword [rsp + 0x20], 0
jmp 0x1400a1061
lea rdx, str.year
mov rcx, qword [rsp + 0x118]
call sym.sqlite3.exe_sqlite3_stricmp
test eax, eax
jne 0x1400a1041
mov rax, qword [rsp + 0x128]
mov dword [rax + 0xc], 1
mov rax, qword [rsp + 0x128]
mov dword [rax + 0x10], 1
mov dword [rsp + 0x20], 0
jmp 0x1400a1061
lea rdx, [0x1401aaacc]
mov rcx, qword [rsp + 0x118]
call sym.sqlite3.exe_sqlite3_stricmp
test eax, eax
jne 0x1400a1061
mov dword [rsp + 0x20], 0
jmp case.0x1400a096d.44
mov dword [rsp + 0x120], 1
jmp 0x1400a1083
mov eax, dword [rsp + 0x120]
inc eax
mov dword [rsp + 0x120], eax
movsxd rax, dword [rsp + 0x120]
mov rcx, qword [rsp + 0x118]
movsx eax, byte [rcx + rax]
test eax, eax
je 0x1400a10dc
movsxd rax, dword [rsp + 0x120]
mov rcx, qword [rsp + 0x118]
movsx eax, byte [rcx + rax]
cmp eax, 0x3a
je 0x1400a10dc
movsxd rax, dword [rsp + 0x120]
mov rcx, qword [rsp + 0x118]
movzx eax, byte [rcx + rax]
lea rcx, [0x1401821f0]
movzx eax, byte [rcx + rax]
and eax, 1
test eax, eax
jne 0x1400a10dc
jmp 0x1400a1073
mov r9b, 1
mov r8d, dword [rsp + 0x120]
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x118]
call fcn.14007e260
test eax, eax
jg 0x1400a110a
mov dword [rsp + 0x20], 1
jmp case.0x1400a096d.44
movsxd rax, dword [rsp + 0x120]
mov rcx, qword [rsp + 0x118]
movsx eax, byte [rcx + rax]
cmp eax, 0x3a
jne 0x1400a125c
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax]
lea rcx, [0x1401821f0]
movzx eax, byte [rcx + rax]
and eax, 4
test eax, eax
jne 0x1400a115b
mov rax, qword [rsp + 0x58]
inc rax
mov qword [rsp + 0x58], rax
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x90]
call fcn.140159140
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x58]
call fcn.14009fb00
test eax, eax
je 0x1400a118b
jmp case.0x1400a096d.44
lea rcx, [rsp + 0x90]
call fcn.14009fd50
mov rax, qword [rsp + 0x90]
sub rax, 0x2932e00
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
cqo
mov ecx, 0x5265c00
idiv rcx
mov qword [rsp + 0x80], rax
imul rax, qword [rsp + 0x80], 0x5265c00
mov rcx, qword [rsp + 0x90]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x90], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x118]
movsx eax, byte [rcx + rax]
cmp eax, 0x2d
jne 0x1400a1217
mov rax, qword [rsp + 0x90]
neg rax
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x128]
call fcn.14009fd50
mov rcx, qword [rsp + 0x128]
call fcn.1400a05f0
mov rax, qword [rsp + 0x128]
mov rax, qword [rax]
add rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x128]
mov qword [rcx], rax
mov dword [rsp + 0x20], 0
jmp case.0x1400a096d.44
movsxd rax, dword [rsp + 0x120]
mov rcx, qword [rsp + 0x118]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x118]
movzx eax, byte [rax]
lea rcx, [0x1401821f0]
movzx eax, byte [rcx + rax]
and eax, 1
test eax, eax
je 0x1400a12ac
mov rax, qword [rsp + 0x118]
inc rax
mov qword [rsp + 0x118], rax
jmp 0x1400a127a
mov rcx, qword [rsp + 0x118]
call fcn.140051ce0
mov dword [rsp + 0x120], eax
cmp dword [rsp + 0x120], 0xa
jg 0x1400a12d4
cmp dword [rsp + 0x120], 3
jge 0x1400a12d9
jmp case.0x1400a096d.44
mov eax, dword [rsp + 0x120]
dec eax
cdqe
mov rcx, qword [rsp + 0x118]
movzx eax, byte [rcx + rax]
lea rcx, [0x1401820c0]
movzx eax, byte [rcx + rax]
cmp eax, 0x73
jne 0x1400a1310
mov eax, dword [rsp + 0x120]
dec eax
mov dword [rsp + 0x120], eax
mov rcx, qword [rsp + 0x128]
call fcn.14009fd50
mov dword [rsp + 0x20], 1
xorps xmm0, xmm0
comisd xmm0, xmmword [rsp + 0x28]
jbe 0x1400a1340
movsd xmm0, qword [0x140186a80]
movsd qword [rsp + 0x78], xmm0
jmp 0x1400a134e
movsd xmm0, qword [0x14017f7b0]
movsd qword [rsp + 0x78], xmm0
movsd xmm0, qword [rsp + 0x78]
movsd qword [rsp + 0x88], xmm0
mov dword [rsp + 0x30], 0
jmp 0x1400a1371
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 6
jge 0x1400a15de
movsxd rax, dword [rsp + 0x30]
imul rax, rax, 0x10
lea rcx, [0x140185ab0]
movzx eax, byte [rcx + rax]
cmp eax, dword [rsp + 0x120]
jne 0x1400a15d9
movsxd rax, dword [rsp + 0x30]
imul rax, rax, 0x10
lea rcx, [0x140185ab0]
lea rax, [rcx + rax + 1]
mov r8d, dword [rsp + 0x120]
mov rdx, qword [rsp + 0x118]
mov rcx, rax
call sym.sqlite3.exe_sqlite3_strnicmp
test eax, eax
jne 0x1400a15d9
movsxd rax, dword [rsp + 0x30]
imul rax, rax, 0x10
lea rcx, [0x140185ab0]
movss xmm0, dword [rcx + rax + 8]
xorps xmm0, xmmword [0x140186ab0]
cvtss2sd xmm0, xmm0
movsd xmm1, qword [rsp + 0x28]
comisd xmm1, xmm0
jbe 0x1400a15d9
movsxd rax, dword [rsp + 0x30]
imul rax, rax, 0x10
lea rcx, [0x140185ab0]
cvtss2sd xmm0, dword [rcx + rax + 8]
comisd xmm0, xmmword [rsp + 0x28]
jbe 0x1400a15d9
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 4
je 0x1400a1444
cmp dword [rsp + 0x3c], 5
je 0x1400a151c
jmp 0x1400a1576
mov rcx, qword [rsp + 0x128]
call fcn.1400a05c0
cvttsd2si eax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x128]
add eax, dword [rcx + 0xc]
mov rcx, qword [rsp + 0x128]
mov dword [rcx + 0xc], eax
mov rax, qword [rsp + 0x128]
cmp dword [rax + 0xc], 0
jle 0x1400a1496
mov rax, qword [rsp + 0x128]
mov eax, dword [rax + 0xc]
dec eax
cdq
mov ecx, 0xc
idiv ecx
mov dword [rsp + 0x40], eax
jmp 0x1400a14b0
mov rax, qword [rsp + 0x128]
mov eax, dword [rax + 0xc]
sub eax, 0xc
cdq
mov ecx, 0xc
idiv ecx
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x128]
mov eax, dword [rax + 8]
add eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x128]
mov dword [rcx + 8], eax
imul eax, dword [rsp + 0x44], 0xc
mov rcx, qword [rsp + 0x128]
mov ecx, dword [rcx + 0xc]
sub ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x128]
mov dword [rcx + 0xc], eax
mov rax, qword [rsp + 0x128]
mov byte [rax + 0x28], 0
cvttsd2si eax, qword [rsp + 0x28]
cvtsi2sd xmm0, eax
movsd xmm1, qword [rsp + 0x28]
subsd xmm1, xmm0
movaps xmm0, xmm1
movsd qword [rsp + 0x28], xmm0
jmp 0x1400a1576
cvttsd2si eax, qword [rsp + 0x28]
mov dword [rsp + 0x64], eax
mov rcx, qword [rsp + 0x128]
call fcn.1400a05c0
mov rax, qword [rsp + 0x128]
mov eax, dword [rax + 8]
add eax, dword [rsp + 0x64]
mov rcx, qword [rsp + 0x128]
mov dword [rcx + 8], eax
mov rax, qword [rsp + 0x128]
mov byte [rax + 0x28], 0
cvttsd2si eax, qword [rsp + 0x28]
cvtsi2sd xmm0, eax
movsd xmm1, qword [rsp + 0x28]
subsd xmm1, xmm0
movaps xmm0, xmm1
movsd qword [rsp + 0x28], xmm0
mov rcx, qword [rsp + 0x128]
call fcn.14009fd50
movsd xmm0, qword [rsp + 0x28]
mulsd xmm0, qword [0x1401869c0]
movsxd rax, dword [rsp + 0x30]
imul rax, rax, 0x10
lea rcx, [0x140185ab0]
cvtss2sd xmm1, dword [rcx + rax + 0xc]
mulsd xmm0, xmm1
addsd xmm0, qword [rsp + 0x88]
cvttsd2si rax, xmm0
mov rcx, qword [rsp + 0x128]
add rax, qword [rcx]
mov rcx, qword [rsp + 0x128]
mov qword [rcx], rax
mov dword [rsp + 0x20], 0
jmp 0x1400a15de
jmp 0x1400a1367
mov rcx, qword [rsp + 0x128]
call fcn.1400a05f0
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140157ff0
add rsp, 0x108
ret